@extends('layouts.app') @section('title', 'My P2P Activity') @push('styles') @endpush @section('content') @if(session('success'))
{{ session('success') }}
@endif
{{-- BUY ORDERS --}}
@forelse($buyOrders as $order)
{{ number_format($order->coins_amount) }} NC
₦{{ number_format($order->total_naira) }} · from {{ $order->seller->name }}
{{ ucfirst($order->status) }}
Placed {{ $order->created_at->format('d M Y, H:i') }} @if($order->expires_at && $order->status === 'pending') · Expires {{ $order->expires_at->format('H:i') }}@endif @if($order->paid_at) · Paid {{ $order->paid_at->format('d M H:i') }}@endif
@if($order->status === 'pending')
Send payment to seller and mark as paid below. @if($order->listing->bank_name)
Bank: {{ $order->listing->bank_name }} · {{ $order->listing->account_number }} · {{ $order->listing->account_name }}
@endif
@endif
View @if($order->status === 'pending')
@csrf
@csrf
@endif
@empty
No buy orders yet. Browse listings →
@endforelse
{{-- SELL ORDERS --}}
@forelse($myOrders as $order)
{{ number_format($order->coins_amount) }} NC
₦{{ number_format($order->total_naira) }} · to {{ $order->buyer->name }}
{{ ucfirst($order->status) }}
Placed {{ $order->created_at->format('d M Y, H:i') }} @if($order->paid_at) · Payment marked {{ $order->paid_at->format('d M H:i') }}@endif
@if($order->status === 'paid')
Buyer has marked payment as sent. Verify and release coins.
@endif
View @if(in_array($order->status, ['paid','pending']))
@csrf
@endif
@empty
No sell orders yet.
@endforelse
{{-- MY LISTINGS --}}
@forelse($listings as $listing)
{{ number_format($listing->coins_available) }} NC available
₦{{ number_format($listing->price_per_coin, 2) }}/NC · Total ≈ ₦{{ number_format($listing->totalNaira()) }}
{{ ucfirst($listing->status) }}
Posted {{ $listing->created_at->format('d M Y') }} · {{ $listing->orders()->count() }} orders
@if($listing->status === 'active')
@csrf
@endif
@empty
No listings yet. Post a listing →
@endforelse @if($listings->hasPages())
{{ $listings->links() }}
@endif
@push('scripts') @endpush @endsection