@extends('layout.app') @section('content')
@forelse ($transfers as $i => $t) @php // comments pattern: "note -- transfer through -- Cash" $parts = explode(' -- transfer through -- ', $t->comments ?? ''); $note = trim($parts[0] ?? ''); $transferType = trim($parts[1] ?? '—'); $transferType = $transferType === 'PopRecharge' ? 'Account Recharge' : $transferType; @endphp @empty @endforelse @if ($transfers->isNotEmpty()) @endif
# Date POP Name Amount Transfer Type Note Transferred By
{{ $i + 1 }} {{ $t->created_at->format('d M Y h:i A') }} {{ $t->pop->popname ?? '—' }} {{ number_format($t->paid_amount, 2) }} {{ $transferType }} {{ $note ?: '—' }} {{ $t->user->name ?? '—' }}
No commission transfers found for the selected period.
Total {{ number_format($transfers->sum('paid_amount'), 2) }}
@endsection