{{ csrf_field() }}
@error('bank_id')
{{ $message }}
@enderror
@if(!empty($user) and !empty($user->selectedBank) and !empty($user->selectedBank->bank)) @foreach($user->selectedBank->bank->specifications as $specification) @php $selectedBankSpecification = $user->selectedBank->specifications->where('user_selected_bank_id', $user->selectedBank->id)->where('user_bank_specification_id', $specification->id)->first(); @endphp
@endforeach @endif
financial_approval) or (old('financial_approval') == 'on')) ? 'checked' : '' }}>
enable_installments) or (old('enable_installments') == 'on')) ? 'checked' : '' }}>
installment_approval) or (old('installment_approval') == 'on')) ? 'checked' : '' }}>
disable_cashback) or (old('disable_cashback') == 'on')) ? 'checked' : '' }}>
enable_registration_bonus) ? 'checked' : '' }}>
@if(!$user->isUser()) @php $commissions = $user->commissions; @endphp
{{ trans('update.commissions') }}
@foreach(\App\Models\UserCommission::$sources as $commissionSource) @php $commission = $commissions->where('source', $commissionSource)->first(); $commissionValue = null; if (!empty($commission)) { $commissionValue = $commission->value; if ($commission->type == "fixed_amount") { $commissionValue = convertPriceToUserCurrency($commissionValue); } } @endphp
type == "percent") ? 'maxlength="3" min="0" max="100"' : '' }}/>
{{ trans("update.{$commissionSource}_commission_hint") }}
@endforeach @endif