@extends('layouts.master') @section('title', 'Ledger Journal') @section('page-header') Ledger Journal @stop @push('style') @endpush @section('content')
@include('partials._alert_message')

Account Ledger

@if(optional($transactions->first())->account)

{{ optional(optional($transactions->first())->account)->name }}

@endif
Date From {{ fdate(request('from'),'d/m/Y') }} To {{ fdate(request('to'),'d/m/Y') }}
@if($transactions->count() < 1) @endif @foreach($transactions as $transaction) @endforeach
Sl Date Transaction No Description Dr. Cr.
NO RECORDS FOUND!
{{ $loop->iteration }} {{ $transaction->date }} {{ $transaction->invoice_no }} {{ $transaction->getDescription() }} {{ number_format($transaction->amount < 0 ? abs($transaction->amount) : 0, 2) }} {{ number_format($transaction->amount >= 0 ? $transaction->amount : 0, 2) }}
Total: {{ number_format(abs($totalDebit), 2) }} {{ number_format($totalCredit, 2) }}
@endsection