@extends('master.app') @section('title', 'Report') @section('pageCSS') @endsection @section('body')
@method('GET') @csrf
@if ($bdate == 1) @else
@endif
@if ($bdate == 1) @else
@endif
@if ($data != '')
@foreach ($currencies as $row) @endforeach @foreach ($currencies as $row) @endforeach @foreach ($currencies as $row) @endforeach @foreach ($currencies as $row) @endforeach @foreach ($currencies as $row) @endforeach @foreach ($currencies as $row) @endforeach @foreach ($currencies as $row) @endforeach @foreach ($currencies as $row) @endforeach @foreach ($currencies as $row) @endforeach {{-- --}} @foreach ($currencies as $row) @endforeach @foreach ($currencies as $row) @endforeach @foreach ($investors as $investor) @foreach ($currencies as $row) @endforeach @endforeach @foreach ($currencies as $row) @endforeach @foreach ($currencies as $row) @endforeach
Account Name VALUES
{{ $row->title_en }}
ASSETS/CURRENT (ACCOUNT RECIEVBLE) {{ $sale->where('currency_id', $row->id)->sum('final_amount') - $received->where('currency_id', $row->id)->sum('amount') }}
ASSETS/CURRENCT (EMPLOYEES ADVANCES) From {{ $fDate }} To {{ $tDate }} {{ $employee_advance->where('currency_id', $row->id)->whereBetween('date', [$fDate, $tDate])->sum('payment') }}
ASSETS/CURRENT (SARAFI/BANKS) {{ $bank->where('currency_id', $row->id)->sum('outgoing') - $bank->where('currency_id', $row->id)->sum('income') }}
ASSETS/CURRENT (CASH ON HAND) {{ $cash->where('currency_id', $row->id)->sum('income') - $cash->where('currency_id', $row->id)->sum('outgoing') }}
ASSETS/LONG-TERM (FIXED) {{ $assets->where('currency_id', $row->id)->sum('price') }}
Total Assets @php $t_ar = $sale->where('currency_id', $row->id)->sum('final_amount') - $received->where('currency_id', $row->id)->sum('amount'); $t_advance = $employee_advance ->where('currency_id', $row->id) ->sum('payment'); $t_bank = $bank->where('currency_id', $row->id)->sum('outgoing') - $bank->where('currency_id', $row->id)->sum('income'); $t_cash = $cash->where('currency_id', $row->id)->sum('income') - $cash->where('currency_id', $row->id)->sum('outgoing'); $t_assets = $assets->where('currency_id', $row->id)->sum('price'); @endphp {{ $t_ar + $t_advance + $t_bank + $t_cash + $t_assets }}
LIABILITIES/Account Paybles {{ $purchase->where('currency_id', $row->id)->sum('grand_total') - $payment->where('currency_id', $row->id)->sum('amount') }}
LIABILITIES/TAXES {{ $taxes->where('currency_id', $row->id)->sum('amount') }}
LIABILITIES/SALARIES From {{ $fDate }} To {{ $tDate }} {{ $employees->where('status', 1)->where('currency_id', $row->id)->sum('basic_salary') -($employee_overtimes->where('currency_id', $row->id)->whereBetween('date', [$fDate, $tDate])->sum('amount') +$employee_advance->where('currency_id', $row->id)->whereBetween('date', [$fDate, $tDate])->sum('payment')) }}
TOTAL/CURRENT LIABILITIES {{ $purchase->where('currency_id', $row->id)->sum('grand_total') -$payment->where('currency_id', $row->id)->sum('amount') +$taxes->where('currency_id', $row->id)->sum('amount') +$employees->where('status', 1)->where('currency_id', $row->id)->sum('basic_salary') -($employee_overtimes->where('currency_id', $row->id)->whereBetween('date', [$fDate, $tDate])->sum('amount') +$employee_advance->where('currency_id', $row->id)->whereBetween('date', [$fDate, $tDate])->sum('payment')) }}
INCOME STATEMENT LINK CLICK TO CHECK VALUES
OWNER'S EQUITY SHARE HOLDER {{ $investor->name }} {{ $investor_journal->where('currency_id', $row->id)->where('investor_id',$investor->id)->sum('income') - $investor_journal->where('currency_id', $row->id)->where('investor_id',$investor->id)->sum('outgoing') }}
TOTAL/OWNER'S EQUITY {{ $investor_journal->where('currency_id', $row->id)->sum('income') - $investor_journal->where('currency_id', $row->id)->sum('outgoing') }}
TOTAL/OWNER'S EQUITY & LIABILITIES {{ ($investor_journal->where('currency_id', $row->id)->sum('income') - $investor_journal->where('currency_id', $row->id)->sum('outgoing')) + $purchase->where('currency_id', $row->id)->sum('grand_total') -$payment->where('currency_id', $row->id)->sum('amount') +$taxes->where('currency_id', $row->id)->sum('amount') +$employees->where('status', 1)->where('currency_id', $row->id)->sum('basic_salary') -($employee_overtimes->where('currency_id', $row->id)->whereBetween('date', [$fDate, $tDate])->sum('amount') +$employee_advance->where('currency_id', $row->id)->whereBetween('date', [$fDate, $tDate])->sum('payment')) }}
@endif
@endsection @section('pageJs') @endsection