{{$i}} |
@if($items->created == '0000-00-00' || is_null($items->created)) - @else {{date('d/m/Y', strtotime($items->created))}} @endif |
@if($items->check_in == '0000-00-00' || is_null($items->check_in)) - @else {{date('d/m/Y', strtotime($items->check_in))}} @endif |
@if($items->check_out == '0000-00-00' || is_null($items->check_out)) - @else {{date('d/m/Y', strtotime($items->check_out))}} @endif |
{{$items->booking_id}} |
@php
$guest = DB::table('guests')->where('booking_id',$items->booking_id)->get();
@endphp
{{$guest[0]->first_name}}
|
{{$items->hotelName}} |
RM {{ number_format((float)$items->total, 2, '.', '') }} |
{{$items->agentName}} |
{{$items->staffName}} |
@if($items->status == 'true')
Pending |
@elseif($items->status == 'Confirmed')
Confirmed |
@elseif($items->status == 'Cancelled')
Cancelled |
@endif
@if($items->modified == '0000-00-00' || is_null($items->modified)) - @else {{ date('d/m/Y H:i:s', strtotime($items->modified))}} @endif |
@if(is_null($items->modified_by)) - @else {{ $items->modName }} @endif |
@if($items->created == '0000-00-00' || is_null($items->created)) - @else {{ date('d/m/Y H:i:s', strtotime($items->created))}} @endif |
@if(is_null($items->first_name)) - @else {{ $items->first_name }} @endif |
@php $i++; @endphp
@endforeach