@extends('layouts.admin') @section('page-title') {{__('Balance Sheet')}} @endsection @section('breadcrumb') @endsection @push('script-page') @endpush @section('action-btn')
@endsection @section('content')
{{ Form::open(array('route' => array('report.balance.sheet'),'method' => 'GET','id'=>'report_bill_summary')) }}
{{ Form::label('start_date', __('Start Date'),['class'=>'form-label']) }} {{ Form::date('start_date',$filter['startDateRange'], array('class' => 'month-btn form-control')) }}
{{ Form::label('end_date', __('End Date'),['class'=>'form-label']) }} {{ Form::date('end_date',$filter['endDateRange'], array('class' => 'month-btn form-control')) }}
{{ Form::close() }}
{{__('Report')}} :
{{__('Balance Sheet')}}
{{__('Duration')}} :
{{$filter['startDateRange'].' to '.$filter['endDateRange']}}
@foreach($chartAccounts as $type => $accounts) @php $totalNetAmount=0; @endphp @foreach($accounts as $accountData) @foreach($accountData['account'] as $account) @php $totalNetAmount+=$account['netAmount']; @endphp @endforeach @endforeach
{{__('Total'.' '.$type)}}
@if($totalNetAmount<0) {{__('Dr').'. '.\Auth::user()->priceFormat(abs($totalNetAmount))}} @elseif($totalNetAmount>0) {{__('Cr').'. '.\Auth::user()->priceFormat($totalNetAmount)}} @else {{\Auth::user()->priceFormat(0)}} @endif
@endforeach
@foreach($chartAccounts as $type => $accounts)
{{$type}}
@foreach($accounts as $account)
@php $totalCredit=0;$totalDebit=0;@endphp @foreach($account['account'] as $record) @php $totalCredit+=$record['totalCredit']; $totalDebit+=$record['totalDebit']; @endphp @endforeach
{{$account['subType']}}
{{__('Account')}} {{__('Amount')}}
{{$record['account_name']}} @if($record['netAmount']<0) {{__('Dr').'. '.\Auth::user()->priceFormat(abs($record['netAmount']))}} @elseif($record['netAmount']>0) {{__('Cr').'. '.\Auth::user()->priceFormat($record['netAmount'])}} @else {{\Auth::user()->priceFormat(0)}} @endif
{{__('Total').' '.$account['subType']}} @php $total= $totalCredit-$totalDebit; @endphp @if($total<0) {{__('Dr').'. '.\Auth::user()->priceFormat(abs($total))}} @elseif($total>0) {{__('Cr').'. '.\Auth::user()->priceFormat($total)}} @else {{\Auth::user()->priceFormat(0)}} @endif
@endforeach
@endforeach
@endsection