@extends('layouts.app') @section('title', $client->full_name) @section('page_title', 'Customer Ledger Statement') @section('content') @if($errors->any())
    @foreach($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
Customer Details
{{ $client->client_code }} {{ ucfirst($client->status) }}
Full Name {{ $client->full_name }}
Phone Number {{ $client->phone }}
@if($client->email)
Email {{ $client->email }}
@endif @if($client->business_name)
Business Name {{ $client->business_name }}
@endif @if($client->tin)
TIN Number {{ $client->tin }}
@endif
Credit Limit {{ number_format($client->credit_limit) }} UGX
Outstanding Balance {{ number_format($client->outstanding_balance) }} UGX
@if($client->outstanding_balance > 0) @endif Back to CRM
@forelse($ledgerEntries as $entry) @empty @endforelse
Date Reference Description Debit (+) Credit (-) Balance
{{ $entry->created_at->format('M d, Y H:i') }} {{ $entry->reference }} {{ $entry->description }} {{ $entry->debit > 0 ? number_format($entry->debit) : '-' }} {{ $entry->credit > 0 ? number_format($entry->credit) : '-' }} {{ number_format($entry->balance) }} UGX
No ledger activities registered yet.
@forelse($client->invoices as $inv) @empty @endforelse
Invoice # Date Total Paid Balance Due Status Actions
{{ $inv->invoice_number }}
{{ $inv->invoice_date->format('M d, Y') }} {{ number_format($inv->total_amount) }} UGX {{ number_format($inv->amount_paid) }} UGX {{ number_format($inv->balance_due) }} UGX {{ ucfirst($inv->status) }} View
No invoices generated yet.
@if($client->outstanding_balance > 0) @endif @endsection @section('scripts') @endsection