@extends('layout') @section('content')

Admin — Transactions (Permintaan Pencairan / Deposit)

@foreach($transactions as $tx) @endforeach
# User Wallet Type Status Amount (coins) Description Created Action
{{ $tx->id }} {{ $tx->wallet && $tx->wallet->user ? $tx->wallet->user->name : '-' }} {{ $tx->wallet_id }} {{ ucfirst($tx->type) }} {{ ucfirst($tx->status) }} {{ $tx->amount }} {{ $tx->description }} {{ $tx->created_at }} @php $badgeClass = 'secondary'; if($tx->status === 'done') $badgeClass = 'success'; elseif($tx->status === 'processing') $badgeClass = 'warning'; elseif($tx->status === 'rejected') $badgeClass = 'danger'; @endphp @if($tx->status === 'done' || $tx->status === 'rejected') {{ ucfirst($tx->status) }} @else
@csrf
@endif
@endsection