@extends('admin-layouts.master') @section('title', 'Daftar Check-out') @section('content')
Kelola dan pantau check-out tamu hotel
| BOOKING INFO | TAMU | KAMAR | CHECK-IN | CHECK-OUT | DURASI | {{--AKSI | --}}
|---|---|---|---|---|---|---|
|
#{{ $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') }}
|
{{ \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
|
{{-- --}} |
Coba ubah kata kunci pencarian atau filter yang digunakan.
Reset Filter @elseBelum ada tamu yang check-out hari ini.
@endif Check-out Baru