@extends('layouts.admin') @section('title', 'Exchange Rates — Global Supply Chain') @section('page_title', 'Exchange Rates') @section('content') {{-- ── Header ──────────────────────────────────────────────────── --}}

Exchange Rates

Base: USD @if($lastUpdated) · Last updated {{ \Carbon\Carbon::parse($lastUpdated)->diffForHumans() }} @endif

@csrf
{{-- ── Search ───────────────────────────────────────────────────── --}}
@if(request('search')) Clear @endif
{{-- ── Table ────────────────────────────────────────────────────── --}}
@forelse($rates as $rate) @empty @endforelse
Currency Code Rate (vs USD) Change % Source Recorded
{{ $rate->targetCurrency?->name ?? '—' }} {{ $rate->targetCurrency?->code ?? '—' }} @if($rate->targetCurrency?->symbol) ({{ $rate->targetCurrency->symbol }}) @endif {{ number_format($rate->exchange_rate, 4) }} @if($rate->change_percentage !== null) {{ $rate->change_percentage >= 0 ? '+' : '' }}{{ number_format($rate->change_percentage, 2) }}% @else — @endif {{ $rate->source ?? '—' }} {{ $rate->recorded_at?->format('Y-m-d H:i') ?? '—' }}
No exchange rates yet. Run php artisan countries:sync --exchange to import.
@if($rates->hasPages())
{{ $rates->links() }}
@endif
@endsection