@extends('backend.layouts.master') @section('section-title', 'Report') @section('page-title', 'Daily Report') @push('css') @endpush @section('content')
Income |
||
|---|---|---|
| Today Sales | Method | |
| {{ $today_sale }} |
@foreach ($bankAccount as $cash)
@php
$userBranchId = auth()->user()->branch_id;
$filterBranchId = session('branch_filter_id', null);
if ($userBranchId == 1) {
if ($filterBranchId) {
$cash_amount = App\Models\BankTransaction::where(
'pay_type',
'invpay',
)
->where('bank_id', $cash->id)
->where('branch_id', $filterBranchId)
->where('date', $sdate)
->sum('amount');
} else {
$cash_amount = App\Models\BankTransaction::where(
'pay_type',
'invpay',
)
->where('bank_id', $cash->id)
->where('date', $sdate)
->sum('amount');
}
} else {
$cash_amount = App\Models\BankTransaction::where(
'pay_type',
'invpay',
)
->where('bank_id', $cash->id)
->where('branch_id', $userBranchId)
->where('date', $sdate)
->sum('amount');
}
@endphp
@if ($cash_amount)
{{ $cash->bank_name }}= {{ $cash_amount }} @endif @endforeach |
|
| Today Due | ||
| Today Due | Method | |
| {{ $today_total_due }} | @foreach ($bankAccount as $cash) @php $userBranchId = auth()->user()->branch_id; $filterBranchId = session('branch_filter_id', null); if ($userBranchId == 1) { if ($filterBranchId) { $due_collect_amount = App\Models\BankTransaction::where( 'pay_type', 'duepay', ) ->where('bank_id', $cash->id) ->where('branch_id', $filterBranchId) ->where('date', $sdate) ->sum('amount'); } else { $due_collect_amount = App\Models\BankTransaction::where( 'pay_type', 'duepay', ) ->where('bank_id', $cash->id) ->where('date', $sdate) ->sum('amount'); } } else { $due_collect_amount = App\Models\BankTransaction::where( 'pay_type', 'duepay', ) ->where('bank_id', $cash->id) ->where('branch_id', $userBranchId) ->where('date', $sdate) ->sum('amount'); } @endphp @if ($due_collect_amount != 0) @endif @endforeach | |
| Due Collection | ||
| Today Due Collection | Method | |
| {{ $today_due_coll }} |
@foreach ($bankAccount as $cash)
@php
$userBranchId = auth()->user()->branch_id;
$filterBranchId = session('branch_filter_id', null);
if ($userBranchId == 1) {
if ($filterBranchId) {
$due_collect_amount = App\Models\BankTransaction::where(
'pay_type',
'duepay',
)
->where('bank_id', $cash->id)
->where('branch_id', $filterBranchId)
->where('date', $sdate)
->sum('amount');
} else {
$due_collect_amount = App\Models\BankTransaction::where(
'pay_type',
'duepay',
)
->where('bank_id', $cash->id)
->where('date', $sdate)
->sum('amount');
}
} else {
$due_collect_amount = App\Models\BankTransaction::where(
'pay_type',
'duepay',
)
->where('bank_id', $cash->id)
->where('branch_id', $userBranchId)
->where('date', $sdate)
->sum('amount');
}
@endphp
@if ($due_collect_amount != 0)
{{ $cash->bank_name }}= {{ $due_collect_amount }} @endif @endforeach |
|
| Deposit | ||
| Today Deposit | Method | |
| {{ $today_deposit }} |
@foreach ($bankAccount as $cash)
@php
$userBranchId = auth()->user()->branch_id;
$filterBranchId = session('branch_filter_id', null);
if ($userBranchId == 1) {
if ($filterBranchId) {
$deposit_amount = App\Models\BankTransaction::where(
'pay_type',
'ownpay',
)
->where('bank_id', $cash->id)
->where('branch_id', $filterBranchId)
->where('date', $sdate)
->sum('amount');
} else {
$deposit_amount = App\Models\BankTransaction::where(
'pay_type',
'ownpay',
)
->where('bank_id', $cash->id)
->where('date', $sdate)
->sum('amount');
}
} else {
$deposit_amount = App\Models\BankTransaction::where(
'pay_type',
'ownpay',
)
->where('bank_id', $cash->id)
->where('branch_id', $userBranchId)
->where('date', $sdate)
->sum('amount');
}
@endphp
{{ $cash->bank_name }}= {{ $deposit_amount }} @endforeach |
|
| Withdraw | ||
| Today Withdraw | Method | |
| {{ $today_withdraw }} |
@foreach ($bankAccount as $cash)
@php
$userBranchId = auth()->user()->branch_id;
$filterBranchId = session('branch_filter_id', null);
if ($userBranchId == 1) {
if ($filterBranchId) {
$deposit_amount = App\Models\BankTransaction::where(
'pay_type',
'ownwith',
)
->where('bank_id', $cash->id)
->where('branch_id', $filterBranchId)
->where('date', $sdate)
->sum('amount');
} else {
$deposit_amount = App\Models\BankTransaction::where(
'pay_type',
'ownwith',
)
->where('bank_id', $cash->id)
->where('date', $sdate)
->sum('amount');
}
} else {
$deposit_amount = App\Models\BankTransaction::where(
'pay_type',
'ownwith',
)
->where('bank_id', $cash->id)
->where('branch_id', $userBranchId)
->where('date', $sdate)
->sum('amount');
}
@endphp
{{ $cash->bank_name }}= {{ $deposit_amount }} @endforeach |
|
| Expenses | ||
| Today Expense | Method | |
| {{ $today_expense }} |
@foreach ($bankAccount as $cash)
@php
$userBranchId = auth()->user()->branch_id;
$filterBranchId = session('branch_filter_id', null);
if ($userBranchId == 1) {
if ($filterBranchId) {
$expense_amount = App\Models\BankTransaction::where(
'pay_type',
'expense',
)
->where('bank_id', $cash->id)
->where('branch_id', $filterBranchId)
->where('date', $sdate)
->sum('amount');
} else {
$expense_amount = App\Models\BankTransaction::where(
'pay_type',
'expense',
)
->where('bank_id', $cash->id)
->where('date', $sdate)
->sum('amount');
}
} else {
$expense_amount = App\Models\BankTransaction::where(
'pay_type',
'expense',
)
->where('bank_id', $cash->id)
->where('branch_id', $userBranchId)
->where('date', $sdate)
->sum('amount');
}
@endphp
@if ($expense_amount != 0)
{{ $cash->bank_name }}= {{ $expense_amount }} @endif @endforeach |
|
| Purchase | ||
| Today Purchase | Method | |
| {{ $today_purchase }} |
@foreach ($bankAccount as $cash)
@php
$userBranchId = auth()->user()->branch_id;
$filterBranchId = session('branch_filter_id', null);
if ($userBranchId == 1) {
if ($filterBranchId) {
$purchase_amount = App\Models\BankTransaction::where(
'pay_type',
'purchase',
)
->where('bank_id', $cash->id)
->where('branch_id', $filterBranchId)
->where('date', $sdate)
->sum('amount');
} else {
$purchase_amount = App\Models\BankTransaction::where(
'pay_type',
'purchase',
)
->where('bank_id', $cash->id)
->where('date', $sdate)
->sum('amount');
}
} else {
$purchase_amount = App\Models\BankTransaction::where(
'pay_type',
'purchase',
)
->where('bank_id', $cash->id)
->where('branch_id', $userBranchId)
->where('date', $sdate)
->sum('amount');
}
@endphp
@if ($purchase_amount != 0)
{{ $cash->bank_name }}= {{ $purchase_amount }} @endif @endforeach |
|
| Purchase Due Payment | ||
| Today Purchase Due Payment | Method | |
| {{ $today_pur_due_pay }} |
@foreach ($bankAccount as $cash)
@php
$userBranchId = auth()->user()->branch_id;
$filterBranchId = session('branch_filter_id', null);
if ($userBranchId == 1) {
if ($filterBranchId) {
$purchase_due_pay = App\Models\BankTransaction::where(
'pay_type',
'purdue',
)
->where('bank_id', $cash->id)
->where('branch_id', $filterBranchId)
->where('date', $sdate)
->sum('amount');
} else {
$purchase_due_pay = App\Models\BankTransaction::where(
'pay_type',
'purdue',
)
->where('bank_id', $cash->id)
->where('date', $sdate)
->sum('amount');
}
} else {
$purchase_due_pay = App\Models\BankTransaction::where(
'pay_type',
'purdue',
)
->where('bank_id', $cash->id)
->where('branch_id', $userBranchId)
->where('date', $sdate)
->sum('amount');
}
@endphp
@if ($purchase_due_pay != 0)
{{ $cash->bank_name }}= {{ $purchase_due_pay }} @endif @endforeach |
|
| Bank Transfer | ||
| Account | {{--From Account | --}}Amount |
|
@foreach ($bankAccount as $cash)
@php
$userBranchId = auth()->user()->branch_id;
$filterBranchId = session('branch_filter_id', null);
if ($userBranchId == 1) {
if ($filterBranchId) {
$purc_due_pay = App\Models\BankTransaction::where(
'pay_type',
'transfer',
)
->where('from_bank_id', $cash->id)
->where('branch_id', $filterBranchId)
->where('date', $sdate)
->get();
} else {
$purc_due_pay = App\Models\BankTransaction::where(
'pay_type',
'transfer',
)
->where('from_bank_id', $cash->id)
->where('date', $sdate)
->get();
}
} else {
$purc_due_pay = App\Models\BankTransaction::where(
'pay_type',
'transfer',
)
->where('from_bank_id', $cash->id)
->where('branch_id', $userBranchId)
->where('date', $sdate)
->get();
}
@endphp
@foreach ($purc_due_pay as $trans)
From {{ $trans->from_bank_account->bank_name }} Transfer To
{{ $trans->to_bank_account->bank_name }} @endforeach @endforeach |
@foreach ($bankAccount as $cash)
@php
$userBranchId = auth()->user()->branch_id;
$filterBranchId = session('branch_filter_id', null);
if ($userBranchId == 1) {
if ($filterBranchId) {
$purc_due_pay = App\Models\BankTransaction::where(
'pay_type',
'transfer',
)
->where('from_bank_id', $cash->id)
->where('branch_id', $filterBranchId)
->where('date', $sdate)
->get();
} else {
$purc_due_pay = App\Models\BankTransaction::where(
'pay_type',
'transfer',
)
->where('from_bank_id', $cash->id)
->where('date', $sdate)
->get();
}
} else {
$purc_due_pay = App\Models\BankTransaction::where(
'pay_type',
'transfer',
)
->where('from_bank_id', $cash->id)
->where('branch_id', $userBranchId)
->where('date', $sdate)
->get();
}
@endphp
@foreach ($purc_due_pay as $trans)
{{ $trans->amount }} @endforeach @endforeach |
|
| Total Transfer | {{ $today_transfer }} | |
| Today Balance : {{ $today_balance }} |
@foreach ($bankAccount as $cash)
{{ $cash->bank_name }}= {{ date_current_balance($cash->id, $sdate) }} @endforeach |
|
| Current Balance : {{ $today_balance + previous_balance($data->id, $sdate) }} {{ empty(get_setting('com_currency')) ?: get_setting('com_currency') }} | ||