@extends('frontend.theme_2.app') @section('title', __('invoice') . ' || ' . $companyName) @push('styles') @endpush @section('content')
@include('frontend.pages.banner')

{{ $company_address_line ?? '-'}}

{{ __('order_invoice') }}

#{{ $order->order_id }}

{{ __('create_date') }} : {{ $order->created_date ?? '' }}

@if ($type == 'service')

{{ __('booking_date_and_time') }} : {{ ($order->booking_date ?? '') . ' ' . ($order->from_time ?? '') . ' - ' . ($order->to_time ?? '') }}

@else

{{ __('due_date') }} : {{ $order->due_date ?? '' }}

@endif

{{ __('payment_status') }}

@if($order->type == 'product' && $order->payment_type == 5) @php $codPaymentStatus = $order->bookingProducts[0]->cod_payment_status; @endphp {{ $codPaymentStatus == 1 ? __('unpaid') : ( $codPaymentStatus == 2 ? __('paid') : __('refund') ) }} @else {{ $order->payment_status == 1 ? __('unpaid') : ( $order->payment_status == 2 ? __('paid') : __('refund') ) }} @endif
{{ __('billing_address') }}

{{ ucfirst($order->first_name) }} {{ ucfirst($order->last_name) }}

{{ $order->user_address }}

{{ __('Phone') }} : {{ $order->user_phone }}

{{ __('shipping_address') }}

{{ ucfirst($order->shipping_user_first_name ?? $order->first_name) }} {{ ucfirst($order->shipping_user_last_name ?? $order->last_name) }}

{{ $order->shipping_user_address ?? $order->user_address }}

{{ __('Phone') }}: {{ $order->shipping_user_phone ?? $order->user_phone }}

@if($type == 'service')
{{ __('vendor_details') }}

{{ $order->product->shop->shop_name ?? '-' }}

{{ $order->vendorInfo[0]->userDetail->user_city->name ?? '' }}, {{ $order->vendorInfo[0]->userDetail->user_state->name ?? '' }}, {{ $order->vendorInfo[0]->userDetail->user_country->name ?? '' }}

{{ __('phone') }}: {{ $order->vendorInfo[0]->phone_number ?? '-' }}

@else
{{ __('vendor_details') }}

{{ $order->bookingProducts[0]->product->shop->shop_name ?? '-' }}

{{ $order->bookingProducts[0]->vendorInfo[0]->userDetail->user_city->name ?? '' }}, {{ $order->bookingProducts[0]->vendorInfo[0]->userDetail->user_state->name ?? '' }}, {{ $order->bookingProducts[0]->vendorInfo[0]->userDetail->user_country->name ?? '' }}

{{ __('phone') }}: {{ $order->bookingProducts[0]->vendorInfo[0]->phone_number ?? '-' }}

@endif
{{ __('invoice_for') }} : {{ __('order_summary') }}
@if($type == 'service') @else @foreach($order->bookingProducts ?? [] as $key => $item) @endforeach @endif
# {{ __('item') }} {{ __('rate_item') }} {{ __('qty') }} {{ __('Total') }}
1

{{ $item['product_name'] ?? 'N/A' }}

{{ $currencySymbol }}{{ $item['price'] }} {{ $item['quantity'] ?? 1 }} {{ $currencySymbol }}{{ $item['price'] }}
{{ $key + 1 }}

{{ $item->product_name ?? 'N/A' }}

{{ $currencySymbol }}{{ $item->price }} {{ $item->quantity ?? 1 }} {{ $currencySymbol }}{{ $item->subtotal }}
{{ __('terms_and_conditions') }}

{{ __('terms_and_conditions_1') }}

{{ __('terms_and_conditions_2') }}

{{ __('notes') }}

{{ __('notes_content') }}

@if ($type == 'service')

{{ __('subtotal') }}

{{ $currencySymbol }}{{ $item['price'] ?? 0.00 }}

@if ($item['reschedule_amount'] > 0)

{{ __('reschedule_amount') }}

{{ $currencySymbol }}{{ $item['reschedule_amount'] ?? 0.00 }}

@endif

{{ __('Coupon') }}

- {{ $currencySymbol }}{{ $item['total_coupon_discount_amount'] ?? 0.00 }}

{{ __('Tax') }}

{{ $currencySymbol }}{{ $item['tax_amount'] ?? 0.00 }}

{{ __('Total') }}
{{ $currencySymbol }}{{ $item['total_amount'] ?? 0.00 }}
@else

{{ __('subtotal') }}

{{ $currencySymbol }}{{ $order->total_subtotal_amount ?? 0.00 }}

{{ __('Coupon') }}

{{ $currencySymbol }}{{ $order->total_coupon_discount_amount ?? 0.00 }}

{{ __('Tax') }}

{{ $currencySymbol }}{{ $order->total_tax_amount ?? 0.00 }}

{{ __('Total') }}
{{ $currencySymbol }}{{ $order->total_gross_amount ?? 0.00 }}
@endif

{{ __('thanks_message_invoice') }}

signature-img

{{ ucfirst(__('for')) }} {{ $companyName }}

@endsection @push('scripts') @endpush