@extends('customer') @section('title', 'Quick Currency Exchange') @section('content') {{--
--}}

Quick Currency Exchange

Exchange currencies instantly at competitive rates with just a few clicks.

{{-- Start Trading --}}

Today's Exchange Rates

@foreach ($currencies as $currency) {{-- Ubah parameter kedua dari 0 menjadi 2 --}} @endforeach
Currency Buy Rate Sell Rate
{{ $currency->currency_pair }}{{ number_format($currency->buy_rate, 2, ',', '.') }} {{ number_format($currency->sell_rate, 2, ',', '.') }}
Quick Currency Exchange
@csrf
@foreach ($currencies as $currency) @endforeach

Buy Rate: 0

Total Buy: 0

Sell Rate: 0

Total Sell: 0

@if (auth()->check())
@endif @if (auth()->check()) @else @endif
@if (auth()->check())

Your Transaction History

@foreach ($transactions as $transaction) @php $total_amount = $transaction->total_received + $transaction->shipping_cost @endphp @if ($transaction->shipping_cost === null && $transaction->delivery_method === 'delivery') @else @endif @php $statusDisplay = $transaction->status; if ($transaction->status == 'processing') { if ($transaction->transfer_proof) { $statusDisplay = 'waiting confirmation'; } else { $statusDisplay = 'waiting payment'; } } @endphp @endforeach
Date Currency Amount Kurs Total Received Shipping Cost Total Amount Transfer to Transfer Time Delivery Method Delivery Address Status Cancel Reason Action
{{ $transaction->created_at->format('d-m-Y H:i') }} {{ $transaction->currency ?? '-' }} {{ number_format($transaction->amount, 2, ',', '.') }} {{ number_format($transaction->kurs, 2, ',', '.') }} {{ number_format($transaction->total_received, 2, ',', '.') }} {{ number_format($transaction->shipping_cost, 2, ',', '.') }} Waiting{{ number_format($total_amount, 2, ',', '.') }} {{ $transaction->transferAccount->bank_name . ' - ' . $transaction->transferAccount->rekening . ' - ' . $transaction->transferAccount->nama_rekening }} {{ $transaction->transfer_time }} {{ $transaction->delivery_method }} {{ Str::limit($transaction->delivery_address, 30, '...') }} {{ ucfirst($statusDisplay) }} {{ ucfirst($transaction->cancel_reason ?? ' - ') }} @if ($transaction->status == 'completed') @endif @if ($transaction->status == 'pending')
@csrf @method('PATCH')
@endif @if ($transaction->status == 'processing') @if ($transaction->transfer_proof) @else @endif @endif
@endif < @if (session('success')) @push('scripts') @endpush @endif @if (session('error')) @push('scripts') @endpush @endif {{-- --}} @endsection