@lang("modules.booking.billedTo"):

{{ ucwords($booking->user->name) }}

@lang("modules.booking.generatedBy"):

{{ ucwords($settings->company_name) }}

{!! nl2br($settings->address) !!}
{{ $settings->company_phone }}

@lang('app.receipt') #{{ ($booking->id < 10) ? "0".$booking->id : $booking->id }}

@if ($booking->date_time!='')
@lang('app.booking') @lang('app.date'): {{ $booking->date_time }}
@endif
@foreach($booking->items as $key=>$item) @if (!is_null($booking->deal_id)) @else @endif @endforeach @if($booking->discount > 0) @endif @if($booking->tax_amount > 0) @endif
# @lang("app.item") @lang("app.quantity") @lang("app.unitPrice") @lang("app.amount")
{{ ++$count }}

{{ ucwords(is_null($item->business_service_id) ? $item->product->name : $item->businessService->name) }}


{{ $item->quantity }}

{{globalSetting()->currency->currency_code}} {{ number_format((float)$item->unit_price, 2, '.', '') }}{{globalSetting()->currency->currency_code}} {!!(number_format((float)($item->unit_price * $item->unit_quantity), 2, '.', '')) !!}{{globalSetting()->currency->currency_code}} {!!(number_format((float)(is_null($item->business_service_id) ? $item->product->discounted_price * $item->quantity : $item->businessService->discounted_price * $item->quantity), 2, '.', '')) !!}
      @lang("app.subTotal") {{globalSetting()->currency->currency_code}} {{ number_format((float)$booking->original_amount+$booking->product_amount, 2, '.', '') }}
      @lang("app.discount") - {{globalSetting()->currency->currency_code}} {{ number_format((float)$booking->discount, 2, '.', '') }}
      @lang('app.totalTax') {{globalSetting()->currency->currency_code}} {{ number_format((float)$booking->tax_amount, 2, '.', '') }}
      @lang("app.total") @lang("app.paid") {{globalSetting()->currency->currency_code}} {{ number_format((float)$booking->amountPaid(), 2, '.', '') }}
      @lang("app.total") {{globalSetting()->currency->currency_code}} {{ number_format((float)$booking->amount_to_pay, 2, '.', '') }}
      @lang("app.payment") @lang("app.status") {{$booking->payment_status}}
@php $count = 0; @endphp @foreach($booking->bookingPayments as $key => $payment) @endforeach
# @lang("app.date") @lang("app.paymentmethod") @lang("app.amount")
{{ ++$count }}

{{ \Carbon\Carbon::parse($payment->paid_on)->translatedFormat($settings->date_format) }}

{{ $payment->gateway }}

{{globalSetting()->currency->currency_code}} {{ number_format((float)$payment->amount_paid, 2, '.', '') }}
@lang('app.amountRemaining') {{globalSetting()->currency->currency_code}} {{ number_format((float)$booking->amountDue(), 2, '.', '') }}