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

Purchase # {{$PurchaseId}}
Date: {{$PurchaseInvoice->purchase_date}}

logo

Purchase summary

Billed To:
{{$PurchaseInvoice->Contact->business_name}}
{{$PurchaseInvoice->Contact->address}}
{{$PurchaseInvoice->Contact->phone}}
Supplier
{{$PurchaseInvoice->Contact->first_name}} {{$PurchaseInvoice->Contact->last_name}}
{{$PurchaseInvoice->Contact->address}}
{{$PurchaseInvoice->Contact->phone}}
@php $i=0; $subTotal=0; @endphp @foreach ($PurchaseInvoice->PurchaseInvoiceDetail as $purchaseInvoiceDetail) @php $subTotal += $purchaseInvoiceDetail->unit_price * $purchaseInvoiceDetail->quantity; @endphp @endforeach
SL. Image Product Quantity MRP Total
{{ ++$i }} Product->ProductImageFirst)) src="{{ asset('storage/photo/'.$purchaseInvoiceDetail->Product->ProductImageFirst->image)}}" @endif style="height:30px; weight:30px;" alt="Image2" class="img-circle img-fluid"> @if(isset($purchaseInvoiceDetail->Product)){{$purchaseInvoiceDetail->Product->name}}@endif @if(isset($purchaseInvoiceDetail)){{$purchaseInvoiceDetail->quantity}}@endif @if(isset($purchaseInvoiceDetail)){{$purchaseInvoiceDetail->unit_price}}@endif @if($purchaseInvoiceDetail){{$purchaseInvoiceDetail->unit_price * $purchaseInvoiceDetail->quantity}}@endif
Sub Total @if($currencySymbol) {{ $currencySymbol->symbol }} @endif {{$subTotal}}
{{-- Start Payment Method --}}
@foreach ($PurchaseInvoice->PurchasePayment as $PurchasePayment) @endforeach
Method Date Amount
{{$PurchasePayment->PaymentMethod->name}} {{$PurchasePayment->date}} @if($currencySymbol) {{ $currencySymbol->symbol }} @endif {{$PurchasePayment->total_amount}}
{{-- End Payment Method --}}
Discount @if($currencySymbol) {{ $currencySymbol->symbol }} @endif @if($PurchaseInvoice->discount) {{$PurchaseInvoice->discount}} @else 0 @endif
Shipping @if($currencySymbol) {{ $currencySymbol->symbol }} @endif @if($PurchaseInvoice->shipping_charge) {{$PurchaseInvoice->shipping_charge}} @else 0 @endif
Total

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

Paid

@if($currencySymbol) {{ $currencySymbol->symbol }} @endif {{ $PurchaseInvoice->PurchasePayment->sum('total_amount') }}

Due

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

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