@extends('backend.partials.master') @section('title', ___('admin.currencies')) @section('maincontent') @php $canEdit = hasPermission('general_settings_update'); @endphp

{{ ___('admin.currencies') }}

@if($canEdit)
@csrf
@endif

{{ ___('admin.currency_rates_help', ['base' => $base]) }}

@csrf @method('PUT')
@if($canEdit)
@endif
{{ ___('admin.currency_auto_help') }}
@csrf @method('PUT')
@foreach($currencies as $currency) @php $isBase = strtoupper($currency->code) === $base; @endphp @endforeach
{{ ___('label.currency') }} {{ ___('admin.currency_code') }} {{ ___('admin.currency_rate_per', ['base' => $base]) }} {{ ___('admin.currency_rate_updated') }}
{{ $currency->name }} {{ $currency->symbol }} {{ $currency->code }} @if($isBase) 1 · {{ ___('admin.currency_agency') }} @else @endif {{ $isBase ? '' : ($currency->rate_updated_at?->diffForHumans() ?? '—') }}
@if($canEdit)
@endif
@if($canEdit)

{{ ___('admin.currency_add') }}

@csrf
@foreach(['name', 'code', 'symbol', 'exchange_rate'] as $field) @error($field){{ $message }}@enderror @endforeach
@endif
@endsection