@extends('layouts.app') @section('content')
{{-- Header --}}

Supplier Ledger

View supplier purchases, payments and outstanding balances

{{-- Summary --}}
Opening Balance

₹{{ number_format( $totalOpeningBalance, 2 ) }}

Purchases

₹{{ number_format( $totalPurchases, 2 ) }}

Payments

₹{{ number_format( $totalPaid, 2 ) }}

Outstanding

₹{{ number_format( $totalOutstanding, 2 ) }}

{{-- Filters --}}
Ledger Filters
{{-- Supplier Records --}}
Supplier Accounts
@forelse( $suppliers as $index => $supplier ) @empty @endforelse
# Supplier Opening Balance Purchases Paid Outstanding Action
{{ $index + 1 }} {{ $supplier->company_name }} @if($supplier->contact_person)
{{ $supplier->contact_person }} @endif @if($supplier->mobile)
{{ $supplier->mobile }} @endif
₹{{ number_format( $supplier->ledger_opening_balance, 2 ) }} ₹{{ number_format( $supplier->ledger_purchase_amount, 2 ) }} ₹{{ number_format( $supplier->ledger_paid_amount, 2 ) }} @if( $supplier->ledger_outstanding > 0 ) ₹{{ number_format( $supplier->ledger_outstanding, 2 ) }} @elseif( $supplier->ledger_outstanding < 0 ) ₹{{ number_format( abs( $supplier->ledger_outstanding ), 2 ) }} Advance @else ₹0.00 @endif View Ledger
No suppliers found.
@endsection