@php $fmt = fn($n) => 'Rp ' . number_format((float) $n, 0, ',', '.'); @endphp
@if ($transactions->isEmpty())
Belum ada transaksi.
@else @foreach ($transactions as $trx) @endforeach
Kode Waktu Member Produk Target Harga Profit Channel Status
{{ $trx->code }} {{ $trx->created_at->format('d/m H:i') }} {{ $trx->user?->name ?? '-' }} {{ $trx->product_name }} {{ $trx->target }} {{ $fmt($trx->price) }} {{ $fmt($trx->price_markup) }} {{ $trx->channel }} @if ($trx->status === 'success') Sukses @elseif (in_array($trx->status, ['pending', 'processing'])) Pending @elseif ($trx->status === 'refunded') Refund @else Gagal @endif
{{ $transactions->links() }}
@endif