@extends('master.app') @section('title', 'Customer Balance Sheet') @section('pageCSS') {{-- Bootstrap Icons --}} @endsection @section('body')
{{-- HERO HEADER --}}

Customer Balance Sheet

Opening + Period Movements = Closing
Reset
{{-- FILTERS --}}
{{-- KPI --}}
Opening
{{ number_format($kpi->opening, 2) }}
Sale
{{ number_format($kpi->sale, 2) }}
Received
{{ number_format($kpi->received, 2) }}
Return
{{ number_format($kpi->returned, 2) }}
Advance
{{ number_format($kpi->advance, 2) }}
Closing
{{ number_format($kpi->closing, 2) }}
{{-- SUMMARY STRIP --}}
Filters: Customer: {{ request('customer_id','all') }}, Currency: {{ request('currency_id','all') }}, From: {{ request('from_date','-') }}, To: {{ request('to_date','-') }}
Tip: Print will keep header colors.
{{-- TABLE --}}
@forelse($rows as $i => $r) @php $closingClass = $r->closing > 0 ? 'money-pos' : ($r->closing < 0 ? 'money-neg' : 'money-neutral'); @endphp @empty @endforelse
# Customer CUR Opening Sale Received Return Advance Closing
{{ $i + 1 }} {{ $customerNames[$r->customer_id] ?? 'Unknown' }} {{ $currencyNames[$r->currency_id] ?? '-' }} {{ number_format($r->opening, 2) }} {{ number_format($r->sale, 2) }} {{ number_format($r->received, 2) }} {{ number_format($r->returned, 2) }} {{ number_format($r->advance, 2) }} {{ number_format($r->closing, 2) }}
No data found
@endsection