@extends('dev.layout') @php $showNav = true; @endphp @section('title', 'Stuck Orders') @section('content')
@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif @if($stuck->isEmpty())

No stuck orders.

@else
{{ $stuck->count() }} order{{ $stuck->count() > 1 ? 's' : '' }} stuck in pending.
@foreach($stuck as $order)
Order #{{ $order->id }} {{ $order->created_at->diffForHumans() }} ({{ $order->created_at->format('d M Y H:i') }})
{{ $order->shipping_first_name }} {{ $order->shipping_last_name }}  ·  {{ $order->shipping_email }}  ·  R {{ number_format($order->total_incl, 2) }}
@if($order->yoco_checkout_id)
Yoco ID: {{ $order->yoco_checkout_id }}
@endif
@foreach($order->items as $item)
{{ $item->qty }} × {{ $item->product_name }}
@endforeach
{{-- Cancel --}}
@csrf
{{-- Mark Paid --}}
@csrf
@endforeach @endif
@endsection