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

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

{{ $accountCharge ? addCurrencyToPrice($accountCharge) : 0 }} {{ trans('financial.account_charge') }}
{{ $readyPayout ? addCurrencyToPrice($readyPayout) : 0 }} {{ trans('financial.ready_to_payout') }}
{{ $totalIncome ? addCurrencyToPrice($totalIncome) : 0 }} {{ trans('financial.total_income') }}
@if (\Session::has('msg'))
@endif @php $showOfflineFields = false; if ($errors->has('date') or $errors->has('referral_code') or $errors->has('account') or !empty($editOfflinePayment)) { $showOfflineFields = true; } @endphp

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

{{csrf_field()}} @if($errors->has('gateway'))
{{ $errors->first('gateway') }}
@endif
@foreach($paymentChannels as $paymentChannel) @endforeach

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

{{----}} {{ $currency }}
@error('amount') {{ $message }} @enderror
@error('account')
{{ $message }}
@enderror
@error('referral_code')
{{ $message }}
@enderror
@error('date')
{{ $message }}
@enderror
@error('attachment')
{{ $message }}
@enderror

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

@if(!empty($siteBankAccounts)) @foreach($siteBankAccounts as $siteBankAccount)
{{ trans('public.name') }}: {{ $siteBankAccount['title'] }}
{{ trans('financial.card_id') }}: {{ $siteBankAccount['card_id'] }}
{{ trans('financial.account_id') }}: {{ $siteBankAccount['account_id'] }}
{{ trans('financial.iban') }}: {{ $siteBankAccount['iban'] }}
@endforeach @endif
@if($offlinePayments->count() > 0)

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

@foreach($offlinePayments as $offlinePayment) @endforeach
{{ trans('financial.bank') }} {{ trans('financial.referral_code') }} {{ trans('panel.amount') }} ({{ $currency }}) {{ trans('update.attachment') }} {{ trans('public.status') }} {{ trans('public.controls') }}
{{ $offlinePayment->bank }} {{ $offlinePayment->pay_date }}
{{ $offlinePayment->reference_number }} {{ $offlinePayment->amount }} @if(!empty($offlinePayment->attachment)) {{ trans('public.view') }} @else --- @endif @switch($offlinePayment->status) @case(\App\Models\OfflinePayment::$waiting) {{ trans('public.waiting') }} @break @case(\App\Models\OfflinePayment::$approved) {{ trans('financial.approved') }} @break @case(\App\Models\OfflinePayment::$reject) {{ trans('public.rejected') }} @break @endswitch @if($offlinePayment->status != 'approved') @endif
@else @include(getTemplate() . '.includes.no-result',[ 'file_name' => 'offline.png', 'title' => trans('financial.offline_no_result'), 'hint' => nl2br(trans('financial.offline_no_result_hint')), ]) @endif @endsection @push('scripts_bottom') @endpush