@php $base64Image = base64_encode(file_get_contents(public_path('assets/images/tyres_logo.png'))); @endphp Logo

Sales@tyresplanet.com.au

www.tyresplanet.com.au

ABN. 95 633 998 624

TAX INVOICE

Tyres Planet PTY LTD

209 Mcroyle St, Wacol 4076

CALL: 07 3144 3131

Cutomer Details
Statement details
Invoice
Name: {{ $user->name ?? $user->first_name . ' ' . $user->last_name }}
Email: {{ $user->email }}
Phone: {{ $user->phone ?? 'N/A' }}
Address: {{ $user->address ?? '-' }}
Total Outstanding:
${{ number_format($totalInvoiced - $totalPaid, 2) }}
Statement Date: {{ now()->format('d/m/Y') }}
Account Status: {{ ($totalInvoiced - $totalPaid) > 0 ? 'Outstanding' : 'Current' }}

Statement Period: {{ now()->format('M Y') }}

Reference Date: {{ $generated_date ?? now()->format('d-m-Y') }}

Account: {{ strtoupper(substr($user->name ?? 'CUSTOMER', 0, 8)) }}

@php $rowCount= 0; @endphp @if(count($statementData) > 0) @foreach($statementData as $index => $item) @php $rowCount= 0; @endphp @endforeach @else @endif @php $emptyRows = 8 - $rowCount; @endphp @for ($i = 0; $i < $emptyRows; $i++) @endfor
Date Document Applied To Description Due Date Amount Outstanding
{{ $item['date']->format('d/m/Y') }} {{ $item['document'] }} {{ $item['applied_to'] }} {{ $item['description'] }} {{ $item['due_date']->format('d/m/Y') }} @if($item['amount'] < 0) -${{ number_format(abs($item['amount']), 2) }} @else ${{ number_format($item['amount'], 2) }} @endif @if($item['type'] == 'payment') $0.00 @else ${{ number_format($item['outstanding'], 2) }} @endif
No transactions found for this customer.
             
@php $current = 0; $over30 = 0; $over60 = 0; $over90 = 0; $today = now(); foreach($statementData as $item) { if($item['balance'] > 0) { $daysDiff = $today->diffInDays($item['due_date']); if($daysDiff <= 30) { $current += $item['balance']; } elseif($daysDiff <= 60) { $over30 += $item['balance']; } elseif($daysDiff <= 90) { $over60 += $item['balance']; } else { $over90 += $item['balance']; } } } @endphp
{{-- --}}
Thank You For Your Business

Tyres Planet PTY LTD
209 Mcroyle St, Wacol 4076
Phone: 07 3144 3131
Email: cst@tyresplanet.com.au
Return Policy
• Free return within 48 hours. Return within 7 days will incur a 10% restocking fee. No Return accepted after 7 days.
Our Business Terms & Conditions Available on Our Website