@extends('layouts.horizontal', ['title' => 'Invoice', 'topbarTitle' => 'View Invoice', 'nonav' => true]) @section('css') @endsection @section('content')

Booking Receipt

Booking #: {{ str_pad($booking->id_bookings, 6, '0', STR_PAD_LEFT) }}
Date: {{ \Carbon\Carbon::now()->format('d M, Y') }}
Customer Name:

{{ $bookingVisits[0]->customer_name }}

Customer Contact:

{{ $bookingVisits[0]->customer_cell }}

Package:

{{ $bookingVisits[0]->service_type }}

Booking date:

{{ $bookingVisits[0]->booking_date }}

@php $totalServiceRate = 0; @endphp @foreach($bookingVisits as $visit)
For Services:

{{ $visit->service_category }}

Arrival date:

{{ $visit->arrival_date }}

Arrival Time:

{{ $visit->arrival_time }}

Departure Time:

{{ $visit->departure_time }}

Service Rate:

{{ config('constants.CURRENCY') }} {{ $visit->service_rate }}

@php $totalServiceRate += $visit->service_rate; @endphp @endforeach
Package Amount:

{{ config('constants.CURRENCY') }} {{ $totalServiceRate != null ? number_format($totalServiceRate, 2) : '0.00' }}

Payment Mode:

{{ $visitAdvance->payment_mode }}

Advance:

{{ config('constants.CURRENCY') }} {{ $visitAdvance->total_advance != null ? number_format($visitAdvance->total_advance, 2) : '0.00' }}

Remaining:

{{ config('constants.CURRENCY') }} {{ number_format($bookingVisits[0]->service_rate - ($visitAdvance->total_advance != null ? $visitAdvance->total_advance : 0), 2) }} +Taxes

Discount:

{{ config('constants.CURRENCY') }} {{ $bookingVisits[0]->discount != null ? number_format($bookingVisits[0]->discount, 2) : '0.00' }}

Booking Officer:

{{ $bookingVisits[0]->created_by }}

Cashier Name:

 

Cashier Signature:

 

@endsection