@php $header = 'MES DE ' . strtoupper($planilla->mes_string) . ' ' . $planilla->year . ' DE TIPO ' . strtoupper($planilla->tipo_periodo) . ' ' . $planilla->periodo_dias; @endphp
REPORTE DE INCAPACIDADES {{ $header }}
@foreach ($data as $key => $item) @endforeach
# Empresa Empleado PerĂ­odo Planilla Fecha Cantidad Tipo
{{ $key + 1 }} {{ $item->empresa->empresa }} {{ $item->empleado->nombre_completo }} {{ $item->periodoPlanilla->mes_string }} - {{ $item->periodoPlanilla->year }} {{ $item->periodoPlanilla->tipo_periodo }} {{ $item->periodoPlanilla->periodo_dias }} {{ date_format(new DateTime($item->fecha_inicio), 'd-m-Y') }} {{ $item->cantidad }} {{ $item->tipoIncapacidad->tipo }}