@php use Illuminate\Support\Carbon; $actions = $this->getActions(); @endphp @if ($actions->isEmpty()) You are all caught up No pending deposits, withdrawals, or unpaid match prizes right now. @else @foreach ($actions as $action) @php $type = $action['type']; $badgeColor = match ($type) { 'deposit' => 'warning', 'withdrawal' => 'danger', 'winnings' => 'primary', default => 'gray', }; $badgeLabel = match ($type) { 'deposit' => 'Deposit', 'withdrawal' => 'Withdraw', 'winnings' => 'Prizes', default => 'Action', }; $time = $action['time'] ?? null; $timeLabel = $time instanceof \DateTimeInterface ? Carbon::instance($time)->diffForHumans() : null; @endphp {{ $badgeLabel }} {{ $action['title'] }} {{ $action['subtitle'] }} {{ $action['meta'] }} @if ($timeLabel) {{ $timeLabel }} @endif @endforeach @endif @once @push('styles') @endpush @endonce
You are all caught up
No pending deposits, withdrawals, or unpaid match prizes right now.