@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.reports-bar')
{!! Form::open(array('route' => 'accounts.incomeexpense', '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($income))
@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('Income Expense Report')

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

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

@php $memsum = 0; @endphp
@php $totalIncome = 0;$totalExpense = 0; $totalincomepay = 0; @endphp @foreach($income as $key => $r) @php $totalIncome += $r->amount??0; @endphp @if($r->amount > 0) @endif @endforeach @foreach($incomepey as $myid=> $exdate ) @php if(count($incomepey) > $myid){ $totalincomepay += $expense[$myid]->incomeAmount??0; } @endphp @endforeach @php $expensedata = count($expense) - count($income) @endphp @php $expensedatas = count($expense) @endphp @for ($i = 1; $i < $expensedata; $i++) @endfor @php $incomesum = $incomepey->sum('incomeAmount') @endphp
Income
Head Amount (S$)
@if($r->amount > 0){{$r->name}}@endif @if($r->amount > 0){{number_format($r["amount"]??0,2)}}@endif
{{$incomepey[$myid]->name}} {{number_format($incomepey[$myid]->incomeAmount??0 ,2)}}
@foreach($expense as $myid=> $exdate ) @php if(count($expense) > $myid){ $totalExpense += $expense[$myid]->expensesAmount??0; } @endphp @endforeach
Expense
Head Amount (S$)
{{$expense[$myid]->name}} {{number_format($expense[$myid]->expensesAmount??0 ,2)}}
@lang('Total') S$ {{number_format($totalIncome + $memsum + $incomesum,2)}}
@lang('Total') S$ {{number_format($totalExpense,2)}}
@lang('Profit / Loss') @if(number_format($totalIncome+$memsum+$incomesum-$totalExpense ,2) == 0) {{number_format($totalIncome+$memsum+$incomesum-$totalExpense,2)}} @elseif(number_format($totalIncome+$memsum+$incomesum-$totalExpense,2) < 0)

S$ {{number_format($totalIncome+$memsum+$incomesum-$totalExpense,2)}}

@else

S${{number_format($totalIncome+$memsum+$incomesum-$totalExpense,2)}}

@endif

Account Opening Balance
@php $x = 0; $y = 0; @endphp @foreach($ledgers as $key => $value) @if(!empty($key)) @endif @foreach($value as $ledger) @php $ledger->payment->sum('waiver'); $creditT = $ledger->payment->sum('total') - $ledger->payment->sum('waiver'); $incomep = $ledger->income->sum('amount'); $debit = $ledger->expense->sum('amount'); $credit = $creditT+$incomep - $debit ; $cretre = 0; $devtre = 0; @endphp @endforeach @endforeach
Account Name Balance Date
{{$ledger->name}} @foreach($internalTransfersCr as $trdata) @php if ($ledger->id == $trdata->ledger_id_credit){ $cretre = $trdata->amountc; } @endphp @endforeach @foreach($internalTransfersDa as $trdatada) @php if ($ledger->id == $trdatada->ledger_id_david){ $devtre = $trdatada->amountd; } @endphp @endforeach {{number_format($ledger->current_balance-$credit-$memsum+$cretre-$devtre,2)}} {{date('d-M-Y',strtotime($ledger->created_at))}}
@php if (isset($ledger->current_balance)){ $y += $ledger->current_balance-$credit-$memsum+$cretre-$devtre; } @endphp
Opening Balance (Cash / Bank): {{number_format($y,2)}} {{date('d-M-Y',strtotime($ledger->created_at))}}

Account Current Balance
{{-- --}} {{-- --}} {{-- --}} @php $todaycrrentbl = 0; @endphp @foreach($allIncPayEx as $demo) @endforeach
Account NamePayment Income ExpenseBalance Date
{{$demo->name}} {{-- {{$demo->payment->sum('waiver')}}--}}
Warning: Undefined variable $demo in /home/ipsitaltd/public_html/public/latestblcf/resources/views/accounts/income-expense.blade.php on line 426

Warning: Attempt to read property "payment" on null in /home/ipsitaltd/public_html/public/latestblcf/resources/views/accounts/income-expense.blade.php on line 426

Warning: foreach() argument must be of type array|object, null given in /home/ipsitaltd/public_html/public/latestblcf/resources/views/accounts/income-expense.blade.php on line 426
0

Warning: Undefined variable $demo in /home/ipsitaltd/public_html/public/latestblcf/resources/views/accounts/income-expense.blade.php on line 436

Warning: Attempt to read property "payment" on null in /home/ipsitaltd/public_html/public/latestblcf/resources/views/accounts/income-expense.blade.php on line 436

Warning: foreach() argument must be of type array|object, null given in /home/ipsitaltd/public_html/public/latestblcf/resources/views/accounts/income-expense.blade.php on line 436
0

Warning: Undefined variable $demo in /home/ipsitaltd/public_html/public/latestblcf/resources/views/accounts/income-expense.blade.php on line 445

Warning: Attempt to read property "income" on null in /home/ipsitaltd/public_html/public/latestblcf/resources/views/accounts/income-expense.blade.php on line 445

Warning: foreach() argument must be of type array|object, null given in /home/ipsitaltd/public_html/public/latestblcf/resources/views/accounts/income-expense.blade.php on line 445
0

Warning: Undefined variable $demo in /home/ipsitaltd/public_html/public/latestblcf/resources/views/accounts/income-expense.blade.php on line 453

Warning: Attempt to read property "expense" on null in /home/ipsitaltd/public_html/public/latestblcf/resources/views/accounts/income-expense.blade.php on line 453

Warning: foreach() argument must be of type array|object, null given in /home/ipsitaltd/public_html/public/latestblcf/resources/views/accounts/income-expense.blade.php on line 453
0
@foreach($ledgers as $key => $value) @if(!empty($key)) @endif @foreach($value as $ledger) @php $ledger->payment->sum('waiver'); $creditT = $ledger->payment->sum('total') - $ledger->payment->sum('waiver'); $incomep = $ledger->income->sum('amount'); $debit = $ledger->expense->sum('amount'); $credit = $creditT+$incomep - $debit ; $cretredd=0; $devtredd =0; @endphp @if($demo->id == $ledger->id) @if($demo->id == 1) @endif @if($demo->id == 5) @endif {{number_format($serctotal = $allexin + $allin-$allex+$ledger->current_balance-$credit-$memsum-$cretredd+$devtredd - $ledger->payment->sum('waiver'),2)}} @endif @endforeach @endforeach @if($to) {{date('d-M-Y',strtotime($to))}} @endif
Current Balance (Cash / Bank): {{number_format($todaycrrentbl,2)}} @if($to) {{$to}} @endif

Balance Sheet as of @if($from == $to) {{$from}} @else {{$from}} @lang('to') {{$to}} @endif

Liabilities -
Opening Balance {{number_format( $y ,2)}}
Profit / Loss @if(number_format($totalIncome+$memsum+$incomesum-$totalExpense ,2) == 0) {{number_format($totalIncome+$memsum+$incomesum-$totalExpense,2)}} @elseif(number_format($totalIncome+$memsum+$incomesum-$totalExpense,2) < 0) {{number_format($totalIncome+$memsum+$incomesum-$totalExpense,2)}} @else {{number_format($totalIncome+$memsum+$incomesum-$totalExpense,2)}} @endif
@php $todaycrrentbl = 0; @endphp @foreach($allIncPayEx as $demo) @endforeach @foreach($payresives as $payresive) @endforeach
Assets -
{{$demo->name}}
Warning: Undefined variable $demo in /home/ipsitaltd/public_html/public/latestblcf/resources/views/accounts/income-expense.blade.php on line 589

Warning: Attempt to read property "payment" on null in /home/ipsitaltd/public_html/public/latestblcf/resources/views/accounts/income-expense.blade.php on line 589

Warning: foreach() argument must be of type array|object, null given in /home/ipsitaltd/public_html/public/latestblcf/resources/views/accounts/income-expense.blade.php on line 589
0

Warning: Undefined variable $demo in /home/ipsitaltd/public_html/public/latestblcf/resources/views/accounts/income-expense.blade.php on line 598

Warning: Attempt to read property "income" on null in /home/ipsitaltd/public_html/public/latestblcf/resources/views/accounts/income-expense.blade.php on line 598

Warning: foreach() argument must be of type array|object, null given in /home/ipsitaltd/public_html/public/latestblcf/resources/views/accounts/income-expense.blade.php on line 598
0

Warning: Undefined variable $demo in /home/ipsitaltd/public_html/public/latestblcf/resources/views/accounts/income-expense.blade.php on line 606

Warning: Attempt to read property "expense" on null in /home/ipsitaltd/public_html/public/latestblcf/resources/views/accounts/income-expense.blade.php on line 606

Warning: foreach() argument must be of type array|object, null given in /home/ipsitaltd/public_html/public/latestblcf/resources/views/accounts/income-expense.blade.php on line 606
0
@foreach($ledgers as $key => $value) @if(!empty($key)) @endif @foreach($value as $ledger) @php $ledger->payment->sum('waiver'); $creditT = $ledger->payment->sum('total') - $ledger->payment->sum('waiver'); $incomep = $ledger->income->sum('amount'); $debit = $ledger->expense->sum('amount'); $credit = $creditT+$incomep - $debit ; @endphp @if($demo->id == $ledger->id) {{number_format($serctotal = $allexin + $allin-$allex+$ledger->current_balance-$credit-$memsum- $ledger->payment->sum('waiver'),2)}} @endif @endforeach @endforeach @if($to) {{$to}} @endif
{{$payresive->name}} {{$payresive->amount}}
@lang('Total') S$ {{number_format($y + $totalIncome+$memsum+$incomesum-$totalExpense ,2)}}
@php $noteblance = $payresives->sum('amount'); @endphp
@lang('Total') S$ {{number_format($todaycrrentbl+$noteblance ,2)}}

{!! $setnotes->notes !!}

________________________________

{{$setnotes->treasurer}}
Treasurer

Auditor's Report

{!! $setnotes->auditors_report !!}

________________________________

{{$setnotes->auditor1st}}
Hon.Auditor

________________________________

{{$setnotes->auditor2st}}
Hon.Auditor

----------------------
@lang('Cashier')
----------------------
@lang('Authorised Signature')
{{--

Developed by: IPSITA COMPUTERS PTE LTD .

--}}
@endif
@endsection @push('script') @endpush