<?php $__env->startSection('title', 'Modifier la Catégorie'); ?>
<?php $__env->startSection('page_title', 'Catégories'); ?>

<?php $__env->startSection('content'); ?>
<div class="max-w-4xl mx-auto">
    <!-- Header -->
    <div class="flex flex-col sm:flex-row sm:items-center justify-between gap-4 mb-10">
        <h2 class="text-2xl sm:text-3xl font-extrabold text-slate-900 tracking-tight">Modifier la catégorie</h2>
        <a href="<?php echo e(route('admin.categories.index')); ?>" class="flex items-center gap-2 text-slate-500 hover:text-slate-800 font-bold transition-all uppercase text-xs tracking-widest">
            <svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 19l-7-7m0 0l7-7m-7 7h18"></path></svg>
            Retour à la liste
        </a>
    </div>

    <!-- Form Area -->
    <div class="premium-card p-8">
        
        <form action="<?php echo e(route('admin.categories.update', $category)); ?>" method="POST" class="space-y-6">
            <?php echo csrf_field(); ?>
            <?php echo method_field('PUT'); ?>
            
            <div class="space-y-8">
                <div>
                    <label class="block text-xs font-bold text-slate-700 uppercase tracking-wider mb-1.5">Nom de la catégorie</label>
                    <input type="text" name="name" value="<?php echo e($category->name); ?>" required 
                           class="input-field"
                           oninput="this.value = this.value.charAt(0).toUpperCase() + this.value.slice(1)">
                </div>
                
                <div>
                    <label class="block text-xs font-bold text-slate-700 uppercase tracking-wider mb-2.5">Description</label>
                    <textarea name="description" rows="5" 
                               class="input-field" 
                               placeholder="Décrivez l'utilité de cette catégorie..."><?php echo e($category->description); ?></textarea>
                </div>
            </div>
            
            <div class="flex flex-col-reverse sm:flex-row items-center justify-end gap-4 pt-4">
                <a href="<?php echo e(route('admin.categories.index')); ?>" class="w-full sm:w-auto text-center px-6 py-3 text-sm font-bold text-slate-500 hover:text-slate-800 transition-all">
                    Annuler
                </a>
                <button type="submit" class="w-full sm:w-auto btn-primary shadow-lg shadow-[#00A3A2]/20 px-10">
                    Sauvegarder les modifications
                </button>
            </div>
        </form>
    </div>
</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('admin.layout', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /home/fonix-sa/Bureau/Fonix projects/tts-groupe/resources/views/admin/categories/edit.blade.php ENDPATH**/ ?>