<?php $__env->startSection('content'); ?>
<div class="max-w-lg mx-auto py-8 px-4">
    <h1 class="font-['Sora'] text-2xl font-semibold text-[#5E35B1] mb-6">Add Customer</h1>

    <form method="POST" action="<?php echo e(route('customers.store')); ?>" class="bg-white rounded-xl shadow-sm border border-[#5E35B1]/10 p-6 space-y-4">
        <?php echo csrf_field(); ?>

        <div>
            <label class="block text-sm font-medium text-gray-700 mb-1">Name *</label>
            <input type="text" name="name" value="<?php echo e(old('name')); ?>" required
                   class="w-full border border-[#5E35B1]/20 rounded-lg px-4 py-2 focus:outline-none focus:ring-2 focus:ring-[#5E35B1]/40">
            <?php $__errorArgs = ['name'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?><p class="text-red-500 text-sm mt-1"><?php echo e($message); ?></p><?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
        </div>

        <div>
            <label class="block text-sm font-medium text-gray-700 mb-1">Phone</label>
            <input type="text" name="phone" value="<?php echo e(old('phone')); ?>"
                   class="w-full border border-[#5E35B1]/20 rounded-lg px-4 py-2 focus:outline-none focus:ring-2 focus:ring-[#5E35B1]/40">
            <?php $__errorArgs = ['phone'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?><p class="text-red-500 text-sm mt-1"><?php echo e($message); ?></p><?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
        </div>

        <div>
            <label class="block text-sm font-medium text-gray-700 mb-1">Address</label>
            <textarea name="address" rows="3"
                      class="w-full border border-[#5E35B1]/20 rounded-lg px-4 py-2 focus:outline-none focus:ring-2 focus:ring-[#5E35B1]/40"><?php echo e(old('address')); ?></textarea>
            <?php $__errorArgs = ['address'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?><p class="text-red-500 text-sm mt-1"><?php echo e($message); ?></p><?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
        </div>

        <div class="flex justify-end gap-3 pt-2 border-t-2 border-dashed border-[#F57C00]/30">
            <a href="<?php echo e(route('customers.index')); ?>" class="px-4 py-2 text-gray-600">Cancel</a>
            <button class="bg-[#C2185B] text-white px-4 py-2 rounded-lg font-medium hover:bg-[#a3134b]">Save</button>
        </div>
    </form>
</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.admin', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH F:\xampp\htdocs\etailorz-v2\resources\views/admin/customers/create.blade.php ENDPATH**/ ?>