@extends('backend.layouts.app') @section('title') {{ __($module_title) }} @endsection @section('content')
logo
Invoice{{ __('booking.download_invoice') }} {{ setting('inv_prefix') }}{{ $data->booking->resource->id }}
{{ __('booking.invoice_data') }}: {{ date('d M, Y', strtotime($data->booking->resource->created_at)) }}
{{ __('booking.customer_info') }}

{{ __('booking.name') }}: {{ optional($data->booking->resource->user)->full_name }}

{{ __('booking.email') }}: {{ optional($data->booking->resource->user)->email }}

{{ __('booking.phone') }}: {{ optional($data->booking->resource->user)->mobile }}

{{ __('booking.payment_method') }}:
{{ ucwords(str_replace('_', ' ', optional($data->booking_transaction)->transaction_type)) }}
@php $billingAddress = $data->booking->resource->branch->address; $productPrice = 0; @endphp @if($billingAddress)
{{ __('booking.billing_address') }}

{{ optional($billingAddress)->address_line_1 }}, {{ optional($billingAddress)->city }}, {{ optional($billingAddress)->state }}, {{ optional($billingAddress)->country }}

@endif
@foreach ($data->booking->resource->services as $key => $value) @endforeach @foreach ($data->booking->resource->products as $key => $value) @php $price = $value->product_price; $delPrice = false; $discountType = $value->discount_type; $discountValue = $value->discount_value . ($discountType == 'percent' ? '%' : ''); if($price != $value->discounted_price) { $delPrice = $price; $price = $value->discounted_price; } $productPrice=($price * $value->product_qty)+$productPrice @endphp @endforeach @if($data->coupon_discount>0) @endif
{{ __('booking.services') }}/{{ __('booking.products') }} {{ __('booking.unit_price') }} QTY{{ __('booking.qty') }} {{ __('booking.total_price') }}
{{ $value->service_name }}
{{ \Currency::format($value->service_price) }} 1 {{ \Currency::format($value->service_price) }}
{{ $value->product_name }}
{{ \Currency::format($price) }}
{{ $value->product_qty }} {{ \Currency::format($price * $value->product_qty) }}
{{ __('booking.sub_total') }}:
{{ \Currency::format($data->services_total_amount + $productPrice )}}
{{ __('booking.tips') }}:
{{ \Currency::format(optional($data->booking_transaction)->tip_amount) }}
{{ __('booking.tax') }}:
{{ \Currency::format($data->tax_amount) }}
{{ __('booking.coupondiscount') }}:
{{ \Currency::format($data->coupon_discount) }}
{{ __('booking.grand_total') }}:
{{ \Currency::format($data->grand_total) }}
@endsection @push('after-scripts') @endpush