| {{ numberFormat($sl) }} |
{{ dateFormat($payment->created_at,'d/m/Y') }} |
@if($payment->row_id!=null)
{{ $payment->sale->sale_type =='Credit'? 'Credit Sale' : 'Cash Sale' }}
@else
{{ 'Received' }}
@endif
|
@if($payment->row_id!=null)
{{ $payment->sale->client_id==null? $payment->sale->client_name : $payment->client->name }} |
{{-- {{ $payment->sale->client_id==null? $payment->sale->client_mobile : $payment->client->mobile }} | --}}
@php($j=0)
@php($costPrice=0) @php($salePrice=0)
@foreach($payment->sale->details as $detail)
@php($costPrice += $detail->quantity*$detail->cost_rate)
@php($salePrice += $detail->quantity*$detail->rate)
@php($j++)
{{ $detail->product->name }} ({{ numberFormat($detail->quantity,3) }} {{ $detail->product->unit->code }})-(S.R-Tk.{{ numberFormat($detail->rate) }} : C.R-Tk.{{ numberFormat($detail->cost_rate) }})
{!! ($jsale->details) and $j>=1)? ' ':'' !!}
@endforeach
|
{{ numberFormat($payment->sale->product_cost,2) }} |
{{-- {{ numberFormat($payment->sale->vat,2) }} | --}}
{{ numberFormat($payment->sale->discount,2) }} |
@php($cost= $payment->sale->product_cost-$payment->sale->discount)
@php($profit=($payment->sale->product_cost - $costPrice))
{{ numberFormat($profit,2) }} |
@php($totalBill += $payment->sale->product_cost)
@php($totalProfit += $profit)
@php($totalDiscount += $payment->sale->discount)
@else
{{ $payment->client_id!=null? $payment->client->name : '' }} |
{{-- {{ $payment->client_id!=null? $payment->client->mobile : '' }} | --}}
{{-- | --}}
|
|
@endif
{{ numberFormat($payment->amount,2) }} |
@php($totalReceived += $payment->amount)
{{-- --}}
@if(role()->code=='developer')
@endif
|
@endforeach