@extends('layouts.app')
@section('title', 'Orders')
@section('subtitle', 'Every payment request created from the API or dashboard.')
@section('actions')
Payment link
@endsection
@section('content')
@php
$current = request('status', '');
$tabs = ['' => ['All', $counts->sum()], 'review' => ['Needs review', $counts['review'] ?? 0], 'paid' => ['Paid', $counts['paid'] ?? 0], 'pending' => ['Pending', $counts['pending'] ?? 0], 'expired' => ['Expired', $counts['expired'] ?? 0]];
@endphp
@include('orders._table')
@if ($orders->hasPages())
{{ $orders->links() }}
@endif
@endsection