@php use App\Constants\CurrencyRole; use App\Constants\CurrencyType; use App\Constants\FixPctType; $flagFallback = mb_strtoupper(mb_substr($currency->name ?: $currency->code, 0, 2)); @endphp
@method('PUT') @csrf {{-- Drawer Header — minimal: rich identity lives in the context strip below --}}
{{ __('Update Currency') }}
{{-- Drawer Body --}}
{{-- Context Strip --}}
@if($currency->flag) {{ $currency->name }} @endif
{{ $currency->code }} · {{ $currency->symbol }}

{{ $currency->name }}

{{ strtoupper($currency->type) }} @if($currency->default) ★ {{ __('Default') }} @endif {{ $currency->auto_wallet ? __('Auto Wallet') : __('Manual Wallet') }}
{{ __('Current Rate') }}
1 {{ siteCurrency() }} = {{ old('exchange_rate', $currency->exchange_rate) }} {{ $currency->code }}
{{-- Identity dcard --}}
{{ __('Identity') }}

{{ __('Currency Details') }}

{{ __('Profile') }}
{{-- Rates & Controls dcard --}}
{{ __('Rates & Controls') }}

{{ __('Exchange Configuration') }}

{{ __('Manage Exchange') }}
1 {{ siteCurrency() }} = {{ old('name', $currency->code) }}
@if(!$currency->default)
{{ __('Enable') }}
@endif
{{ __('Enable') }}
{{ __('Enable') }}
@if(! $currency->default)
{{ __('Default currency change requires review') }}

{{ __('If this currency becomes the new base, admin dashboards, user dashboards, fees, limits, wallet creation, reports, and checkout summaries may display and calculate from the new base currency.') }}

@endif
{{-- Access Matrix dcard --}}
{{ __('Access Matrix') }}

{{ __('Role Fee & Limit Rules') }}

{{ __(':count Roles', ['count' => $currency->roles->count()]) }}
@foreach($currency->roles as $role) @php $roleKey = strtolower($role->role_name); @endphp
@if($role->role_name !== CurrencyRole::WITHDRAW)
{{ __('Fee') }}
{{ __('Min Amount') }}
{{ siteCurrency() }}
{{ __('Max Amount') }}
{{ siteCurrency() }}
@else
{{ __('Withdrawal fee & limit only applicable for withdraw payment method') }}
@endif
{{ __('Role Status') }}
@endforeach
{{-- Drawer Footer --}}