@extends('admin.layout.master') @section('title','Ledger Report') @section('custom_style') @endsection @section ('content') @section ('content')
| {{__('obs.date')}} | {{__('obs.voucher_no')}} | {{__('obs.particulars')}} | {{__('obs.reff')}} | {{__('obs.note')}} | {{__('obs.dr')}} | {{__('obs.cr')}} | {{__('obs.balance')}} | ||
|---|---|---|---|---|---|---|---|---|---|
| {{ date('d-m-Y',strtotime(Request()->start_date)) }} | {{'--'}} | {{'Beginning Balance'}} | @if($b_balance>=0) {{number_format($b_balance,2)}} @php $d_amount+=$b_balance; $amount+=$b_balance; @endphp @endif | @if($b_balance<0) @php $minusTrimedBalance=abs($b_balance); $c_amount+=$minusTrimedBalance; $amount-=$minusTrimedBalance; @endphp {{number_format($minusTrimedBalance,2)}} @endif | @if($r_type==1){{ $amount>=0?number_format($amount,2).'(dr)':(number_format(abs($amount),2)).' (cr)'}} | @else{{ $amount>=0?number_format($amount,2):'('.(number_format(abs($amount),2)).')'}} | @endif|||
| {{date('d-m-Y',strtotime($jr->date))}} | {{$jr->voucher->voucher_no}} | {!!$str!!} | @if($reff) @if(!$reff->ref_type) @endif {{$reff->invoice_no}} @endif | @if($jr->voucher->bill_date){{$jr->voucher->bill_date?'Bill Date : '.date('d-m-Y',strtotime($jr->voucher->bill_date)).'Bill No : '.$jr->voucher->bill_no:''}} @endif{{$jr->note??$jr->voucher->note}} |
@if($jr->type==0) {{number_format($jr->amount,2)}} @php $d_amount+=$jr->amount; $amount+=$jr->amount; @endphp @endif | @if($jr->type==1) {{number_format($jr->amount,2)}} @php $c_amount+=$jr->amount; $amount-=$jr->amount; @endphp @endif | @if($r_type==1){{ $amount>=0?number_format($amount,2).'(dr)':(number_format(abs($amount),2)).' (cr)'}} | @else{{ $amount>=0?number_format($amount,2):'('.(number_format(abs($amount),2)).')'}} | @endif|
| {{'TOTAL '}} | {{number_format($d_amount,2)}} | {{number_format($c_amount,2)}} | @if($r_type==1){{ $amount=0 ? '': ($amount > 0?number_format($amount,2).'(dr)':(number_format(abs($amount),2)).' (cr)')}} | @else{{ $amount>=0?number_format($amount,2):'('.(number_format(abs($amount),2)).')'}} | @endif {{--{{ $amount>=0?number_format($amount,2):'('.(number_format(abs($amount),2)).')'}} | --}}||||