@extends('api_panel.layouts.app') @section('title', t('apipanel-orders-title')) @section('content')

{{ t('apipanel-orders-title') }}

{{ t('apipanel-orders-subtitle') }}

@if($orders->isEmpty())

{{ t('apipanel-orders-empty') }}

@else
@foreach($orders as $order) @endforeach
{{ t('apipanel-orders-date') }} {{ t('apipanel-checkout-order-no') }} {{ t('apipanel-orders-item') }} {{ t('apipanel-orders-total') }} {{ t('apipanel-orders-status') }} {{ t('apipanel-orders-invoice') }}
{{ $order->created_at?->format('d.m.Y H:i') }} {{ $order->merchant_oid }} {{ $order->meta['label'] ?? $order->item_type }} {{ $order->item_type }} × {{ (int) $order->quantity }} {{ number_format((float) $order->total, 2, ',', '.') }} ₺ @php $statusClass = match ($order->status) { \App\Models\ApiOrder::STATUS_PAID => 'is-active', \App\Models\ApiOrder::STATUS_FAILED => 'is-danger', default => 'is-muted', }; @endphp {{ t('apipanel-order-status-' . $order->status) }} {{ $order->invoice_number ?: '—' }}
{{ $orders->links() }}
@endif
@endsection