@extends('layouts.app') @section('title', 'Mis Notificaciones — OnAPB') @section('content')

Mis Notificaciones @if($totalNoLeidas > 0) {{ $totalNoLeidas }} nuevas @endif

@if($totalNoLeidas > 0) @endif @if(!$notificaciones->isEmpty()) @endif
@if($notificaciones->isEmpty())

No tenés notificaciones todavía.

Ir a mi panel
@else
@foreach($notificaciones as $notif)
{{-- Ícono según tipo --}}
@php $iconos = [ 'partido' => ['class' => 'bi-calendar-event', 'color' => 'text-primary'], 'resultado' => ['class' => 'bi-trophy-fill', 'color' => 'text-warning'], 'sistema' => ['class' => 'bi-info-circle-fill','color' => 'text-secondary'], 'seguimiento' => ['class' => 'bi-star-fill', 'color' => 'text-success'], ]; $icono = $iconos[$notif->tipo] ?? ['class' => 'bi-bell-fill', 'color' => 'text-muted']; @endphp
{{-- Contenido --}}
{{ $notif->titulo }}
{{ $notif->creada_en->diffForHumans() }}

{{ $notif->mensaje }}

@if($notif->url_accion) Ver detalle @endif @if(!$notif->leida) @endif
@endforeach
{{-- Paginación --}}
{{ $notificaciones->links() }}
@endif
@endsection @section('scripts') @endsection