@section('title', 'Sale Invoice')

Invoice/Bill No # {{ $SaleInvoice->code }}
Date: {{ $SaleInvoice->sale_date }}

logo

Billed To:
{{ $SaleInvoice->Contact->business_name }}
{{ $SaleInvoice->Contact->address }}
{{ $SaleInvoice->Contact->mobile }}
Shipped From:
@if($companyInfo) {{$companyInfo->name}}
{{$companyInfo->address}}
{{$companyInfo->mobile}}
@endif

Sale summary

@php $i = 0; $subTotal = 0; @endphp @foreach ($SaleInvoice->SaleInvoiceDetail as $saleInvoiceDetail) @php $subTotal += $saleInvoiceDetail->unit_price * $saleInvoiceDetail->quantity; @endphp @endforeach {{-- --}} {{-- --}}
SL. Vendor Image Product Quantity MRP Total
{{ ++$i }}
{{ $saleInvoiceDetail->Product->Vendor->business_name }} Product->ProductImageFirst) src="{{ asset('storage/photo/' . $saleInvoiceDetail->Product->ProductImageFirst->image) }}" @endif style="height:80px; weight:80px;" alt="Image2" class="img-circle img-fluid"> {{ $saleInvoiceDetail->Product->name }} {{ $saleInvoiceDetail->quantity }} {{ $saleInvoiceDetail->unit_price }} {{ $saleInvoiceDetail->unit_price * $saleInvoiceDetail->quantity }}
Sub Total @if ($currencySymbol) {{ $currencySymbol->symbol }} @endif {{ $subTotal }}
{{-- Start Payment Method --}}
@foreach ($SaleInvoice->SalePayment as $SalePayment) @endforeach
Method Date Amount
{{ $SalePayment->PaymentMethod->name }} {{ $SalePayment->date }} @if ($currencySymbol) {{ $currencySymbol->symbol }} @endif {{ $SalePayment->total_amount }}
{{-- End Payment Method --}}
Discount @if ($currencySymbol) {{ $currencySymbol->symbol }} @endif @if ($SaleInvoice->discount) {{ $SaleInvoice->discount }} @else 0 @endif
Shipping @if ($currencySymbol) {{ $currencySymbol->symbol }} @endif @if ($SaleInvoice->shipping_charge) {{ $SaleInvoice->shipping_charge }} @else 0 @endif
Total

@if ($currencySymbol) {{ $currencySymbol->symbol }} @endif {{ $subTotal + $SaleInvoice->shipping_charge - $SaleInvoice->discount }}

Paid

@if ($currencySymbol) {{ $currencySymbol->symbol }} @endif {{ $SaleInvoice->SalePayment->sum('total_amount') }}

Due

@if ($currencySymbol) {{ $currencySymbol->symbol }} @endif {{ $SaleInvoice->payable_amount - $SaleInvoice->SalePayment->sum('total_amount') }}

@if ($InvoiceSetting) {!! $InvoiceSetting->invoice_footer !!} @endif