<?php if($errors->any()): ?>
    <div class="alert alert-danger py-2 small"><ul class="mb-0">
        <?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $e): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><li><?php echo e($e); ?></li><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    </ul></div>
<?php endif; ?>

<div class="card border-0 shadow-sm">
    <div class="card-body">
        <form method="POST" action="<?php echo e($action); ?>" style="max-width: 560px;">
            <?php echo csrf_field(); ?>
            <?php if($method === 'PUT'): ?> <?php echo method_field('PUT'); ?> <?php endif; ?>
            <div class="mb-3">
                <label class="form-label small fw-medium" for="name">Име</label>
                <input id="name" name="name" type="text" class="form-control <?php $__errorArgs = ['name'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>"
                       value="<?php echo e(old('name', $client->name ?? '')); ?>" required autofocus>
            </div>
            <div class="mb-3">
                <label class="form-label small fw-medium" for="address">Адреса</label>
                <input id="address" name="address" type="text" class="form-control"
                       value="<?php echo e(old('address', $client->address ?? '')); ?>">
            </div>
            <div class="row">
                <div class="col-md-6 mb-3">
                    <label class="form-label small fw-medium" for="phone">Телефон</label>
                    <input id="phone" name="phone" type="text" class="form-control"
                           value="<?php echo e(old('phone', $client->phone ?? '')); ?>">
                </div>
                <div class="col-md-6 mb-3">
                    <label class="form-label small fw-medium" for="contact_person">Лице за контакт</label>
                    <input id="contact_person" name="contact_person" type="text" class="form-control"
                           value="<?php echo e(old('contact_person', $client->contact_person ?? '')); ?>">
                </div>
            </div>
            <div class="mb-3">
                <label class="form-label small fw-medium" for="email">Е-пошта</label>
                <input id="email" name="email" type="email" class="form-control <?php $__errorArgs = ['email'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>"
                       value="<?php echo e(old('email', $client->email ?? '')); ?>">
            </div>
            <div class="mb-4">
                <label class="form-label small fw-medium" for="notes">Белешки</label>
                <textarea id="notes" name="notes" rows="3" class="form-control"><?php echo e(old('notes', $client->notes ?? '')); ?></textarea>
            </div>
            <div class="d-flex gap-2">
                <button type="submit" class="btn btn-primary">Зачувај</button>
                <a href="<?php echo e(route('clients.index')); ?>" class="btn btn-light border">Откажи</a>
            </div>
        </form>
    </div>
</div>
<?php /**PATH /Users/gego/Desktop/Projects/Sterna/sterna/resources/views/clients/_form.blade.php ENDPATH**/ ?>