@php $language = App\Models\User\Language::where([ ['user_id', $user->id], ['code', session()->get('user_lang_' . $user->username)], ])->first(); if (empty($language)) { $language = App\Models\User\Language::where([['user_id', $user->id], ['is_default', 1]])->first(); } @endphp {{ __('Invoice') }} @php $font_family = 'DejaVu Sans, sans-serif'; $primary_color = '#' . str_replace('#', '', $userBs->base_color); if (!is_null(getUserNullCheck())) { $keywords = App\Http\Helpers\Common::get_keywords($user->id); } if (isset($keywords['Tax']) && strtolower(trim($keywords['Tax'])) === 'tax') { $keywords['Tax'] = 'GST Tax'; } $gstTaxLabel = !empty($keywords['GST Tax']) ? $keywords['GST Tax'] : (!empty($keywords['Tax']) ? $keywords['Tax'] : 'GST Tax'); @endphp
@if ($userBs->logo) @else @endif
{{ $keywords['INVOICE'] ?? __('INVOICE') }}
{{ $keywords['Payment Method'] ?? __('Payment Method') }}: {{ $keywords[$order->method] ?? $order->method }} {{ $keywords['Invoice No'] ?? __('Invoice No') }}: #{{ $order->order_number }} {{ $keywords['Date'] ?? __('Date') }}: {{ \Carbon\Carbon::parse($order->created_at)->locale('en')->isoFormat('Do MMMM YYYY') }}
{{ $keywords['Bill to'] ?? __('Bill to') }}
{{ $keywords['Name'] ?? __('Name') }}: {{ ucfirst($order->billing_fname) }} {{ ucfirst($order->billing_lname) }}
{{ $keywords['Address'] ?? __('Address') }}: {{ $order->billing_address }}
{{ $keywords['City'] ?? __('City') }}: {{ $order->billing_city }}@if(!is_null($order->billing_state)), {{ $order->billing_state }}@endif
{{ $keywords['Country'] ?? __('Country') }}: {{ $order->billing_country }}
{{ $keywords['Email'] ?? __('Email') }}: {{ $order->billing_email }}
{{ $keywords['Order Details'] ?? __('Order Details') }}
@if (!is_null($order->discount))
{{ $keywords['Discount'] ?? __('Discount') }}: {{ currencyTextPrice($order->currency_id, $order->discount) }}
@endif @if ($order->tax > 0)
{{ $gstTaxLabel }}: {{ currencyTextPrice($order->currency_id, $order->tax) }}
@endif
{{ $keywords['Paid Amount'] ?? __('Paid Amount') }}: {{ currencyTextPrice($order->currency_id, $order->total) }}
{{ $keywords['Payment Status'] ?? __('Payment Status') }}: {{ $keywords[$order->payment_status] ?? $order->payment_status }}
{{ $keywords['Order Status'] ?? __('Order Status') }}: {{ $keywords[ucfirst($order->order_status)] ?? ucfirst($order->order_status) }}
@foreach ($order->orderitems as $item) @endforeach
{{ $keywords['Title'] ?? __('Title') }} {{ $keywords['Quantity'] ?? __('Quantity') }} {{ $keywords['Price'] ?? __('Price') }}
{{ $item->title }}
@php $variations = json_decode($item->variations); @endphp @if (!is_null($variations))
@foreach ($variations as $k => $vitm) @php $name = isset($vitm->name) ? $vitm->name : ''; $key = is_string($k) ? $k : ''; @endphp
{{ $name }} ({{ $key }}) : {{ currencyTextPrice($order->currency_id, round($vitm->price, 2)) }}
@endforeach
@endif
{{ $item->qty }} {{ currencyTextPrice($order->currency_id, round($item->price, 2)) }}
@if ($order->tax > 0) @endif
{{ $keywords['Subtotal'] ?? __('Subtotal') }} {{ currencyTextPrice($order->currency_id, $order->cart_total) }}
{{ $gstTaxLabel }} {{ currencyTextPrice($order->currency_id, $order->tax) }}
{{ $keywords['Shipping Charge'] ?? __('Shipping Charge') }} {{ currencyTextPrice($order->currency_id, $order->shipping_charge) }}
{{ $keywords['Paid Amount'] ?? __('Paid Amount') }} {{ currencyTextPrice($order->currency_id, $order->total) }}
{{ $keywords['Thanks & Regards'] ?? __('Thanks & Regards') }},
@php $website_title = $user->shop_name ?? $user->username; @endphp {{ $website_title }}