@php $v = $selected; $s = $statement; @endphp
{{ $company->name ?? config('app.name') }}
@if($company)

@if($company->address){{ $company->address }}
@endif @if($company->city){{ $company->city }}, {{ $company->state }} {{ $company->pincode }}
@endif @if($company->phone){{ $company->phone }}
@endif @if($company->email){{ $company->email }}@endif

@endif

Statement of Accounts

From {{ $s['from']->format('d - M - Y') }} To {{ $s['to']->format('d - M - Y') }}

To

{{ $v->name }}
@foreach($v->billingAddressLines() as $line) {{ $line }}
@endforeach
@if($v->email)
{{ $v->email }}
@endif @if($v->phone)
{{ $v->phone }}
@endif @if($v->gstin)
GSTIN: {{ $v->gstin }}
@endif
Account summary
Carry Forward ₹{{ number_format($s['carry_forward'], 2) }}
Billed Amount ₹{{ number_format($s['billed_amount'], 2) }}
Amount paid ₹{{ number_format($s['amount_paid'], 2) }}
Balance due ₹{{ number_format($s['balance_due'], 2) }}
@foreach($s['rows'] as $row) @endforeach
Date Transaction Details Amount (₹) Payments (₹) Balance (₹)
{{ $row['date']->format('d - M - Y') }} {{ $row['transaction'] }} {{ $row['details'] ?: '—' }} {{ $row['amount'] > 0 ? number_format($row['amount'], 2) : '0.00' }} {{ $row['payment'] > 0 ? number_format($row['payment'], 2) : '0.00' }} {{ number_format($row['balance'], 2) }}
Balance due ₹{{ number_format($s['balance_due'], 2) }}

Statement of accounts — {{ config('app.name', 'Billing ERP') }}