@extends('layouts.admin') @php $currencySymbol = App\Models\AppSetting::getValue('currency_symbol', '?'); @endphp @section('title', 'Payout History') @section('content')
Filter Payouts
Payout Records
Total: {{ $payouts->total() }}
@forelse($payouts as $payout) @empty @endforelse
ID Type Name Period Amount ({{ $currencySymbol }}) Status Processed At Actions
#{{ $payout->id }} @if($payout->payable_type == 'App\\Models\\Restaurant') Store @else Driver @endif @if($payout->payable_type == 'App\\Models\\Restaurant') {{ $payout->payable->name ?? 'N/A' }} @else {{ $payout->payable->name ?? 'N/A' }} @endif {{ \Carbon\Carbon::parse($payout->period_start)->format('d M') }} - {{ \Carbon\Carbon::parse($payout->period_end)->format('d M Y') }}
{{ ucfirst($payout->period_type) }}
{{ $currencySymbol }}{{ number_format($payout->amount, App\Models\AppSetting::currencyDecimals()) }} @if($payout->status == 'pending') Pending @elseif($payout->status == 'processing') Processing @elseif($payout->status == 'completed') Completed @else Failed @endif {{ $payout->processed_at ? \Carbon\Carbon::parse($payout->processed_at)->format('d M Y h:i A') : '-' }} @if($payout->status == 'pending')
@csrf
@endif
No Payout Records

No payouts have been generated yet.

@endsection