@php $extraService = count($booking->usedExtraService); $due = $booking->total_amount - $booking->paid_amount; @endphp
{{ date('d/m/Y') }}
@lang('Invoice To')
  • @lang('Name') : {{ $booking->user ? $booking->user->fullname : $booking->guest_details->name }}
  • @lang('Email') : {{ $booking->user ? $booking->user->email : $booking->guest_details->email }}
  • @lang('Mobile') : +{{ $booking->user ? $booking->user->mobile : $booking->guest_details->mobile }}
  • @lang('Bill Information')
  • @lang('Booking No') : {{ $booking->booking_number }}
  • @lang('Total Amount') : {{ showAmount($booking->total_amount) }} {{ __($general->cur_text) }}
  • @lang('Paid Amount') : {{ showAmount($booking->paid_amount) }} {{ __($general->cur_text) }}
@lang('Room\'s Details')
@php $activeBookedRooms = $booking->activeBookedRooms->groupBy('booked_for'); $totalFare = $booking->activeBookedRooms->sum('fare'); @endphp @foreach ($activeBookedRooms as $key => $item) @foreach ($item as $booked) @endforeach @endforeach @if (!$extraService) @if ($booking->cancellation_fee > 0) @endif @if ($booking->extraCharge() > 0) @endif @if ($due > 0) @elseif($due < 0) @endif @endif
@lang('Room No.') @lang('Room Type') @lang('Fare')
{{ __(showDateTime($key, 'd M, Y')) }}
{{ __($booked->room->room_number) }} {{ __($booked->room->roomType->name) }} {{ __(showAmount($booked->fare)) }} {{ __($general->cur_text) }}
@lang('Total Fare') {{ showAmount($totalFare) }} {{ __($general->cur_text) }}
@lang('Cancellation Fee') {{ showAmount($booking->cancellation_fee) }} {{ __($general->cur_text) }}
{{ __($general->tax_name) }} {{ showAmount($booking->tax_charge) }} {{ __($general->cur_text) }}
@lang('Other Charges') {{ showAmount($booking->extraCharge()) }} {{ __($general->cur_text) }}
@lang('Total') {{ showAmount($booking->total_amount) }} {{ __($general->cur_text) }}
@lang('Due') {{ showAmount($due) }} {{ __($general->cur_text) }}
@lang('Refundable') {{ showAmount(abs($due)) }} {{ __($general->cur_text) }}
@if ($extraService) @php $extraServices = $booking->usedExtraService->groupBy('service_date'); @endphp
@lang('Service Details')
@foreach ($extraServices as $key => $serviceItems) @foreach ($serviceItems as $service) @endforeach @endforeach
@lang('Room No.') @lang('Service') @lang('Quantity') @lang('Unit Price') @lang('Amount')
{{ __(showDateTime($key, 'd M, Y')) }}
{{ __($service->room->room_number) }} {{ __($service->extraService->name) }} {{ $service->qty }} {{ showAmount($service->unit_price) }} {{ __($general->cur_text) }} {{ showAmount($service->total_amount) }} {{ __($general->cur_text) }}
@lang('Total Charge') {{ showAmount($booking->service_cost) }} {{ __($general->cur_text) }}
@lang('Billing Details')
@if ($booking->cancellation_fee > 0) @endif @if ($booking->extraCharge() > 0) @endif @if ($due > 0) @elseif($due < 0) @endif
@lang('Total Fare') {{ showAmount($totalFare) }} {{ __($general->cur_text) }}
@lang('Cancellation Fee') {{ showAmount($booking->cancellation_fee) }} {{ __($general->cur_text) }}
{{ __($general->tax_name) }} @lang('Charge') {{ showAmount($booking->tax_charge) }} {{ __($general->cur_text) }}
@lang('Service Charge') {{ showAmount($booking->service_cost) }} {{ __($general->cur_text) }}
@lang('Other Charges') {{ showAmount($booking->extraCharge()) }} {{ __($general->cur_text) }}
@lang('Total') {{ showAmount($booking->total_amount) }} {{ __($general->cur_text) }}
@lang('Due') {{ showAmount($due) }} {{ __($general->cur_text) }}
@lang('Refundable') {{ showAmount(abs($due)) }} {{ __($general->cur_text) }}
@endif