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

{{ __('income.title') }}

@if(hasPermission('income_create') == true )
@endif
@if(hasPermission('income_update') == true || hasPermission('income_delete') == true ) @endif @php $i=0; @endphp @foreach ($incomes as $income) @if( hasPermission('income_update') == true || hasPermission('income_delete') == true ) @endif @endforeach
{{ __('levels.id') }} {{ __('levels.details') }} {{ __('levels.to_account')}} {{ __('levels.date')}} {{ __('levels.receipt')}} {{ __('levels.amount')}}{{ __('levels.actions') }}
{{++$i}} @if( $income->account_head_id == 1 || $income->account_head_id == 2 || $income->account_head_id == 3 )
@if ($income->account_head_id == 1) {{ __('parcel.merchant') }}
@elseif($income->account_head_id == 2) {{ __('parcel.deliveryman') }}
@elseif($income->account_head_id == 3 && $income->user_id !==null) {{ __('levels.user') }}
@endif
@endif @if($income->hub_user_account) {{$income->hub_user_account->account_holder_name}}
{{$income->hub_user_account->account_no}}
{{$income->hub_user_account->branch_name}} @endif @if ($income->merchant_id != null)
{{ __('levels.name') }} : {{$income->merchant->business_name}}
{{ __('levels.mobile') }} : {{$income->merchant->user->mobile}}
@endif {{-- delivery man --}} @if ($income->delivery_man_id != null)
{{ __('levels.name') }} : {{$income->deliveryman->user->name}}
{{ __('levels.mobile') }} : {{$income->deliveryman->user->mobile}}
@endif @if ($income->user_id != null)
{{ __('levels.user') }} {{ __('levels.name') }} : {{$income->user->name}}
{{ __('levels.mobile') }} : {{$income->user->mobile}}
@endif @if($income->account_head_id == 3)
{{ __('levels.title') }} : {{ @$income->title }}
@endif @if($income->parcel_id !==null)
{{ __('levels.parcel') }} {{ __('levels.track_id') }} : #{{@$income->parcel->tracking_id}}
@endif
{{ __('levels.note') }} : {{ @$income->note }}
{{$income->account->account_holder_name}}
{{$income->account->account_no}}
{{$income->account->branch_name}}
{{dateFormat($income->date)}} user {{settings()->currency}}{{$income->amount}}
{{ $incomes->links() }}

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

@endsection