@php $email = $email ?? auth()->user()->email ?? null; $aprobada = false; if ($email) { $aprobada = DB::connection('vacaciones') ->table('solicitudes_vacaciones') ->where('email', $email) ->where('estado', 'Aprobada') ->where('fecha_fin', '>=', now()->toDateString()) ->exists(); } @endphp @if($aprobada)
@push('scripts') @endpush @endif