@extends('layouts.admin') @section('title', 'Notificaciones | Liud Panel') @section('page_title', 'Notificaciones internas') @section('page_actions') @can('admin.notificaciones.crear') @endcan @endsection @push('styles') @endpush @section('content') @php $nivelNotificacion = function ($priority, $type = null) { $priority = strtolower((string) $priority); $type = strtolower((string) $type); if (in_array($priority, ['alto', 'alta'], true) || in_array($type, ['danger', 'error'], true)) { return ['key' => 'alto', 'label' => 'Alto', 'class' => 'text-bg-danger']; } if (in_array($priority, ['alerta', 'media'], true) || $type === 'warning') { return ['key' => 'alerta', 'label' => 'Alerta', 'class' => 'text-bg-warning']; } return ['key' => 'normal', 'label' => 'Normal', 'class' => 'text-bg-info']; }; @endphp
{{ $notificacion->body ?: 'Sin mensaje adicional.' }}
No se encontraron notificaciones con esos filtros.