@extends('layouts.app') @section('title', "Supplier Ledger: {$supplier->name}") @section('content')

Supplier Ledger

{{ $supplier->name }} {{ $supplier->company_name ? "({$supplier->company_name})" : '' }}

Export CSV Back
Total Purchase
৳{{ number_format((float) $supplier->total_purchase, 2) }}
Total Paid
৳{{ number_format((float) $supplier->total_paid, 2) }}
Total Due
৳{{ number_format((float) $supplier->total_due, 2) }}
@forelse($entries as $entry) @empty @endforelse
Date Type Description Debit (৳) Credit (৳) Balance (৳)
{{ $entry['date'] }} @if($entry['type'] === 'purchase') Purchase @elseif($entry['type'] === 'payment') Payment @else Reversal @endif {{ $entry['description'] }} {{ $entry['debit'] > 0 ? number_format($entry['debit'], 2) : '—' }} {{ $entry['credit'] > 0 ? number_format($entry['credit'], 2) : '—' }} {{ number_format($entry['balance'], 2) }}
No ledger entries found for this period.
@endsection