@extends('backend.invoice.master') @section('title') {{ $payment->row_id ==null ? 'Due Paid' : 'Product Purchase' }} @endsection @section('body')
@php($client = $payment->client)| Name: | {{ $client->name }} | Mobile: | {{ $client->mobile }} | Address: | {{ $client->address }} |
|---|---|---|---|---|---|
| Date: | {{ dateFormat($payment->created_at,'d-m-Y') }} | Time: | {{ dateFormat($payment->created_at,'h:m:i') }} | Chalan No: | {{ $payment->row_id != null ? $payment->purchase->invoice_no : '' }} |
| Sl | Product | Company | {{--Quantity | --}}Quantity | Rate(Taka) | Cost(Taka) | |||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ numberFormat($loop->iteration) }} | {{ $detail->product->name }} | {{ $detail->product->brand->name }} | {{--{{ numberFormat($detail->quantity*$factor) }} {{ $detail->secondaryUnit->code }} | --}}{{ numberFormat($detail->quantity,dp($detail->quantity)) }} {{ $detail->unit->code }} | {{ numberFormat($detail->rate,2) }} | {{ numberFormat($detail->rate*$detail->quantity,2) }} | |||||
| Total Cost: | --}}Total: | {{ numberFormat($payment->purchase->product_cost,2) }}/- | |||||||||
| Transport Cost: | --}} {{--{{ numberFormat($payment->purchase->transport_cost,2) }}/- | --}} {{--||||||||||
| Labour Cost: | --}} {{--{{ numberFormat($payment->purchase->labour_cost,2) }}/- | --}} {{--||||||||||
| Total: | --}} {{--{{ numberFormat($payment->purchase->total,2) }}/- | --}} {{--||||||||||
| Paid: | {{ numberFormat($payment->amount,2) }}/- | ||||||||||
| {{ $due<0? 'Receivable':'Payable' }}: | {{ numberFormat(abs($due),2) }}/- | ||||||||||
| Past {{ $oldBalance['title'] == 'Credit' ? 'Receivable' : 'Payable' }}: | @php($oldBal = $oldBalance['balance']){{ numberFormat($oldBal,2) }}/- | ||||||||||
| Present {{ $presentBalance['title'] == 'Credit' ? 'Receivable' : 'Payable' }}: | {{ numberFormat($presentBalance['balance'],2) }}/- | ||||||||||
| Transport Cost: | {{ numberFormat($payment->purchase->transport_cost,2) }}/- | ||||||||||
| Labour Cost: | {{ numberFormat($payment->purchase->labour_cost,2) }}/- | ||||||||||