{{ $item->id }} |
{{ $item->invoice_no }} |
|
{{ $item->provider->company_name ?? '' }} |
Service |
Quantity |
Rate |
Vat |
From |
To |
Line Total |
@foreach ($item->purchaseItem as $row)
{{ $row->service->name ?? '' }}
|
{{ $row->quantity ?? '' }}
|
{{ $row->rate ?? '' }}
|
{{ $row->vat ?? '' }}
|
{{ date('d-M-Y', strtotime($row->from_date)) }}
|
{{ date('d-M-Y', strtotime($row->to_date)) }}
|
{{ number_format($row->line_total, 2) }}
|
@endforeach
{{-- {{ $item->purchaseItem ?? '' }} --}}
|
{{ $item->billing_date }} |
{{ $item->total_price }} |
{{ $item->paid }} |
@php
$d_amount = $item->total_price - $item->paid;
@endphp
{{ number_format($d_amount, 2) }}
|
@php
$total += $item->total_price;
$paid += $item->paid;
$due += $item->total_price - $item->paid;
@endphp
|
@endforeach