@extends('layouts.admin') @section('header-content') @endsection @section('content')
Filter {{--
--}} {{----}} {{----}} {{--
--}}

{{$customer}} Ledger

@if(!empty($ledgers[0]))
Opening Balance: {{$opening_balance}}
Balance: {{(-1)*$balance}}

@foreach($ledgers as $key=>$ledger) @if($key==10 && $all==false) @php break; @endphp @endif @endforeach
# Invoice # Date Sale (Dr) Receipts (Cr) Balance
@if($ledger['ledger_type']=="order") {{$ledger['id']}} @endif @if($ledger['ledger_type']=="payment") {{$ledger['id']}} @endif @if($ledger['ledger_type']=="order") {{$ledger['invoice_no']}} @endif {{$ledger['date']}} @if($ledger['ledger_type']=="order") {{$ledger['payment']}} @endif @if($ledger['ledger_type']=="payment") {{$ledger['amount']}} @endif {{ (-1) * (int)$ledger['balance']}}

@else

No Records Found

@endif
@endsection @section('footer-content') @endsection