<?php $attributes ??= new \Illuminate\View\ComponentAttributeBag;

$__newAttributes = [];
$__propNames = \Illuminate\View\ComponentAttributeBag::extractPropNames(([
    'notifications',
    'readRoute',
    'actionLabel' => 'Voir les détails →',
]));

foreach ($attributes->all() as $__key => $__value) {
    if (in_array($__key, $__propNames)) {
        $$__key = $$__key ?? $__value;
    } else {
        $__newAttributes[$__key] = $__value;
    }
}

$attributes = new \Illuminate\View\ComponentAttributeBag($__newAttributes);

unset($__propNames);
unset($__newAttributes);

foreach (array_filter(([
    'notifications',
    'readRoute',
    'actionLabel' => 'Voir les détails →',
]), 'is_string', ARRAY_FILTER_USE_KEY) as $__key => $__value) {
    $$__key = $$__key ?? $__value;
}

$__defined_vars = get_defined_vars();

foreach ($attributes->all() as $__key => $__value) {
    if (array_key_exists($__key, $__defined_vars)) unset($$__key);
}

unset($__defined_vars, $__key, $__value); ?>

<?php $__empty_1 = true; $__currentLoopData = $notifications; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $notification): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
    <div class="p-5 border-b border-slate-100 last:border-0 <?php echo e($notification->read_at ? 'bg-white' : 'bg-transtev-50/50'); ?> hover:bg-slate-50 transition">
        <div class="flex items-start gap-4">
            <div class="w-10 h-10 rounded-full bg-transtev-100 flex items-center justify-center shrink-0">
                <svg class="w-5 h-5 text-transtev-600" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 17h5l-1.405-1.405A2.032 2.032 0 0118 14.158V11a6.002 6.002 0 00-4-5.659V5a2 2 0 10-4 0v.341C7.67 6.165 6 8.388 6 11v3.159c0 .538-.214 1.055-.595 1.436L4 17h5m6 0v1a3 3 0 11-6 0v-1m6 0H9"/></svg>
            </div>
            <div class="flex-1 min-w-0">
                <p class="font-semibold text-slate-800"><?php echo e($notification->data['title'] ?? 'Notification'); ?></p>
                <p class="text-sm text-slate-600 mt-1"><?php echo e($notification->data['message'] ?? ''); ?></p>
                <p class="text-xs text-slate-400 mt-2"><?php echo e($notification->created_at->diffForHumans()); ?></p>
                <?php if(isset($notification->data['url'])): ?>
                    <form method="POST" action="<?php echo e(route($readRoute, $notification->id)); ?>" class="mt-3">
                        <?php echo csrf_field(); ?>
                        <button type="submit" class="text-sm font-medium text-transtev-600 hover:text-transtev-700"><?php echo e($actionLabel); ?></button>
                    </form>
                <?php endif; ?>
            </div>
        </div>
    </div>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
    <p class="p-12 text-center text-slate-400">Aucune notification.</p>
<?php endif; ?>
<?php if($notifications->hasPages()): ?>
    <div class="px-6 py-4 border-t border-slate-100"><?php echo e($notifications->links()); ?></div>
<?php endif; ?>
<?php /**PATH C:\xampp\htdocs\teyssir\resources\views/partials/notifications-list.blade.php ENDPATH**/ ?>