@extends('layouts.app') @section('title', 'My orders') @section('content')

My orders

Track any order with its number and the email you used.

@csrf
@error('number')

{{ $message }}

@enderror
@foreach (array_filter([$found ? collect([$found]) : null, $orders]) as $group) @if ($group === $orders && $orders->count())

Orders from this browser

@endif
@foreach ($group as $o)
#{{ $o->number }}{{ $o->created_at->format('M j, Y H:i') }}
    @foreach ($o->items as $i)
  • {{ $i->service_title }} · {{ number_format($i->quantity) }} · {{ $i->target }} · ×{{ $i->count }}
  • @endforeach
{{ \App\Models\Order::STATUSES[$o->status] ?? $o->status }} {{ \App\Models\Order::PAYMENT_STATUSES[$o->payment_status] ?? $o->payment_status }} {{ $o->total_display }} · {{ $o->payment_detail }}
@endforeach
@endforeach @if (! $found && $orders->isEmpty())
No orders from this browser yet.
Explore services
@endif
@endsection