@extends('layouts.app') @section('title', 'My Orders - FinAegis Exchange') @section('content')
View and manage your exchange orders
| Date/Time | Pair | Type | Price | Amount | Filled | Status | Actions |
|---|---|---|---|---|---|---|---|
| {{ $order->created_at->format('Y-m-d H:i:s') }} | {{ $order->pair }} | {{ strtoupper($order->type) }} {{ ucfirst($order->order_type) }} | @if($order->order_type === 'market') Market @else {{ number_format($order->price, 2) }} {{ $order->quote_currency }} @endif | {{ number_format($order->amount, 8) }} {{ $order->base_currency }} |
{{ number_format($order->filled_percentage, 1) }}%
|
@php $statusColors = [ 'pending' => 'bg-yellow-100 text-yellow-800', 'open' => 'bg-blue-100 text-blue-800', 'partially_filled' => 'bg-indigo-100 text-indigo-800', 'filled' => 'bg-green-100 text-green-800', 'cancelled' => 'bg-gray-100 text-gray-800', ]; @endphp {{ str_replace('_', ' ', ucfirst($order->status)) }} | @if($order->canBeCancelled()) @else - @endif |
|
Trades:
@foreach($order->trades as $trade)
{{ number_format($trade['executed_amount'], 8) }} @ {{ number_format($trade['executed_price'], 2) }}
({{ \Carbon\Carbon::parse($trade['timestamp'])->diffForHumans() }})
@endforeach
|
|||||||
|
No orders found Start Trading |
|||||||