@extends('layout.base') @section('content')

@if (date('d/m/Y', strtotime($date)) === date('d/m/Y'))

Today

@else

{{ date('d/m/Y', strtotime($date)) }}

@endif

Arrival

@if (!empty($arrival) && $arrival->count() > 0) @foreach($arrival as $booking) @if($booking->rooms[0]->id == 2) @php $bedNumbers = explode(',', $booking->bed_number); // Split the string into an array $modifiedNumbers = array_map(function ($number) { return $number + 1000; }, $bedNumbers); // Add 1000 to each number $newBedNumber = implode(',', $modifiedNumbers); // Reassemble the modified numbers into a string @endphp @else @endif @endforeach @endif
Check In Check Out Name Phone Location Room No. # Total Room Accommodation
{{ $booking->arrival->format('d/m/Y h:i') }} {{ $booking->departure->format('d/m/Y h:i') }} {{ $booking->customer->fullname }} {{ $booking->customer->phone }} {{ $booking->customer->city }} {{ $newBedNumber}} {{ $booking->bed_number}}{{ $booking->guests }} @if (!empty($booking->rooms) && isset($booking->rooms[0])) {{ $booking->rooms[0]->name }} @if (isset($booking->rooms[0]->properties->options['part']) && $booking->rooms[0]->properties->options['part'] != -1) — kamer {{ $booking->rooms[0]->properties->options['part']+1 }} @endif @else No room information available @endif
{{ $arrival->appends(request()->query())->links() }}

Departure

@foreach($leaving as $booking) isNow()) class="booking__now @if ($booking->color()['luma'] > 180.0) reversed @endif" style="background-color: {{$booking->color()['color'] }}" @endif> @if($booking->rooms[0]->id == 2) @php $bedNumbers = explode(',', $booking->bed_number); // Split the string into an array $modifiedNumbers = array_map(function ($number) { return $number + 1000; }, $bedNumbers); // Add 1000 to each number $newBedNumber = implode(',', $modifiedNumbers); // Reassemble the modified numbers into a string @endphp @else @endif @endforeach
Check In Check Out Name Phone Location Room No. # Total Room Accommodation
{{ $booking->arrival->format('d/m/Y h:i') }} {{ $booking->departure->format('d/m/Y h:i') }} {{ $booking->customer->fullname }} {{ $booking->customer->phone }} {{ $booking->customer->city }} {{ $newBedNumber}} {{ $booking->bed_number}}{{ $booking->guests }} @if (!empty($booking->rooms) && isset($booking->rooms[0])) {{ $booking->rooms[0]->name }} @if (isset($booking->rooms[0]->properties->options['part']) && $booking->rooms[0]->properties->options['part'] != -1) — kamer {{ $booking->rooms[0]->properties->options['part']+1 }} @endif @else No room information available @endif
{{ $leaving->appends(request()->query())->links() }}

Rooms Avilable

@foreach($roomName as $index => $room_name) @endforeach
Accommodation Avilable Total Rooms
{{ $room_name }} {{ $count_bed_avilable[$index] }}
@endsection