Reporte de Habitaciones de Hoteles


@php $available=0; $busy=0; $cleaning = 0; @endphp @foreach($rooms as $key => $value) @php $status=$value->status; if ($status === 'DISPONIBLE') { $available+=1; }else if ($status === 'OCUPADO'){ $busy+=1; } else { $cleaning += 1; } @endphp @endforeach

Empresa:

{{$company->name}}

Fecha:

{{date('Y-m-d')}}

Ruc:

{{$company->number}}

Habitaciones disponibles:

{{$available}}

Habitaciones ocupadas:

{{$busy}}

Habitaciones en limpieza:

{{$cleaning}}
{{-- @php dd($records); @endphp --}}
@php $available=0; $busy=0; $cleaning = 0; $status = 0; $name_room = 0; $hours= 0; $hours_total=0; $hours_now=0; $symbol = 'h'; @endphp @foreach($rooms as $key => $value) @php $status=$value->status; if ($status === 'DISPONIBLE') { $available+=1; }else if ($status === 'OCUPADO'){ $busy+=1; } else { $cleaning += 1; } $hours = $value->updated_at; $hours = \Carbon\Carbon::parse($hours); $hours_now = \Carbon\Carbon::now(); $hours_total = $hours->diffInHours($hours_now); if ($hours_total === 0) { $hours_total = $hours->diffInMinutes($hours_now); $symbol = 'm'; } $name_room = $value->name; @endphp @endforeach

Listado de habitaciones

# Habitacion Estado Horas
{{$key+1}} {{$name_room}} {{$status}} {{ $hours_total.' '.$symbol}}

@if(!empty($records)) {{-- --}} @php $total_days_rent=0; $total_nigth_days=0; $nationality = 0; $country = 0; @endphp @foreach($records as $key => $value)
Notice: Undefined variable: value in C:\laragon\www\facturadorpro4\modules\Report\Resources\views\report_hotels\report_excel.blade.php on line 214

Notice: Trying to get property 'customer' of non-object in C:\laragon\www\facturadorpro4\modules\Report\Resources\views\report_hotels\report_excel.blade.php on line 214

Notice: Undefined variable: value in C:\laragon\www\facturadorpro4\modules\Report\Resources\views\report_hotels\report_excel.blade.php on line 215

Notice: Trying to get property 'room' of non-object in C:\laragon\www\facturadorpro4\modules\Report\Resources\views\report_hotels\report_excel.blade.php on line 215

Notice: Undefined variable: value in C:\laragon\www\facturadorpro4\modules\Report\Resources\views\report_hotels\report_excel.blade.php on line 216

Fatal error: Uncaught Error: Call to a member function searchRateRoom() on null in C:\laragon\www\facturadorpro4\modules\Report\Resources\views\report_hotels\report_excel.blade.php:216 Stack trace: #0 {main} thrown in C:\laragon\www\facturadorpro4\modules\Report\Resources\views\report_hotels\report_excel.blade.php on line 216

Reporte General

# Nombres y Apellidos Habitación Status de pago Status checkout Fecha de entrada Hora de entrada Fecha de salida Hora de salida# numero Nombres y apellidos Nacionalidad Pais o region de residencia Tipo de documento Numero de documento Fecha de ingreso Fecha de salida Numero de habitacion asignada Tarifa Arribos Habitacion noche ocupadas Pernoctaciones Motivo Categoria