MEMUAT DATA...

Riwayat Transaksi POS

Pantau dan kelola seluruh transaksi penjualan yang terinput melalui sistem Kasir POS dari seluruh cabang Bebek Mba Reina secara real-time.

@if(session()->has('success'))
✅ {{ session('success') }}
@endif @if(session()->has('error'))
⚠️ {{ session('error') }}
@endif @if($isEditModalOpen)

✏️ EDIT TRANSAKSI POS

Edit Cabang, Pelanggan, atau Tipe Penjualan. Invoice: {{ $editInvoice }}

*Untuk mengganti item/produk, harap batalkan transaksi ini dan input ulang melalui Kasir POS.
@endif @if($isReceiptModalOpen && $receiptSale)
@php $logoPath = \App\Models\AppSetting::where('key', 'company_logo')->value('value'); $companyName = \App\Models\AppSetting::where('key', 'company_name')->value('value') ?? 'BEBEK MBA REINA'; $companyPhone = \App\Models\AppSetting::where('key', 'company_phone')->value('value') ?? '081234567890'; $companyAddress = \App\Models\AppSetting::where('key', 'company_address')->value('value') ?? ''; $logoBase64 = null; if ($logoPath && Storage::disk('public')->exists($logoPath)) { try { $logoData = Storage::disk('public')->get($logoPath); $logoMime = Storage::disk('public')->mimeType($logoPath); $logoBase64 = 'data:' . $logoMime . ';base64,' . base64_encode($logoData); } catch (\Exception $e) { $logoBase64 = null; } } @endphp @if($logoBase64) @endif

{{ $companyName }}

{{ $receiptSale->branch->name ?? 'Cabang Utama' }}

@if($receiptSale->branch->address || $companyAddress)

{{ $receiptSale->branch->address ?? $companyAddress }}

@endif @if($receiptSale->branch->whatsapp || $companyPhone)

Telp: {{ $receiptSale->branch->whatsapp ?? $companyPhone }}

@endif
No. Invoice: {{ $receiptSale->invoice_number }}
Tanggal: {{ $receiptSale->created_at->format('d-M-Y H:i') }}
Kasir: {{ $receiptSale->cashier->name ?? '-' }}
Pelanggan: {{ $receiptSale->customer->name ?? 'Umum' }}
@if($receiptSale->table_number)
Meja: {{ $receiptSale->table_number }}
@endif
@foreach($receiptSale->items as $item)
{{ $item->product->name ?? 'Produk Dihapus' }}{{ $item->variant_name ? ' (' . $item->variant_name . ')' : '' }} Rp {{ number_format($item->total, 0, ',', '.') }}
{{ $item->quantity }} x Rp {{ number_format($item->price, 0, ',', '.') }} @if($item->discount_amount > 0) Disc: -Rp {{ number_format($item->discount_amount, 0, ',', '.') }} @endif
@endforeach
Subtotal: Rp {{ number_format($receiptSale->subtotal, 0, ',', '.') }}
@if($receiptSale->discount_amount > 0)
Diskon Tambahan: -Rp {{ number_format($receiptSale->discount_amount, 0, ',', '.') }}
@endif @if($receiptSale->tax_amount > 0)
Pajak/PB1: Rp {{ number_format($receiptSale->tax_amount, 0, ',', '.') }}
@endif @if($receiptSale->service_charge > 0)
Service Charge: Rp {{ number_format($receiptSale->service_charge, 0, ',', '.') }}
@endif
GRAND TOTAL: Rp {{ number_format($receiptSale->grand_total, 0, ',', '.') }}
Metode Bayar: {{ $receiptSale->paymentMethod->name ?? 'Tempo' }}
Bayar: Rp {{ number_format($receiptSale->paid_amount, 0, ',', '.') }}
Kembali: Rp {{ number_format($receiptSale->change_amount, 0, ',', '.') }}

TERIMA KASIH ATAS KUNJUNGAN ANDA

Powered by Bebek Mba Reina ERP

@endif @if($viewMode === 'list')
🔍
@if($timeRange === 'custom')
Rentang: s/d
@endif
Auto refresh aktif setiap 5 menit.
@if(isset($branchTotals) && count($branchTotals) > 0) @php $grandTotalSum = array_sum(array_column($branchTotals, 'total')); @endphp
TOTAL OMSET (SEMUA) Rp {{ number_format($grandTotalSum, 0, ',', '.') }}
👑
@foreach($branchTotals as $bTotal)
{{ $bTotal['name'] }} Rp {{ number_format($bTotal['total'], 0, ',', '.') }}
💰
@endforeach
@endif
@forelse($sales as $sale) @empty @endforelse
Tanggal No. Invoice Cabang Kasir Pelanggan Tipe Metode Bayar Grand Total Status Aksi
{{ $sale->created_at->format('d M Y H:i') }} {{ $sale->invoice_number }} {{ $sale->branch->name ?? 'Global' }} {{ $sale->cashier->name ?? '-' }} {{ $sale->customer->name ?? 'Umum' }} {{ $sale->salesType->name ?? 'Retail' }} {{ $sale->paymentMethod->name ?? 'Tempo' }} Rp {{ number_format($sale->grand_total, 0, ',', '.') }} @if($sale->status === 'cancelled') VOID / BATAL @elseif($sale->payment_status === 'paid') LUNAS @else BELUM BAYAR @endif
Tidak ada transaksi yang cocok dengan kriteria filter.
{{ $sales->links() }}
@elseif($viewMode === 'detail' && $detailSale)

Rincian Transaksi POS

Invoice: {{ $detailSale->invoice_number }}

Informasi Umum

Cabang: {{ $detailSale->branch->name ?? '-' }}

Tipe Penjualan: {{ $detailSale->salesType->name ?? '-' }}

Meja: {{ $detailSale->table_number ?? '-' }}

Pelanggan: {{ $detailSale->customer->name ?? 'Umum' }}

Waktu Transaksi: {{ $detailSale->created_at->format('d/m/Y H:i') }}

Informasi Pembayaran

Status: @if($detailSale->status === 'cancelled') VOID / BATAL @elseif($detailSale->payment_status === 'paid') LUNAS @elseif($detailSale->payment_status === 'partially_paid') SEBAGIAN @else BELUM LUNAS @endif

Metode Bayar: {{ $detailSale->paymentMethod->name ?? '-' }}

Total Tagihan: Rp {{ number_format($detailSale->grand_total, 0, ',', '.') }}

Nominal Dibayar: Rp {{ number_format($detailSale->paid_amount, 0, ',', '.') }}

Kembalian: Rp {{ number_format($detailSale->change_amount, 0, ',', '.') }}

Item Pembelian

@foreach($detailSale->items as $item) @endforeach @if($detailSale->discount_amount > 0) @endif @if($detailSale->tax_amount > 0) @endif @if($detailSale->service_charge > 0) @endif
Produk Qty Harga Satuan Diskon Total
{{ $item->product->name ?? 'Produk Dihapus' }}{{ $item->variant_name ? ' (' . $item->variant_name . ')' : '' }} {{ $item->quantity }} Rp {{ number_format($item->price, 0, ',', '.') }} {{ $item->discount_amount > 0 ? '-Rp '.number_format($item->discount_amount, 0, ',', '.') : '-' }} Rp {{ number_format($item->total, 0, ',', '.') }}
Subtotal: Rp {{ number_format($detailSale->subtotal, 0, ',', '.') }}
Diskon Tambahan: - Rp {{ number_format($detailSale->discount_amount, 0, ',', '.') }}
Pajak/PB1: Rp {{ number_format($detailSale->tax_amount, 0, ',', '.') }}
Service Charge: Rp {{ number_format($detailSale->service_charge, 0, ',', '.') }}
GRAND TOTAL: Rp {{ number_format($detailSale->grand_total, 0, ',', '.') }}
@endif