@php $transactions = $this->transactions; @endphp @if ($transactions->isEmpty())
Belum ada transaksi
Riwayat transaksi member akan tampil di sini.
@else
@foreach ($transactions as $trx)
{{ (string) $trx->code }}
{{ optional($trx->created_at)->format('d/m/Y H:i') }} • {{ \App\Helpers\DataLabelHelper::enum($trx->channel ?? null, 'channel') }}
Bayar: {{ \App\Helpers\DataLabelHelper::enum($trx->payment_status ?? null, 'payment_status') }}
@if ((int) ($trx->points_earned ?? 0) > 0 || (int) ($trx->points_redeemed ?? 0) > 0)
@if ((int) ($trx->points_earned ?? 0) > 0) Poin +{{ number_format((int) $trx->points_earned, 0, ',', '.') }} @endif @if ((int) ($trx->points_earned ?? 0) > 0 && (int) ($trx->points_redeemed ?? 0) > 0) • @endif @if ((int) ($trx->points_redeemed ?? 0) > 0) Poin -{{ number_format((int) $trx->points_redeemed, 0, ',', '.') }} @endif
@endif
Total
Rp {{ number_format((int) ($trx->total ?? 0), 0, ',', '.') }}
@endforeach
{{ $transactions->links('livewire.pagination.self-order') }}
@endif