@extends('layouts.app') @section('content')

Ledger

Sort by Date:
@csrf
@error('from')

{{ $message }}

@enderror
@error('to')

{{ $message }}

@enderror
@if(session('message'))

{{ session('message') }}

@endif
@if ($search != null)

Closing Balances

Debit Credit Total
{{ $closing->debit }} {{ $closing->credit }} {{ $closing->total }}
{{--

Aging Balances

Current 30 Days 60 Days 90 Days Over 120 Days Total
{{ $aging->current }} {{ $aging->30_day }} {{ $aging->60_day }} {{ $aging->90_day }} {{ $aging->over_120_days }} {{ $aging->total }}
--}}
@foreach ($search as $key => $row) @endforeach
Posting Date Doc No Reference Plant Currency Type Amount Balance
{{ $row->postng_date }} {{ $row->doc_no }} {{ $row->reference }} {{ $row->plant }} {{ $row->currency }} {{ $row->type }} {{ $row->amount }} {{ $row->balance }}
@endif
@endsection