@extends('layouts.admin') @section('title', 'Payments') @section('content')

{{ config('marketplace.currency.default') }} {{ number_format($settledTotal / 100, 2) }} settled

{{-- Outstanding is the default view: this is a reconciliation screen before it is a ledger, and what needs a human is what is unpaid. --}}
$currentStatus === '', 'pill-idle' => $currentStatus !== ''])> Awaiting settlement {{ ($counts['pending'] ?? 0) + ($counts['processing'] ?? 0) }} $currentStatus === 'all', 'pill-idle' => $currentStatus !== 'all'])> All {{ $counts->sum() }} @foreach ($statuses as $value => $label) @continue(! $counts->has($value)) $currentStatus === $value, 'pill-idle' => $currentStatus !== $value])> {{ $label }} {{ $counts[$value] }} @endforeach
@if ($payments->isEmpty()) @else
@foreach ($payments as $payment) @endforeach
Reference Seller For Amount Method Status Actions
{{ $payment->reference }} {{ $payment->created_at->format('d M Y') }} {{ $payment->user?->name }} {{ $payment->user?->email }} @if ($payment->payable instanceof \App\Models\Subscription) {{ $payment->payable->plan?->name }} @elseif ($payment->payable instanceof \App\Models\ListingPromotion) {{ $payment->payable->type->label() }} @else — @endif {{ $payment->formattedAmount() }} {{ str_replace('_', ' ', $payment->gateway) }} {{ $payment->status->label() }} Open
{{ $payments->links() }}
@endif @endsection