@php $currentUserId = Auth::id(); // Totales y filtrados para las badges de las pestañas $sentChargesFiltered = $sentCharges->filter(fn($charge) => $charge->signature?->assigned_to !== $currentUserId); $sentTotal = $sentChargesFiltered->count(); $sentPending = $sentChargesFiltered ->filter(fn($charge) => $charge->signature?->signature_status === 'pendiente') ->count(); $sentSigned = $sentChargesFiltered ->filter(fn($charge) => $charge->signature?->signature_status === 'firmado') ->count(); $receivedTotal = $receivedCharges->count(); $receivedPending = $receivedCharges ->filter(fn($charge) => $charge->signature?->signature_status === 'pendiente') ->count(); $receivedSigned = $receivedCharges ->filter(fn($charge) => $charge->signature?->signature_status === 'firmado') ->count(); $receivedRejected = $receivedCharges ->filter(fn($charge) => $charge->signature?->signature_status === 'rechazado') ->count(); $createdTotal = $createdCharges->count(); @endphp
calendar_today

Periodo asignado

{{ $defaultPeriod ?? 'Sin periodo' }}
@if (!$defaultPeriod && !Auth::user()?->hasRole('ADMINISTRADOR')) Notificar al administrador @endif @if (!$defaultPeriod && Auth::user()?->hasRole('ADMINISTRADOR')) Configurar periodo @endif
check

Cargos firmados

{{ $signedCount ?? 0 }}

edit

Pendientes de firma

{{ $unsignedCount ?? 0 }}

Nuevo cargo

Registrar rápidamente
@if ($canViewResolutionCharges) @include('charges.partials.lists.resolution', ['active' => true]) @endif @include('charges.partials.lists.received', ['active' => !$canViewResolutionCharges]) @include('charges.partials.lists.created') @include('charges.partials.lists.sent')