Legder Account
of
{{date("d-m-Y", strtotime($billCredits[0]->show_financial_year->start_date)) . ' - ' . date("d-m-Y", strtotime($billCredits[0]->show_financial_year->end_date))}}
Date | Particulars | Debit | Credit | ||||||
---|---|---|---|---|---|---|---|---|---|
{{ __('01-04-' . $userDetails->created_at->format('Y')) }} | {{__('To Opening Balance')}} | {{ __('Rs. ') . number_format((float)$userDetails->opening_balance , 2, '.', '') }} | {{ __('-') }} | ||||||
{{ $data->created_at->format('d-m-Y')}} | @if($data->type == 'credit')
{{__('By ') . $data->modes->name}} : {{$data->narration ? $data->narration : '-'}} |
{{__('-')}} | {{ __('Rs. ') . number_format((float)$data->amount , 2, '.', '') }} | @elseif($data->type == 'debit')
{{__('By ') . $data->modes->name}} : {{$data->narration ? $data->narration : '-'}} |
{{ __('Rs. ') . number_format((float)$data->amount , 2, '.', '') }} | {{__('-')}} | @else
{{ __('BY BILL NO. ' . str_pad($data->id, 3, '0', STR_PAD_LEFT) . ' ' . strtoupper(str_replace('_','-',$data->issueNumber->name)) . ' ' . $data->issueNumber->year) }} |
{{ __('Rs. ') . number_format((float)$data->gtotal , 2, '.', '') }} | {{__('-')}} | @endif
Total Cr. | {{ __('Rs. ') . number_format((float)$paymentsTotal , 2, '.', '') }} | ||||||||
Total Dr. | {{ __('Rs. ') . number_format((float)$userDetails->opening_balance + $paymentsDebitTotal + $totalSum, 2, '.', '') }} | ||||||||
@php $calValue = ($userDetails->opening_balance + $paymentsDebitTotal + $totalSum) - $paymentsTotal @endphp | Balance {{ $calValue <= 0 ? 'Cr.' : 'Dr.'}} | {{ __('Rs. ') . number_format((float)$calValue , 2, '.', '') }} |