@extends('layouts.admin') @section('title', $currency->name . ' - Currency Details') @section('content')

Currency Details: {{ $currency->name }}

Currency Information
Currency Name {{ $currency->name }}
Currency Code {{ $currency->code }} @if($currency->code == 'KES') Base Currency @endif
Symbol {{ $currency->symbol ?? '—' }}
Decimal Places {{ $currency->decimal_places }}
Status @if($currency->active) Active @else Inactive @endif
Created {{ $currency->created_at->format('M j, Y H:i') }}
Last Updated {{ $currency->updated_at->format('M j, Y H:i') }}
Exchange Rate Statistics
@php $latestRate = $currency->latestRate; $totalRates = $currency->exchangeRates()->count(); $activeRates = $currency->exchangeRates()->where('is_active', true)->count(); $todayRates = $currency->exchangeRates()->whereDate('effective_date', today())->count(); @endphp

{{ $totalRates }}

Total Rates

{{ $activeRates }}

Active Rates
@if($latestRate)
Current Exchange Rate
1 {{ $currency->code }} = {{ number_format($latestRate->rate, 4) }} KES
Effective: {{ $latestRate->effective_date->format('M j, Y') }}
@if($latestRate->effective_date->isToday()) Current @else Historical @endif
@else

No exchange rates found for this currency.

Add Exchange Rate
@endif
Exchange Rate History {{ $exchangeRates->total() }}
Add New Rate
@if($exchangeRates->count())
@foreach($exchangeRates as $rate) @endforeach
Base Currency Target Currency Exchange Rate Effective Date Status Created Actions
{{ $rate->base_currency }} {{ $rate->target_currency }} 1 {{ $rate->target_currency }} = {{ number_format($rate->rate, 4) }} {{ $rate->base_currency }} {{ $rate->effective_date->format('M j, Y') }} @if($rate->is_active) Active @else Inactive @endif {{ $rate->created_at->format('M j, Y') }}
@if($rate->is_active)
@csrf @method('DELETE')
@else
@csrf @method('PUT')
@endif
Showing {{ $exchangeRates->firstItem() }} to {{ $exchangeRates->lastItem() }} of {{ $exchangeRates->total() }} exchange rates
{{ $exchangeRates->links() }}
@else
No Exchange Rates Found

No exchange rates have been added for this currency yet.

Add First Exchange Rate
@endif
Update Rate

Add a new exchange rate for this currency

Update Rate
View Analytics

View rate history and trends

View Analytics
Test Conversion

Test currency conversion

Test Conversion
@endsection @push('styles') @endpush