Особистий кабінет

@if (session('status'))
{{ session('status') }}
@endif

Мої замовлення

@if ($orders->isEmpty())
Ви ще нічого не купували. Перейти в магазин →
@else
@foreach ($orders as $order) @endforeach
Акаунт Сума Статус
{{ $order->account->title }} {{ number_format($order->price, 0, ',', ' ') }} {{ $order->currency }} $order->status === 'pending_payment', 'bg-emerald-500/10 text-emerald-300' => $order->status === 'paid', 'bg-red-500/10 text-red-300' => $order->status === 'cancelled', ])> @switch($order->status) @case('pending_payment') Очікує оплати @break @case('paid') Оплачено @break @case('cancelled') Скасовано @break @endswitch Деталі →
{{ $orders->links() }}
@endif

Мої оголошення

+ Продати акаунт
@if ($submittedAccounts->isEmpty())
Ви ще не подавали акаунти на продаж.
@else
@foreach ($submittedAccounts as $account) @endforeach
Назва Гра Ціна Модерація
{{ $account->title }} {{ $account->game->name }} {{ number_format($account->price, 0, ',', ' ') }} {{ $account->currency }} $account->moderation_status === 'pending', 'bg-emerald-500/10 text-emerald-300' => $account->moderation_status === 'approved', 'bg-red-500/10 text-red-300' => $account->moderation_status === 'rejected', ])> @switch($account->moderation_status) @case('pending') На модерації @break @case('approved') Схвалено @break @case('rejected') Відхилено @break @endswitch @if ($account->moderation_status === 'rejected' && $account->moderation_note)
{{ $account->moderation_note }}
@endif
{{ $submittedAccounts->links() }}
@endif