@extends('layouts.dashboard') @section('page_title', 'ACCOUNTING SUMMARY') @section('content') @php($isPreview = $isPreview ?? false)
Back
Accounting Summary {{ $isPreview ? 'Preview' : 'Preview' }}
@if ($isPreview) Download PDF @else Download PDF @endif

ACCOUNTING SUMMARY REPORT

@if ($summary)
ACCOUNTING SUMMARY ID - {{ $summary->reference_code }}
The following accounting information has been summarized
@else
PREVIEW (NOT YET EXPORTED)
Preview of invoices in the selected date range
@endif
From: {{ $rangeFrom ?? '—' }}  ›  To: {{ $rangeTo ?? '—' }}
@forelse ($groups as $group)
{{ $group['label'] }} - Customers Export Date: {{ $exportDate }}
@foreach ($group['rows'] as $row) @endforeach
Invoice # Load # Invoice Date Customer Total Rate HST Advance Balance $
{{ $row['invoice'] }} {{ $row['load'] }} {{ $row['invoice_date'] }} {{ $row['customer'] }} ${{ number_format($row['total_rate'], 2) }} ${{ number_format($row['hst'], 2) }} ${{ number_format($row['advance'], 2) }} ${{ number_format($row['balance'], 2) }} {{ $row['currency'] }}
TOTAL ${{ number_format($group['total'], 2) }} {{ $group['currency'] }}
@empty

No invoices in this summary.

@endforelse
@endsection