<?php $__env->startSection('header_title', 'Editar Cliente'); ?>
<?php $__env->startSection('header_subtitle', 'Atualize os dados principais do cliente.'); ?>

<?php $__env->startSection('content'); ?>
    <div class="mb-6">
        <a href="<?php echo e(route('admin.clients.index')); ?>" class="text-sm font-medium text-slate-400 hover:text-white transition-colors flex items-center gap-2">
            <svg class="w-4 h-4" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 19l-7-7m0 0l7-7m-7 7h18" /></svg>
            Voltar à listagem
        </a>
    </div>

    <div class="bg-slate-900 border border-white/5 rounded-2xl p-6 md:p-8 shadow-xl max-w-4xl">
        <?php if($errors->any()): ?>
            <div class="mb-6 p-4 rounded-xl bg-red-500/10 border border-red-500/20 text-red-400 text-sm">
                <ul class="list-disc list-inside"><?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><li><?php echo e($error); ?></li><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?></ul>
            </div>
        <?php endif; ?>

        <form action="<?php echo e(route('admin.clients.update', $client)); ?>" method="POST" class="space-y-6">
            <?php echo csrf_field(); ?>
            <?php echo method_field('PUT'); ?>
            <div class="grid grid-cols-1 md:grid-cols-2 gap-6">
                <div>
                    <label class="block text-sm font-medium text-slate-300 mb-2">Nome Completo / Empresa *</label>
                    <input type="text" name="name" value="<?php echo e(old('name', $client->name)); ?>" required class="block w-full px-4 py-3 bg-slate-950 border border-white/10 rounded-xl text-white sm:text-sm">
                </div>
                <div>
                    <label class="block text-sm font-medium text-slate-300 mb-2">NIF / NIPC</label>
                    <input type="text" name="document_number" value="<?php echo e(old('document_number', $client->document_number)); ?>" class="block w-full px-4 py-3 bg-slate-950 border border-white/10 rounded-xl text-white sm:text-sm">
                </div>
                <div>
                    <label class="block text-sm font-medium text-slate-300 mb-2">Telefone</label>
                    <input type="text" name="phone" value="<?php echo e(old('phone', $client->phone)); ?>" class="block w-full px-4 py-3 bg-slate-950 border border-white/10 rounded-xl text-white sm:text-sm">
                </div>
                <div class="md:col-span-2">
                    <label class="block text-sm font-medium text-slate-300 mb-2">Morada</label>
                    <textarea name="address" rows="3" class="block w-full px-4 py-3 bg-slate-950 border border-white/10 rounded-xl text-white sm:text-sm"><?php echo e(old('address', $client->address)); ?></textarea>
                </div>
            </div>
            <div class="mt-8 pt-6 border-t border-white/5 flex items-center justify-end gap-4">
                <a href="<?php echo e(route('admin.clients.index')); ?>" class="px-5 py-2.5 text-sm font-medium text-slate-300 hover:text-white transition-colors">Cancelar</a>
                <button type="submit" class="px-6 py-2.5 bg-blue-600 hover:bg-blue-500 text-white text-sm font-semibold rounded-xl">Guardar Alterações</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 C:\laragon\www\secure-vision-app\resources\views\admin\clients\edit.blade.php ENDPATH**/ ?>