Purchase # {{$PurchaseId}}
Date: {{$PurchaseInvoice->purchase_date}}
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}}
SL. |
Image |
Product |
Quantity |
MRP |
Total |
@php
$i=0;
$subTotal=0;
@endphp
@foreach ($PurchaseInvoice->PurchaseInvoiceDetail as $purchaseInvoiceDetail)
{{ ++$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 |
@php
$subTotal += $purchaseInvoiceDetail->unit_price * $purchaseInvoiceDetail->quantity;
@endphp
@endforeach
Sub Total |
@if($currencySymbol)
{{ $currencySymbol->symbol }}
@endif
{{$subTotal}}
|
{{-- Start Payment Method --}}
Method |
Date |
Amount |
@foreach ($PurchaseInvoice->PurchasePayment as $PurchasePayment)
{{$PurchasePayment->PaymentMethod->name}} |
{{$PurchasePayment->date}} |
@if($currencySymbol)
{{ $currencySymbol->symbol }}
@endif
{{$PurchasePayment->total_amount}}
|
@endforeach
{{-- 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