@extends('layouts.app') @push('css') @endpush @section('content')
{{ $title }} @if(userCanView('bookings_and_reservation.edit',$booking->id)) Edit Booking     @endif @if(userCanView('bookings_and_reservation.destroy',$booking->id)) Delete Booking @endif @if(userCanView('bookings_and_reservation.make_payment') && ($booking->status->name!="Checked-out" && $booking->status->name!="Paid" )) Add Payment @endif @if(userCanView('bookings_and_reservation.check_out') && $booking->status->name!="Checked-out") Checkout Guest @endif
@if(session('success')) {!! alert_success(session('success')) !!} @elseif(session('error')) {!! alert_error(session('error')) !!} @endif

{{ $booking->customer->firstname }} {{ $booking->customer->lastname }}

{{ str_date($booking->start_date) }}

{{ str_date($booking->end_date) }}

{!! label($booking->status->name, $booking->status->label) !!}

{{ $booking->no_of_days }}

{{ $booking->no_of_rooms }}

{{ str_date($booking->booking_date) }}

{{ number_format($booking->total,2) }}

{{ number_format($booking->total_paid,2) }}

{{ $booking->user->name }}

Customer Information



{{ $booking->customer->firstname }} {{ $booking->customer->lastname }}

{{ $booking->customer->address }}

{{ $booking->customer->email }}

{{ $booking->customer->phone_number }}

{{ $booking->customer->nok_firstname }} {{ $booking->customer->nok_lastname }}

{{ $booking->customer->nok_phone_number }}

{{ $booking->customer->nationality }}

{{ $booking->customer->passport_no }} / {{ $booking->customer->passport_expire_date }}

{{ $booking->customer->occupation }}

{{ $booking->customer->purpose_of_visit }}

{{ $booking->customer->vehicle_reg_number }}

{{ $booking->customer->arriving_from }}

{{ $booking->customer->city }}

{{ $booking->customer->state }}

Room Information


@foreach($booking->booking_reservation_items as $item) @endforeach
# Room Name Price No of Nights Total
{{ $loop->iteration }} {{ $item->room->name }} {{ number_format($item->price,2) }} {{ $item->noOfDays }} {{ number_format($item->total,2) }}
Sub Total {{ number_format($booking->total,2) }}
Total {{ number_format($booking->total,2) }}

Payment Information


@php $total=0; @endphp @foreach($payments as $payment) @endforeach
# Customer Store Method Invoice / Receipt Number Sub Total Total Paid Payment Time Payment Date
{{ $loop->iteration }} {{ $payment->customer->firstname }} {{ $payment->customer->lastname }} {{ $payment->warehousestore->name }} {{ isset( $payment->payment_method->name) ? $payment->payment_method->name : "" }} {{ $payment->invoice->invoice_paper_number }} {{ number_format($payment->amount,2) }} {{ number_format($payment->amount,2) }} {{ date("h:i a",strtotime($payment->payment->payment_time)) }} {{ convert_date($payment->payment->payment_date) }}
{{ number_format($payments->sum('amount'),2) }} {{ number_format($payments->sum('amount'),2) }}
@endsection @push('js') @endpush