@php use App\Models\Setting; use App\Support\AddressFormatter; $company = [ 'name' => Setting::get('company_name', config('app.name')), 'address' => Setting::get('company_address', ''), 'pincode' => Setting::get('company_pincode', ''), 'gstin' => Setting::get('company_gstin', ''), ]; $companyAddress = AddressFormatter::flow($company['address']); if ($company['pincode']) { $companyAddress = trim($companyAddress.' - '.$company['pincode'], ' -'); } $partyAddress = AddressFormatter::flow($party->address); $isCustomer = $partyType === 'Customer'; @endphp Statement of Account — {{ $party->name }} @unless ($forPdf)
From To
← Back Download PDF
@endunless

Statement of Account

{{ $company['name'] }}
@if ($companyAddress)
{{ $companyAddress }}
@endif @if ($company['gstin'])
GSTIN/UIN: {{ $company['gstin'] }}
@endif
{{ $isCustomer ? 'Customer' : 'Supplier' }}
{{ $party->name }}
@if ($party->contact_person){{ $party->contact_person }}
@endif @if ($partyAddress){{ $partyAddress }}
@endif {{ collect([$party->city, $party->state, $party->pincode])->filter()->implode(', ') }}
@if ($party->gstin)GSTIN/UIN: {{ $party->gstin }}@endif
Statement Details
Period: {{ $from ? \Illuminate\Support\Carbon::parse($from)->format('d-M-Y') : 'Beginning' }} to {{ $to ? \Illuminate\Support\Carbon::parse($to)->format('d-M-Y') : 'Today' }}
Generated: {{ now()->format('d-M-Y') }}
@if ($isCustomer) Nature: Debtor account (amount receivable) @else Nature: Creditor account (amount payable) @endif
@forelse ($entries as $entry) @empty @endforelse
Date Particulars Debit Credit Balance
Opening Balance {{ number_format(abs($opening), 2) }} {{ $opening == 0 ? '' : ($opening > 0 ? 'Dr' : 'Cr') }}
{{ $entry['date']->format('d-M-Y') }} {{ $entry['particulars'] }} {{ $entry['debit'] > 0 ? number_format($entry['debit'], 2) : '' }} {{ $entry['credit'] > 0 ? number_format($entry['credit'], 2) : '' }} {{ number_format(abs($entry['balance']), 2) }} {{ $entry['balance'] == 0 ? '' : ($entry['balance'] > 0 ? 'Dr' : 'Cr') }}
No transactions in this period.
Closing Balance {{ number_format(abs($closing), 2) }} {{ $closing == 0 ? '' : ($closing > 0 ? 'Dr' : 'Cr') }}

Dr = {{ $isCustomer ? 'owed to us by' : 'owed by us to' }} {{ $party->name }}. Cr = {{ $isCustomer ? 'credit balance in favour of' : 'settled in favour of' }} {{ $party->name }}. This is a system-generated statement.