@extends('user.layouts.app', ['title' => 'Payin Orders']) @push('head') @endpush @section('content') @php $pageAmount = $orders->sum('amount'); $jazzcashAmount = $orders ->filter(fn ($order) => strtolower((string) $order->wallet_type) === 'jazzcash') ->sum('amount'); $easypaisaAmount = $orders ->filter(fn ($order) => strtolower((string) $order->wallet_type) === 'easypaisa') ->sum('amount'); $failedCount = $orders->where('status', 2)->count(); @endphp
{{--
Payments / Payin Orders
--}}

Payin Orders

{{--

A cleaner order workspace designed to match your dashboard, with search tools, strong status visibility, and a tighter operations-focused table.

--}}
Total Amount
Rs {{ number_format((float) $pageAmount, 2) }}
JazzCash Amount
Rs {{ number_format((float) $jazzcashAmount, 2) }}
EasyPaisa Amount
Rs {{ number_format((float) $easypaisaAmount, 2) }}
Failed Orders
{{ $failedCount }}
Order List
{{ $failedCount }} failed orders visible in current result set
@forelse ($orders as $order) @php $statusLabel = match ((int) $order->status) { 1 => 'Paid', 2 => 'Failed', default => 'Pending', }; $statusClass = match ((int) $order->status) { 1 => 'success', 2 => 'danger', default => 'warning', }; @endphp @empty @endforelse
Client Order ID Wallet Order ID Amount Created Time Wallet Type Status Action
{{ $order->order_id ?: 'N/A' }}
UTR: {{ $order->utr ?: 'Not available' }}
{{ $order->wallet_order_id ?: 'N/A' }} Rs {{ number_format((float) $order->amount, 2) }} {{ $order->created_at?->format('d M Y, h:i A') ?: '-' }} {{ $order->wallet_type ? ucfirst($order->wallet_type) : 'N/A' }} {{ $statusLabel }}
No payin orders found for the current filters.
@forelse ($orders as $order) @php $statusLabel = match ((int) $order->status) { 1 => 'Paid', 2 => 'Failed', default => 'Pending', }; $statusClass = match ((int) $order->status) { 1 => 'success', 2 => 'danger', default => 'warning', }; @endphp
Client Order ID
{{ $order->order_id ?: 'N/A' }}
{{ $order->created_at?->format('d M Y, h:i A') ?: '-' }}
{{ $statusLabel }}
Amount
Rs {{ number_format((float) $order->amount, 2) }}
Wallet Type
{{ $order->wallet_type ? ucfirst($order->wallet_type) : 'N/A' }}
Wallet Order ID
{{ $order->wallet_order_id ?: 'N/A' }}
Created Time
{{ $order->created_at?->format('d M Y, h:i A') ?: '-' }}
UTR
{{ $order->utr ?: 'Not available' }}
Status
{{ $statusLabel }}
@empty
No payin orders found for the current filters.
@endforelse
{{ $orders->onEachSide(1)->links('pagination::bootstrap-5') }}
@endsection