{{ $pPurchase->project->unique_reference_no }}-{{ str_pad($pPurchase->purchase_no, 3, '0', STR_PAD_LEFT) }} |
{{ $pcode }} |
{{ $description }} |
{{ date("d/m/Y", strtotime($pPurchase->delivery_date)) }} |
{{ $pPurchase->supplier->supplier_name }} |
@if($pPurchase->invoices->isNotEmpty())
@foreach($pPurchase->invoices as $invoice)
{{ $invoice->invoice_no }}
@endforeach
@endif
|
@if($pPurchase->invoices->isNotEmpty())
@foreach($pPurchase->invoices as $invoice)
{{ date("d-m-Y", strtotime($invoice->invoice_date)) }}
@endforeach
@endif
|
@if($pPurchase->invoices->isNotEmpty())
@foreach($pPurchase->invoices as $invoice)
£{{ number_format($invoice->invoice_amount, 2) }}
@php $total_inv = $total_inv + $invoice->invoice_amount; @endphp
@endforeach
@endif
|
£{{ number_format($total_p, 2) }}
|
@if ($trc == 1)
@php $total_estimate = $total_estimate + $estimate; @endphp
£{{ number_format($estimate, 2) }}
@else
-
@endif
|
@if ($trc == 1)
@php $p1 = $estimate - $total_pg; @endphp
@if ($p1 > 0)
@php $p = $p1; @endphp
@endif
@php $total_profit = $total_profit + $p; @endphp
@if ($p >= 0)
£ {{ number_format((float)$p, 2) }}
@endif
@else
-
@endif
|
@if ($trc == 1)
@php $l1 = $total_pg - $estimate; @endphp
@if ($l1 > 0)
@php $l = $l1; @endphp
@endif
@php $total_loss = $total_loss + $l; @endphp
@if ($l >= 0)
£ {{ number_format((float)$l, 2) }}
@endif
@else
-
@endif
|
|
@endforeach
@endif
@endforeach
Totals :
|
£{{ number_format($total_inv, 2) }}
|
£{{ number_format($total_hp, 2) }}
|
£{{ number_format($total_estimate, 2) }}
|
@if ($total_profit >= 0)
£{{ number_format((float)$total_profit, 2) }}
@endif
|
@if ($total_loss >= 0)
£{{ number_format((float)$total_loss, 2) }}
@endif
|
|
@endif