@extends('layouts.mobile') @section('title', 'Currency Swap') @section('content')

Currency Swap

Exchange between different currencies instantly

@if($wallets->count() > 0)

Your Balances

@foreach($wallets as $wallet)

{{ $wallet->currency }}

{{ $supportedCurrencies[$wallet->currency]['symbol'] ?? '$' }}{{ number_format($wallet->balance, 2) }}

@endforeach
@endif

Swap Currencies

@csrf

Supported Currencies

@foreach($supportedCurrencies as $code => $currency)
{{ substr($code, 0, 2) }}

{{ $code }}

{{ $currency['name'] }}

@endforeach
@if(count($recentSwaps) > 0)

Recent Swaps

@foreach($recentSwaps as $swap)

{{ $swap['from_amount'] }} {{ $swap['from_currency'] }} → {{ $swap['to_amount'] }} {{ $swap['to_currency'] }}

{{ $swap['created_at'] }}

Rate: {{ $swap['rate'] }}

Fee: {{ $swap['fee'] }}

@endforeach
@else

Recent Swaps

No swaps yet

Your currency swaps will appear here

@endif

Swap Features

Instant currency conversion
Real-time exchange rates
Secure transactions
Competitive rates (1% fee)
@push('scripts') @endpush @endsection