@extends('admin.layout.master') @section('title','Balance Sheet STATEMENT') @section('custom_style') @endsection @section ('content')
@include('admin.layout.title_header', ['title'=>'BALANCE SHEET STATEMENT'])
@include('accounts.reports.search_form',['ledger'=>0])
@php // $printData['start_date']=Request()->start_date?date('d-M-Y',strtotime(Request()->start_date)):date('d-M-Y'); $printData['end_date']=Request()->date_to?date('d-M-Y',strtotime(Request()->date_to)):date('d-M-Y'); $routeName=Route::currentRouteName(); $printData=getPrintData($routeName,$printData); @endphp {!!$printData['head']!!} @php $total_assets=0; @endphp @forelse ($parentLedgerDataWithGroup[1] as $assetsGroup) @empty @endforelse @php $total_liabilities=0; @endphp @forelse ($parentLedgerDataWithGroup[2] as $liabilitiesGroup) @empty @endforelse
PARTICULARS NOTE
TAKA
TAKA
ASSETS:
{{$assetsGroup['name'].'--'.$assetsGroup['code']}}
@php $amount=0; foreach($assetsGroup['ledger_ids'] as $ledger){ $amount+=$e_balance[$ledger['ledger_id']]; $total_assets+=$e_balance[$ledger['ledger_id']]; } @endphp {{$amount>=0?number_format(($amount),2):'('.number_format(abs($amount),2).')'}}
TOTAL ASSETS
{{$total_assets>=0?number_format(($total_assets),2):'('.number_format(abs($total_assets),2).')'}}
EQUITY & LIABILITIES:
{{$liabilitiesGroup['name'].'--'.$liabilitiesGroup['code']}}
@php $amount=0; foreach($liabilitiesGroup['ledger_ids'] as $ledger){ $amount+=$e_balance[$ledger['ledger_id']]; $total_liabilities+=$e_balance[$ledger['ledger_id']]; } @endphp {{$amount<=0?number_format(abs($amount),2):'('.number_format(($amount),2).')'}}
TOTAL LIABILITIES
{{$total_liabilities<=0?number_format(abs($total_liabilities),2):'('.number_format($total_liabilities,2).')'}}
NET INCOME
{{$profit<0?'('.number_format(abs($profit),2).')':number_format($profit,2)}}
TOTAL EQUITY & LIABILITIES
@php $balance=(abs($total_liabilities)+$profit) @endphp {{$balance>=0?number_format(($balance),2):'('.number_format(abs($balance),2).')'}}
@endsection @section('script') @stop