@extends('user.layouts.app', ['title' => 'Payout Orders']) @push('head') @endpush @section('content') @php $statusMeta = static function ($status) { $normalized = strtolower(trim((string) $status)); return match ($normalized) { '1', 'completed', 'success', 'paid' => ['label' => 'Completed', 'class' => 'success'], '2', 'failed', 'rejected' => ['label' => 'Failed', 'class' => 'danger'], default => ['label' => 'Pending', 'class' => 'warning'], }; }; $pageAmount = $orders->sum('amount'); $completedCount = $orders->filter(fn ($order) => $statusMeta($order->status)['label'] === 'Completed')->count(); $pendingCount = $orders->filter(fn ($order) => $statusMeta($order->status)['label'] === 'Pending')->count(); $failedCount = $orders->filter(fn ($order) => $statusMeta($order->status)['label'] === 'Failed')->count(); @endphp
A modern payout workspace aligned with the same clean dashboard experience as payin orders, ready for review, filtering, and manual action flows.
--}}| Sr No. | Date | Order ID | Name | Number | Amount | Type | Bank Code | Status | API Response | Jazz Ref | Sending Amount | Action |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ $orders->firstItem() + $index }} | {{ $order->created_at?->format('d M Y, h:i A') ?: '-' }} |
{{ $order->order_id ?: 'N/A' }}
{{ $order->jazz_transaction_id ?: 'Jazz transaction not available' }}
|
{{ $order->name ?: 'N/A' }} | {{ $order->number ?: 'N/A' }} | Rs {{ number_format((float) $order->amount, 2) }} | {{ $order->type ? ucfirst($order->type) : 'N/A' }} | {{ $order->bank_code ?: 'N/A' }} | {{ $status['label'] }} | {{ $order->api_response_msg ?: 'N/A' }} | {{ $referenceLabel }} | Rs {{ number_format((float) ($order->sending_amount ?? 0), 2) }} | |
| No payout orders found for the current filters. | ||||||||||||