@extends('layouts.layout-horizontal') @section('title', 'Ledger - ' . $party->name) @section('content')
{{-- Print-only header --}}

{{ $party->name }}

All Companies Ledger Statement: {{ \Carbon\Carbon::parse($startDate)->format('d-M-Y') }} to {{ \Carbon\Carbon::parse($endDate)->format('d-M-Y') }} @if($party->mobile) | {{ $party->mobile }} @endif

{{-- Header / Filter Bar --}}
{{ $party->state ?? '' }} {{ $party->mobile ? '| ' . $party->mobile : '' }} @if($party->gst_number) | GSTIN: {{ $party->gst_number }} @endif
Receipt Payment PDF @if($party->mobile) @endif Back
{{-- Summary Cards (across all companies) --}}
Opening Balance

{{ indian_number(abs($summary['netOpening']), 2) }} {{ $summary['netOpening'] >= 0 ? 'Dr' : 'Cr' }}

Total Debit

{{ indian_number($summary['totalDr'], 2) }}

Total Credit

{{ indian_number($summary['totalCr'], 2) }}

Closing Balance (All Companies)

{{ indian_number(abs($summary['closingBalance']), 2) }} {{ $summary['closingBalance'] >= 0 ? 'Dr' : 'Cr' }}

{{-- Printable Ledger Area (one panel per company) --}} {{-- Print Footer --}}

Note: Dr = Receivable (Party owes you) | Cr = Payable (You owe party)

Generated on {{ now()->format('d-M-Y h:i A') }}

{{-- Legend (Screen Only) --}}
Legend: Sale Invoice Raised Receipt Payment Received Sale Return Goods Returned by Customer Purchase Bill Received Payment Payment Made Purchase Return Goods Returned to Supplier
{{-- Discount Voucher Modal --}} @endsection @push('scripts') @endpush