<!-- Action Buttons Example inside Table Loop -->
@foreach($recharges as $recharge)
<tr>
    <td>{{ $recharge->user_name }}</td>
    <td>{{ strtoupper($recharge->payment_method) }}</td>
    <td>৳ {{ number_format($recharge->amount, 2) }}</td>
    <td>{{ $recharge->sender_number }}</td>
    <td><code class="bg-gray-100 p-1 rounded">{{ $recharge->transaction_id }}</code></td>
    <td>
        @if($recharge->status === 'pending')
            <span class="px-2 py-1 text-xs bg-amber-100 text-amber-800 rounded-full">Pending</span>
        @elseif($recharge->status === 'approved')
            <span class="px-2 py-1 text-xs bg-emerald-100 text-emerald-800 rounded-full">Approved</span>
        @else
            <span class="px-2 py-1 text-xs bg-rose-100 text-rose-800 rounded-full">Rejected</span>
        @endif
    </td>
    <td>
        @if($recharge->status === 'pending')
            <!-- Approve Form -->
            <form action="{{ route('admin.recharges.approve', $recharge->id) }}" method="POST" class="inline">
                @csrf
                <button type="submit" onclick="return confirm('আপনি কি নিশ্চিত যে রিচার্জটি অ্যাপ্রুভ করবেন?')" class="px-3 py-1 bg-emerald-600 text-white rounded text-xs">Approve</button>
            </form>

            <!-- Reject Form -->
            <form action="{{ route('admin.recharges.reject', $recharge->id) }}" method="POST" class="inline">
                @csrf
                <button type="submit" onclick="return confirm('আপনি কি নিশ্চিত যে রিচার্জটি রিজেক্ট করবেন?')" class="px-3 py-1 bg-rose-600 text-white rounded text-xs">Reject</button>
            </form>
        @else
            <span class="text-xs text-gray-400">N/A</span>
        @endif
    </td>
</tr>
@endforeach