@extends('frontend.layouts.user.index') @section('title', __('Edit Agent Account')) @push('styles') @endpush @section('content') @php $hasCurrencyChoices = $currencies->isNotEmpty(); $selectedCurrencyIds = collect(old('currency_ids', $agent->supportedCurrencyIds())) ->map(fn ($id) => (int) $id) ->all(); $logoPreview = asset($agent->logo); @endphp
{{ __('Agent Services') }}
@unless($hasCurrencyChoices) @endunless
@csrf @method('PUT')
{{ __('Agent account details') }} {{ __('Update counter name, logo, supported currencies, and operating note. Personal information stays on your user profile.') }}
@foreach($currencies as $currency) @php($currencyInputId = 'agent_currency_'.$currency->id) id, $selectedCurrencyIds, true)) @disabled(! $hasCurrencyChoices) > @endforeach
@error('currency_ids')
{{ $message }}
@enderror @error('currency_ids.*')
{{ $message }}
@enderror
{{ __('Save account changes') }} {{ __('Counter services will use the selected supported currencies.') }}
@endsection