@php use App\Constants\CurrencyRole; $totalCurrencies = $currencies->count(); $activeCurrencies = $currencies->where('status', true)->count(); $inactiveCurrencies = max(0, $totalCurrencies - $activeCurrencies); $liveRateCurrencies = $currencies->where('rate_live', true)->count(); $fiatCurrencies = $currencies->where('type', 'fiat')->count(); $cryptoCurrencies = $currencies->where('type', 'crypto')->count(); $defaultCurrency = $currencies->firstWhere('default', true); $activePercent = $totalCurrencies > 0 ? round(($activeCurrencies / $totalCurrencies) * 100) : 0; @endphp @extends('backend.layouts.app') @section('title', __('Currencies')) @push('styles') @endpush @section('content')
{{ __('Operate fiat, crypto, live exchange feeds, wallet defaults, and transaction role policies from a bank-grade control surface.') }}
{{ session('exchange_rate_error') }}
{{ __('Review conversion source, role access, and operational state for every wallet currency.') }}
| {{ __('Currency') }} | {{ __('Exchange') }} | {{ __('Role Access') }} | {{ __('Operational State') }} | {{ __('Actions') }} |
|---|---|---|---|---|
|
@if($currency->flag)
{{ $currency->name }}
{{ $currency->code }} · {{ $currency->symbol }}
|
1 {{ siteCurrency() }}
→
{{ number_format($currency->getRawOriginal('exchange_rate'), (int) setting('site_decimal', 2), '.', '') }}
{{ $currency->code }}
|
@forelse($currency->activeRoles as $role)
{{ strtoupper($role->role_name) }}
@empty
{{ __('No active role') }}
@endforelse
|
{{ $currency->status ? __('Activated') : __('Not Activated') }}
{{ $currency->auto_wallet ? __('Auto wallet enabled') : __('Manual wallet creation') }}
|
@if($currency->default != 1)
@endif
|
|
|
||||