@extends('layouts.app') @section('title', __('Income & Expense report')) @section('content')
@include('layouts.leftside-menubar')
@include('components.pages-bar',['pageTitle' =>''. trans('Manage Accounts').' / '.trans('Income Expense Reports').'']) @include('components.sectionbar.accounts-bar')
{!! Form::open(array('route' => 'accounts.trial_balance', 'method' => 'POST', 'role' =>'form','enctype'=>'multipart/form-data', 'class' => 'needs-validation')) !!}
{!! Form::text('from', $date ?? date('01-m-Y'), array('id' => 'date', 'class' => 'form-control datepicker','autocomplete' => 'off')) !!} @error('from') {{ trans($message) }} @enderror
{!! Form::text('to', $date ?? date('t-m-Y'), array('id' => 'date', 'class' => 'form-control datepicker','autocomplete' => 'off')) !!} @error('to') {{ trans($message) }} @enderror
@if (isset($income) && $income->count())
@lang('Print')
@endif
{!! Form::close() !!}
@if(isset($incomepey))
@php @endphp

বাংলাদেশ ল্যাংগুয়েজ এন্ড কালচারাল ফাউন্ডেশন

Bangladesh Language and Cultural Foundation

23 Chuan Terrace, Lorong Chuan, Singapore 558491 (UEN : T00SS0212J)

Tel: {{foqas_setting('phone')}} Email: {{foqas_setting('email')}} Website: www.blcf.sg

@lang('Trial Balance')

@lang('Financial Year') : {{active_financial_year()->name}}

{{--

@lang('Date'): @if($from == $to) {{$from}} @else {{$from}} @lang('to') {{$to}} @endif

--}}
@php $memsum = 0; @endphp
@foreach($incomes as $allincome) @endforeach @foreach($incomepey as $allinpay) @endforeach @foreach($expense as $allexpense) @endforeach @php $mainincome = $incomes->sum('amount') + $incomepey->sum('incomeAmount'); $mainexpance = $expense->sum('expensesAmount'); @endphp @php $myincom = 0; $mypayment =0; $myexpane = 0; $totalIncomeex = 0; @endphp @foreach($allIncPayEx as $alldataddd) @php $mypayment = $mypayment + $alldataddd->payment->sum('total') @endphp @php $myincom = $myincom + $alldataddd->income->sum('amount') @endphp @php $myexpane = $myexpane + $alldataddd->expense->sum('amount'); @endphp @endforeach

@php $finalincom = $myincom + $mypayment; $trbl =$finalincom - $myexpane; if ($trbl<0){ $mytrde = $trbl - $mainexpance; } if ($trbl>0){ $mytrblcr = $trbl + $mainincome; } @endphp Profit / Loss : {{number_format($trbl,2)}}

@if($trbl<0) @else @endif @if($trbl>0) @else @endif
@lang('Account Name') @lang('O/P Balance') @lang('Debit Total') @lang('Credit Total') @lang('C/L Balance')
{{$allincome->name}} {{number_format(0,2)}} {{number_format(0,2)}} {{number_format($allincome->amount,2)}} {{number_format($allincome->amount,2)}}
{{$allinpay->name}} {{number_format(0,2)}} {{number_format(0,2)}} {{$allinpay->incomeAmount}} {{number_format($allinpay->incomeAmount,2)}}
{{$allexpense->name}} {{number_format(0,2)}} {{number_format($allexpense->expensesAmount,2)}} {{number_format(0,2)}} {{number_format($allexpense->expensesAmount,2)}}
Total {{number_format($mainexpance + $trbl,2)}}{{number_format($mainexpance,2)}}{{number_format($mainincome-$trbl,2)}}{{number_format($mainincome,2)}}
@endif
@endsection @push('script') @endpush