@extends('layouts.master') @section('title') {{trans_choice('general.ledger',1)}} {{trans_choice('general.report',1)}} @endsection @section('content')

{{trans_choice('general.ledger',1)}} {{trans_choice('general.report',1)}} @if(!empty($start_date)) for period: {{$start_date}} to {{$end_date}} @endif

{{csrf_field()}}
@if(!empty($start_date))
@foreach($data as $key) @endforeach
{{trans_choice('general.ledger',1)}} {{trans_choice('general.report',1)}}
{{trans_choice('general.office',1)}} : @if($office_id!=0) {{\App\Models\Office::find($office_id)->name}} @endif {{trans_choice('general.from',1)}} {{$start_date}} {{trans_choice('general.to',1)}} {{$end_date}}
{{trans_choice('general.gl_code',1)}} {{trans_choice('general.account',1)}} {{trans_choice('general.debit',1)}} {{trans_choice('general.credit',1)}} {{trans_choice('general.balance',1)}}
{{ $key->gl_code }} {{$key->name}} {{ number_format($dr,2) }} {{ number_format($cr,2) }} {{ number_format($balance,2) }}
{{trans_choice('general.total',1)}} {{number_format($total_dr,2)}} {{number_format($total_cr,2)}} {{number_format($total_balance,2)}}
@endif @endsection @section('footer-scripts') @endsection