Riwayat Transaksi

Pantau ringkasan transaksi dan detail penjualan.

@php $canActions = (bool) (auth()->user()?->can('transactions.details') || auth()->user()?->can('transactions.print')); @endphp
@if ($canActions) @endif @forelse ($transactions as $transaction) @php $customer = (string) ($transaction->member?->name ?? $transaction->name ?? '-'); $orderType = (string) ($transaction->order_type ?? ''); $paymentMethodKey = (string) ($transaction->payment_method ?? ''); $paymentMethodLabel = \App\Helpers\DataLabelHelper::enum($paymentMethodKey, 'payment_method'); $paymentStatusKey = (string) ($transaction->payment_status ?? ''); $paymentStatusLabel = \App\Helpers\DataLabelHelper::enum($paymentStatusKey, 'payment_status'); @endphp @if ($canActions) @endif @empty @endforelse
Kode Pelanggan Tipe Pembayaran Aksi

{{ optional($transaction->created_at)->format('d M Y') }}

{{ optional($transaction->created_at)->format('H:i') }}

{{ $transaction->code }}

{{ $customer }}

@can('transactions.pii.view')

{{ $transaction->phone ?? $transaction->email }}

@else

-

@endcan
{{ $orderType === 'dine_in' ? 'Dine in' : 'Take away' }}

{{ $paymentMethodLabel }}

{{ $paymentStatusLabel }}

@if ((int) ($transaction->manual_discount_amount ?? 0) > 0)

Diskon Manual

@endif

Rp{{ number_format((int) $transaction->total, 0, ',', '.') }}

@can('transactions.print') @endcan @can('transactions.details') Detail @endcan

Transaksi tidak ditemukan.

{{ $transactions->links('livewire.pagination.admin') }}