@if(!empty($company_logo) && file_exists(public_path("/uploads/companyPic/".$company_logo)))
Logo
@endif
{{ $company_name }}
{{ $company_street }}
{{ $company_city }} {{ !empty($company_city) && !empty($company_state) ? "," : "" }} {{ $company_state }} {{ !empty($company_city) && !empty($company_zipCode) ? "-" : "" }} {{ $company_zipCode }}
{{ $company_country_name }}
-------------------------------------- {{ __('RETAIL INVOICE') }} --------------------------------------
{{ __('Cashier') }} : {{$saleInvoiceData->user->full_name}} {{ __('Customer') }} : {{! empty($saleInvoiceData->customer) ? $saleInvoiceData->customer->first_name." ".$saleInvoiceData->customer->last_name : __('Walking customer') }}
{{ __('Invoice') }} : {{ $saleInvoiceData->reference }} Date : {{ formatDate($saleInvoiceData->order_date) }}
@php $subtotal = 0; @endphp @foreach($saleInvoiceData->saleOrderDetails as $key => $order) @php $subtotal += $order->quantity * $order->unit_price; @endphp @endforeach @if($saleInvoiceData->shipping_charge > 0) @endif
{{ __('SL') }} {{ __('Item') }} {{ __('Quantity') }} {{ __('Price') }} {{ __('Total') }}
{{$key + 1}} {{ $order->item_name }} {{ formatCurrencyAmount($order->quantity) }} {{ formatCurrencyAmount($order->unit_price) }} {{ formatCurrencyAmount($order->quantity * $order->unit_price) }}
{{ __('Sub Total') }}: {{ formatCurrencyAmount($subtotal, $saleInvoiceData->currency->symbol) }}
(-) {{ __('Discount') }}: @php $discountAmount = $saleInvoiceData->saleOrderDetails->sum('discount_amount'); if($saleInvoiceData->other_discount_type == "%") { $discountAmount += ($subtotal * $saleInvoiceData->other_discount_amount / 100); } else { $discountAmount += $saleInvoiceData->other_discount_amount; } @endphp {{ formatCurrencyAmount($discountAmount, $saleInvoiceData->currency->symbol) }}
{{ $saleInvoiceData->tax_type == 'inclusive' ? __('Included') : '(+) ' }} {{ __('Tax') }}: {{ formatCurrencyAmount($totalTaxAmount, $saleInvoiceData->currency->symbol) }}
(+) {{ __('Shipping') }}: {{ formatCurrencyAmount($saleInvoiceData->shipping_charge, $saleInvoiceData->currency->symbol) }}
{{ __('Net payable') }} : {{ formatCurrencyAmount($saleInvoiceData->total, $saleInvoiceData->currency->symbol) }}
{{ __('Cash Paid') }} : {{ formatCurrencyAmount($saleInvoiceData->amount_received, $saleInvoiceData->currency->symbol) }}
{{ __('Change Amount') }} : {{ formatCurrencyAmount(abs($saleInvoiceData->amount_received - $saleInvoiceData->total), $saleInvoiceData->currency->symbol) }}
{{ __('Thank you') }}