@extends('layouts.admin') @section('header_style') @endsection @section('content')
{{ csrf_field() }}
@php $i=1; @endphp @foreach($damage as $items) @if($items->status == 'true') @elseif($items->status == 'Confirmed') @elseif($items->status == 'Cancelled') @endif @php $i++; @endphp @endforeach
No Booking Date Check-in Check-out Booking No Guest Name Hotel Cost Agent Staff Status Modified Modified by Created Created by
{{$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}}PendingConfirmedCancelled@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
@endsection @section('footer_script') @endsection