@extends('layouts.user') @section('title', 'Currency Comparison - ' . $currency1->code . ' vs ' . $currency2->code) @push('styles') @endpush @push('scripts') @endpush @section('content') {{-- Flower Decorations --}}
Decorative Flower
Decorative Flower
{{-- Breadcrumb --}} {{-- Header --}}

Currency Comparison

Compare exchange rates, performance, and trends between two currencies

{{-- Currency Selection --}}
{{-- Currency 1 --}}
{{ $currency1->name }}
{{ $currency1->code }} • {{ $currency1->symbol ?? $currency1->code }}
{{-- VS Divider --}}
VS
{{-- Currency 2 --}}
{{ $currency2->name }}
{{ $currency2->code }} • {{ $currency2->symbol ?? $currency2->code }}
{{-- Period Selector --}}
{{-- Performance Comparison --}}
{{-- Currency 1 Performance --}}

{{ $currency1->code }} Performance ({{ $period }} days)

@php $return1Class = $performance1['return'] > 0 ? 'positive' : ($performance1['return'] < 0 ? 'negative' : 'neutral'); @endphp
Total Return {{ $performance1['return'] > 0 ? '+' : '' }}{{ $performance1['return'] }}%
Volatility {{ $performance1['volatility'] }}%
Max Drawdown -{{ $performance1['max_drawdown'] }}%
Sharpe Ratio {{ $performance1['sharpe_ratio'] }}
Data Points {{ $rates1->count() }}
{{-- Currency 2 Performance --}}

{{ $currency2->code }} Performance ({{ $period }} days)

@php $return2Class = $performance2['return'] > 0 ? 'positive' : ($performance2['return'] < 0 ? 'negative' : 'neutral'); @endphp
Total Return {{ $performance2['return'] > 0 ? '+' : '' }}{{ $performance2['return'] }}%
Volatility {{ $performance2['volatility'] }}%
Max Drawdown -{{ $performance2['max_drawdown'] }}%
Sharpe Ratio {{ $performance2['sharpe_ratio'] }}
Data Points {{ $rates2->count() }}
{{-- Comparison Charts --}}
{{-- Currency 1 Chart --}}

{{ $currency1->code }}/USD Exchange Rate

{{-- Currency 2 Chart --}}

{{ $currency2->code }}/USD Exchange Rate

{{-- Combined Comparison Chart --}}

Combined Comparison

{{-- Quick Actions --}}
📊 View {{ $currency1->code }} Details 📊 View {{ $currency2->code }} Details ⬅️ Back to Dashboard
@endsection @push('scripts') @endpush