@extends('admin-layouts.master') @section('title', 'Daftar Check-out') @section('content')

Daftar Check-out

Kelola dan pantau check-out tamu hotel

@if(request('search')) @endif @if(request('date')) @endif @if(request('sort')) @endif @if(request('direction')) @endif
{{-- Check-out Baru --}}
@if(request('search') || request('date'))
Filter aktif: @if(request('search')) "{{ Str::limit(request('search'), 20) }}" @endif @if(request('date')) @switch(request('date')) @case('today') Hari Ini @break @case('yesterday') Kemarin @break @case('week') Minggu Ini @break @case('month') Bulan Ini @break @default {{ ucfirst(request('date')) }} @endswitch @endif Reset
@endif
@if(session('success')) @endif @if(session('error')) @endif @if(request('search') || request('date'))
Menampilkan {{ $checkOuts->count() }} dari {{ $checkOuts->total() }} hasil @if(request('search')) untuk pencarian "{{ request('search') }}" @endif @if(request('date')) dengan filter yang dipilih @endif
@if($checkOuts->count() > 0)
Halaman {{ $checkOuts->currentPage() }} dari {{ $checkOuts->lastPage() }}
@endif
@endif
Check-out Hari Ini
{{ $checkOuts->where('created_at', '>=', today())->count() }}
+8% dari kemarin
Total Check-out
{{ $checkOuts->total() }}
All time
Kamar Dibersihkan
{{ $checkOuts->where('created_at', '>=', today())->count() }}
Ready for cleaning
Rata-rata Check-out
{{$mostFrequentHourFormatted}}
Peak hour
Riwayat Check-out
@if($checkOuts->count() > 0)
{{-- --}} @foreach($checkOuts as $checkOut) {{-- --}} @endforeach
BOOKING INFO TAMU KAMAR CHECK-IN CHECK-OUT DURASIAKSI
#{{ $checkOut->booking->id }}
{{ \Carbon\Carbon::parse($checkOut->booking->check_in_date)->format('d M Y') }} - {{ \Carbon\Carbon::parse($checkOut->booking->check_out_date)->format('d M Y') }}
{{ substr($checkOut->booking->guest->name, 0, 2) }}
{{ $checkOut->booking->guest->name }}
{{ $checkOut->booking->guest->phone ?? 'No phone' }}
@foreach($checkOut->booking->bookingDetails as $detail) {{ $detail->room->room_number }} - {{ $detail->room->typeRoom->name ?? 'N/A' }} @endforeach
@if($checkOut->booking->checkIn)
{{ \Carbon\Carbon::parse($checkOut->booking->checkIn->check_in_time)->format('d M Y') }}
{{ \Carbon\Carbon::parse($checkOut->booking->checkIn->check_in_time)->format('H:i') }}
@else - @endif
{{ \Carbon\Carbon::parse($checkOut->check_out_time)->format('d M Y') }}
{{ \Carbon\Carbon::parse($checkOut->check_out_time)->format('H:i') }}
@if($checkOut->booking->checkIn) @php $checkInTime = \Carbon\Carbon::parse($checkOut->booking->checkIn->check_in_time); $checkOutTime = \Carbon\Carbon::parse($checkOut->check_out_time); $duration = $checkInTime->diffInHours($checkOutTime); $days = intval($duration / 24); $hours = $duration % 24; @endphp
@if($days > 0) {{ $days }} hari @endif @if($hours > 0) {{ $hours }} jam @endif
{{ $duration }} jam total @else - @endif
@if($checkOuts->hasPages()) @endif @else
@if(request('search') || request('date'))
Tidak ada hasil ditemukan

Coba ubah kata kunci pencarian atau filter yang digunakan.

Reset Filter @else
Belum ada check-out

Belum ada tamu yang check-out hari ini.

@endif Check-out Baru
@endif
@endsection