@extends('layouts.app') @section('title', 'Riwayat Transaksi') @section('page-title', 'Riwayat Transaksi Saya') @section('page-sub', 'Semua transaksi yang sudah Anda proses.') @section('page-actions') @endsection @section('content')
Reset
Total Transaksi
{{ number_format(count($transaksi)) }}
Transaksi dalam filter aktif
Total Omzet
Rp {{ number_format($totalOmzet, 0, ',', '.') }}
Pendapatan dari transaksi Anda
@forelse($transaksi as $t) @empty @endforelse
Invoice Tanggal Subtotal Diskon Total Bayar Aksi
{{ $t->no_invoice }} {{ $t->created_at->format('d/m/Y H:i') }} Rp {{ number_format($t->total_harga, 0, ',', '.') }} {{ $t->diskon > 0 ? '- Rp '.number_format($t->diskon, 0, ',', '.') : '—' }} Rp {{ number_format($t->total_bayar, 0, ',', '.') }} Struk
@endsection @push('scripts') @include('partials.dt-init', [ 'tableId' => 'tbl-riwayat-kasir', 'config' => "{ order: [[1, 'desc']], columnDefs: [ { className: 'dtr-control', orderable: false, targets: -1 }, { orderable: false, targets: [5] }, { responsivePriority: 1, targets: 0 }, { responsivePriority: 2, targets: 4 }, { responsivePriority: 3, targets: 1 }, { responsivePriority: 10, targets: [2, 3, 5] }, ], buttons: window.DT_EXPORT_BUTTONS, language: { emptyTable: 'Belum ada transaksi pada periode ini' }, }", 'extra' => " var btnCsv = document.getElementById('btn-export-csv'); if (btnCsv) btnCsv.onclick = function() { dt.button(0).trigger(); }; ", ]) @endpush