@extends(getTemplate() .'.panel.layouts.panel_layout') @section('content')

{{ trans('financial.account_summary') }}

@if(!$authUser->financial_approval)
{{ trans('panel.not_verified_alert') }} {{ trans('panel.this_link') }}.
@endif
{{ $accountCharge ? handlePrice($accountCharge) : 0 }} {{ trans('financial.account_charge') }}
{{ handlePrice($readyPayout ?? 0) }} {{ trans('financial.ready_to_payout') }}
{{ handlePrice($totalIncome ?? 0) }} {{ trans('financial.total_income') }}
@if($payouts->count() > 0)

{{ trans('financial.payouts_history') }}

@foreach($payouts as $payout) @endforeach
{{ trans('financial.account') }} {{ trans('public.type') }} {{ trans('panel.amount') }} ({{ $currency }}) {{ trans('public.status') }} {{ trans('admin/main.actions') }}
@if(!empty($payout->userSelectedBank->bank)) {{ $payout->userSelectedBank->bank->title }} @else - @endif {{ dateTimeFormat($payout->created_at, 'j M Y | H:i') }}
{{ trans('public.manual') }} {{ handlePrice($payout->amount, false) }} @switch($payout->status) @case(\App\Models\Payout::$waiting) {{ trans('public.waiting') }} @break; @case(\App\Models\Payout::$reject) {{ trans('public.rejected') }} @break; @case(\App\Models\Payout::$done) {{ trans('public.done') }} @break; @endswitch {{-- For Modal --}} @if(!empty($payout->userSelectedBank->bank)) @php $bank = $payout->userSelectedBank->bank; @endphp @endif @if(!empty($bank->title)) @foreach($bank->specifications as $specification) @php $selectedBankSpecification = $payout->userSelectedBank->specifications->where('user_selected_bank_id', $payout->userSelectedBank->id)->where('user_bank_specification_id', $specification->id)->first(); @endphp @if(!empty($selectedBankSpecification)) @endif @endforeach @endif
{{ $payouts->appends(request()->input())->links('vendor.pagination.panel') }}
@else @include(getTemplate() . '.includes.no-result',[ 'file_name' => 'payout.png', 'title' => trans('financial.payout_no_result'), 'hint' => nl2br(trans('financial.payout_no_result_hint')), ]) @endif

{{ trans('financial.payout_confirmation') }}

{{ trans('financial.payout_confirmation_hint') }}

{{ csrf_field() }}
{{ trans('financial.ready_to_payout') }} {{ handlePrice($readyPayout ?? 0) }}
@if(!empty($authUser->selectedBank) and !empty($authUser->selectedBank->bank))
{{ trans('financial.account_type') }} {{ $authUser->selectedBank->bank->title }}
@foreach($authUser->selectedBank->bank->specifications as $specification) @php $selectedBankSpecification = $authUser->selectedBank->specifications->where('user_selected_bank_id', $authUser->selectedBank->id)->where('user_bank_specification_id', $specification->id)->first(); @endphp
{{ $specification->name }} {{ (!empty($selectedBankSpecification)) ? $selectedBankSpecification->value : '' }}
@endforeach @endif
@endsection @push('scripts_bottom') @endpush