@extends('adminlte::page') @section('title', 'Reporte de Permisos') @section('plugins.Select2', true) @section('content_header')

Reporte de Permisos

@stop @section('content')

Filtros de búsqueda

Limpiar @if(isset($registros) && $registros->count() > 0) PDF @endif
@if(isset($registros) && $registros->count() > 0)

Resultados ({{ $registros->count() }} registros)

@foreach($registros as $i => $p) @php $dias = $p->fecha_inicio && $p->fecha_fin ? $p->fecha_inicio->diffInDays($p->fecha_fin) + 1 : 0; @endphp @endforeach
# Colaborador Fecha inicio Fecha fin Días Motivo Estado Registrado por
{{ $i + 1 }} {{ $p->empleado->nombre ?? '' }} {{ $p->empleado->apellido ?? '' }} {{ $p->fecha_inicio ? $p->fecha_inicio->format('d/m/Y') : '-' }} {{ $p->fecha_fin ? $p->fecha_fin->format('d/m/Y') : '-' }} {{ $dias }} {{ $p->motivo ?? '-' }} @if(($p->estado ?? '') === 'aprobado') Aprobado @elseif(($p->estado ?? '') === 'rechazado') Rechazado @else Pendiente @endif {{ $p->usuario->name ?? '-' }}
@elseif(request()->has('fecha_desde') || request()->has('fecha_hasta') || request()->has('empleado_id') || request()->has('estado'))
No se encontraron resultados con los filtros aplicados.
@else
Seleccione los filtros y pulse Buscar para generar el reporte.
@endif
@stop @section('css') @stop @section('js') @stop