@extends('backend.partials.master') @section('title') {{ __('merchantmanage.title') }} {{ __('merchantmanage.payment') }} {{ __('levels.list') }} @endsection @section('maincontent')
@csrf
{{ __('levels.clear') }}

{{ __('merchantmanage.merchant_payment_manage') }}

@if(hasPermission('payment_create') == true || hasPermission('invoice_generate_menually') == true)
@if(hasPermission('payment_create') == true) @endif @if(hasPermission('invoice_generate_menually') == true) Invoice Generate @endif
@endif
@if( hasPermission('payment_reject') == true || hasPermission('payment_process') == true || hasPermission('payment_update') == true || hasPermission('payment_delete') == true ) @endif @php $i=1; @endphp @foreach($payments as $payment) @if( hasPermission('payment_reject') == true || hasPermission('payment_process') == true || hasPermission('payment_update') == true || hasPermission('payment_delete') == true ) @endif @endforeach
{{ __('levels.id') }} {{ __('merchantmanage.merchant_details') }} {{ __('merchantmanage.transaction_id') }} {{ __('merchantmanage.from_account') }} {{ __('merchantmanage.reference') }} {{ __('merchantmanage.description') }} {{ __('levels.status') }} {{ __('merchantmanage.amount') }}{{ __('levels.actions') }}
{{$i++}}
user
: {{$payment->merchant->user->name}}

: {{$payment->merchant->user->email}}


Business name
: {{ @$payment->merchant->business_name }}
@if ($payment->merchantAccount !==null && $payment->merchantAccount->payment_method == 'bank')
Holder
: {{ $payment->merchantAccount->holder_name }}
Bank
: {{ $payment->merchantAccount->bank_name }}
Acc. No.
: {{ $payment->merchantAccount->account_no }}
Branch
: {{ $payment->merchantAccount->branch_name }}
Routing No.
: {{ $payment->merchantAccount->routing_no }}
@elseif ($payment->merchantAccount !==null && $payment->merchantAccount->payment_method == 'mobile') {{-- mobile --}}
Compnay
: {{ $payment->merchantAccount->mobile_company }}
Mobile
: {{ $payment->merchantAccount->mobile_no }}
Type
: {{ $payment->merchantAccount->account_type }}
@elseif ($payment->merchantAccount !==null && $payment->merchantAccount->payment_method == 'cash')
Payment method
: Cash
@endif
{{$payment->transaction_id}} @if ($payment->frompayment !==null && $payment->frompayment->gateway == 1) {{ @$payment->frompayment->user->name }} ( Cash) @elseif($payment->frompayment !==null && $payment->frompayment->gateway == 2) {{ @$payment->frompayment->account_holder_name}}
{{ @$payment->frompayment->account_no }}
{{ @$payment->frompayment->branch_name }} @elseif( $payment->frompayment !==null && @$payment->frompayment->gateway == 3 || @$payment->frompayment->gateway == 4 || @$payment->frompayment->gateway == 5 ) @if($payment->frompayment->gateway == 3) Bkash @elseif($payment->frompayment->gateway == 4) Rocket @elseif($payment->frompayment->gateway == 5) Nagad @endif
{{ @$payment->frompayment->account_holder_name}}
{{ @$payment->frompayment->mobile }}
@if($payment->frompayment->account_type == 1) Merchant @else Persional @endif @endif
Download {{$payment->description}} @if($payment->status == \App\Enums\ApprovalStatus::REJECT) {{trans('approvalstatus.'.\App\Enums\ApprovalStatus::REJECT) }} @elseif($payment->status == \App\Enums\ApprovalStatus::PENDING) {{trans('approvalstatus.'.\App\Enums\ApprovalStatus::PENDING) }} @elseif($payment->status == \App\Enums\ApprovalStatus::PROCESSED) {{trans('approvalstatus.'.\App\Enums\ApprovalStatus::PROCESSED) }} @endif {{settings()->currency}}{{$payment->amount}} @if ($payment->status == \App\Enums\ApprovalStatus::PROCESSED || $payment->status == \App\Enums\ApprovalStatus::REJECT )
@else
@endif
{{ $payments->appends($request->all())->links() }}

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

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