@extends('backend.partials.master') @section('title') {{ __('menus.bank_transaction') }} {{ __('levels.list') }} @endsection @section('maincontent')
@csrf
@error('date') {{ $message }} @enderror
@error('type') {{ $message }} @enderror
@error('account') {{ $message }} @enderror
{{ __('levels.clear') }}

{{ __('menus.bank_transaction') }}

@csrf @if (isset($search) && count($search) > 0) {{ __('levels.print') }} @endif
@php $n = 0; @endphp @foreach ($transactions as $transaction) @endforeach
{{ __('###') }} {{ __('levels.account_no') }} | {{__('levels.name')}} {{ __('levels.type') }} {{ __('levels.amount') }} {{ __('levels.date') }} {{ __('levels.note') }}
{{++$n}} @if ($transaction->fund_transfer_id !==null) From : @if($transaction->fundTransfer->fromAccount->gateway == 1) {{@$transaction->fundTransfer->fromAccount->user->name}} (Cash) @else @if($transaction->fundTransfer->fromAccount->gateway == 3) bKash , @elseif ($transaction->fundTransfer->fromAccount->gateway == 4) Rocket , @elseif ($transaction->fundTransfer->fromAccount->gateway == 5) Nagad , @endif {{$transaction->fundTransfer->fromAccount->account_holder_name}} ({{$transaction->fundTransfer->fromAccount->account_no}} {{$transaction->fundTransfer->fromAccount->branch_name}} {{$transaction->fundTransfer->fromAccount->mobile}}) @endif
To : @if($transaction->fundTransfer->toAccount->gateway == 1) {{@$transaction->fundTransfer->toAccount->user->name}} (Cash) @else @if($transaction->fundTransfer->toAccount->gateway == 3) bKash , @elseif ($transaction->fundTransfer->toAccount->gateway == 4) Rocket , @elseif ($transaction->fundTransfer->toAccount->gateway == 5) Nagad , @endif {{$transaction->fundTransfer->toAccount->account_holder_name}} ({{$transaction->fundTransfer->toAccount->account_no}} {{$transaction->fundTransfer->toAccount->branch_name}} {{$transaction->fundTransfer->toAccount->mobile}}) @endif @elseif($transaction->income_id !==null && $transaction->income) @if($transaction->income->account_head_id == 2) From: {{ @$transaction->income->deliveryman->user->name }}
To: @elseif($transaction->income->account_head_id == 1) From: {{ @$transaction->income->merchant->business_name }}
To: @endif @if($transaction->account->gateway == 1) {{@$transaction->account->user->name}} (Cash) @else @if($transaction->account->gateway == 3) bKash , @elseif ($transaction->account->gateway == 4) Rocket , @elseif ($transaction->account->gateway == 5) Nagad , @endif {{$transaction->account->account_holder_name}} ({{$transaction->account->account_no}} {{$transaction->account->branch_name}} {{$transaction->account->mobile}}) @endif @elseif($transaction->cash_received_dvry !==null && $transaction->HubCashReceivedFromDeliveryman) From: {{ @$transaction->HubCashReceivedFromDeliveryman->deliveryman->user->name }}
To: @if($transaction->account->gateway == 1) {{@$transaction->account->user->name}} (Cash) @else @if($transaction->account->gateway == 3) bKash , @elseif ($transaction->account->gateway == 4) Rocket , @elseif ($transaction->account->gateway == 5) Nagad , @endif {{$transaction->account->account_holder_name}} ({{$transaction->account->account_no}} {{$transaction->account->branch_name}} {{$transaction->account->mobile}}) @endif @elseif($transaction->expense_id !==null && $transaction->expense) @if($transaction->expense !==null) From: @endif @if($transaction->account->gateway == 1) {{@$transaction->account->user->name}} (Cash) @else @if($transaction->account->gateway == 3) bKash , @elseif ($transaction->account->gateway == 4) Rocket , @elseif ($transaction->account->gateway == 5) Nagad , @endif {{$transaction->account->account_holder_name}} ({{$transaction->account->account_no}} {{$transaction->account->branch_name}} {{$transaction->account->mobile}}) @endif
@if($transaction->expense !==null) To:{{ @$transaction->expense->deliveryman->user->name }} @endif @else @if($transaction->account->gateway == 1) {{@$transaction->account->user->name}} (Cash) @else @if($transaction->account->gateway == 3) bKash , @elseif ($transaction->account->gateway == 4) Rocket , @elseif ($transaction->account->gateway == 5) Nagad , @endif {{$transaction->account->account_holder_name}} ({{$transaction->account->account_no}} {{$transaction->account->branch_name}} {{$transaction->account->mobile}}) @endif @endif
{!! $transaction->account_type !!} {{settings()->currency}}{{$transaction->amount}} {{dateFormat($transaction->date)}} {{$transaction->note}}
{{ $transactions->links() }}

{!! __('Showing') !!} {{ $transactions->firstItem() }} {!! __('to') !!} {{ $transactions->lastItem() }} {!! __('of') !!} {{ $transactions->total() }} {!! __('results') !!}

@endsection() @push('styles') @endpush @push('scripts') @endpush