@php $logoSrc = ''; $configuredLogoPath = !empty($siteSettings?->site_logo) ? public_path(ltrim($siteSettings->site_logo, '/')) : null; $logoCandidates = array_filter([ public_path('images/logo-green.png'), public_path('images/logo.png'), $configuredLogoPath && preg_match('/\.png$/i', $configuredLogoPath) ? $configuredLogoPath : null, $configuredLogoPath, public_path('images/logo.svg'), ]); foreach ($logoCandidates as $logoPath) { if (file_exists($logoPath)) { $logoSrc = $logoPath; break; } } $memberName = trim((string) ($member->name ?? '')); if ($memberName === '') { $memberName = trim(collect([ $member->first_name ?? null, $member->middle_name ?? null, $member->last_name ?? null, ])->filter()->implode(' ')); } $memberName = $memberName !== '' ? $memberName : 'NA'; @endphp

Tollygunge Club Ltd

@if(!empty($contactInfo?->address))

{{ strip_tags($contactInfo->address) }}

@endif @if(!empty($contactInfo?->email))

Email: {{ $contactInfo->email }}

@endif @if(!empty($contactInfo?->phone) || !empty($contactInfo?->telefax))

@if(!empty($contactInfo?->phone)) Tel: {{ $contactInfo->phone }} @endif @if(!empty($contactInfo?->phone) && !empty($contactInfo?->telefax)) | @endif @if(!empty($contactInfo?->telefax)) Telefax: {{ $contactInfo->telefax }} @endif

@endif
Account Statement
Membership No. {{ $memberId }} From Date {{ \Carbon\Carbon::parse($fromDate)->format('d-m-Y') }} To Date {{ \Carbon\Carbon::parse($toDate)->format('d-m-Y') }}
Member Name {{ $memberName }} Generated At {{ $generatedAt->format('d-m-Y h:i A') }}
@forelse($transactions as $transaction) @php $debitRaw = (string) ($transaction['dblDrAmt'] ?? ''); $creditRaw = (string) ($transaction['dblCrAmt'] ?? ''); $closingRaw = (string) ($transaction['dblClosingBal'] ?? ''); $particulars = \Illuminate\Support\Str::squish((string) ($transaction['strParticulars'] ?? '')); $debitAmount = preg_replace('/[^0-9.\-]/', '', $debitRaw); $creditAmount = preg_replace('/[^0-9.\-]/', '', $creditRaw); $closingAmount = preg_replace('/[^0-9.\-]/', '', $closingRaw); $statementMonth = !empty($transaction['TransDate']) ? \Carbon\Carbon::parse($transaction['TransDate'])->format('m') : null; $statementYear = !empty($transaction['TransDate']) ? \Carbon\Carbon::parse($transaction['TransDate'])->format('Y') : null; $statementLabel = $particulars === 'Invoice Generation JV' && $statementMonth && $statementYear ? 'Invoice / Statement ' . \Carbon\Carbon::createFromDate((int) $statementYear, (int) $statementMonth, 1)->format('m-Y') : ($transaction['strParticulars'] ?? 'NA'); @endphp @empty @endforelse
SL No. Transaction Date Transaction No. Particulars Debit (Rs.) Credit (Rs.) Closing Balance (Rs.)
{{ $loop->iteration }} {{ !empty($transaction['TransDate']) ? \Carbon\Carbon::parse($transaction['TransDate'])->format('d-m-Y') : 'NA' }} {{ $transaction['strTransNo'] ?? 'NA' }} {{ $statementLabel }} {{ $debitAmount !== '' && is_numeric($debitAmount) ? number_format((float) $debitAmount, 2) : '0.00' }} {{ $creditAmount !== '' && is_numeric($creditAmount) ? number_format((float) $creditAmount, 2) : '0.00' }} {{ $closingAmount !== '' && is_numeric($closingAmount) ? number_format((float) $closingAmount, 2) : '0.00' }}
No statement data found for the selected period.