{{-- Filter Bar --}}
Dari
Sampai
Cari
@php $data = $this->getJournalData(); @endphp {{-- Summary Cards --}}

Total Penjualan

{{ number_format($data['summary']->total_penjualan ?? 0, 0, ',', '.') }}

Total Terbayar

{{ number_format($data['summary']->total_terbayar ?? 0, 0, ',', '.') }}

Sisa Piutang

{{ number_format($data['summary']->sisa_piutang ?? 0, 0, ',', '.') }}

Harga Pokok

{{ number_format($data['summary']->total_hpp ?? 0, 0, ',', '.') }}

Laba Kotor

{{ number_format($data['summary']->laba_kotor ?? 0, 0, ',', '.') }}

PPN

{{ number_format($data['summary']->total_ppn ?? 0, 0, ',', '.') }}

{{-- Table --}}
{{ $data['summary']->total_orders ?? 0 }} transaksi penjualan
{{-- Desktop Table --}}
@forelse($data['orders'] as $order) @php $laba = $order->total - $order->total_cost; $isPaid = $order->balance_due <= 0; @endphp @empty @endforelse
Nota / Customer Tanggal Status Subtotal Diskon Pajak Grand Total Terbayar HPP Laba Kotor
{{ $order->order_number }}
{{ $order->customer_name ?? 'Walk-in' }}
{{ $order->created_at->format('d M Y') }} {{ $isPaid ? 'Lunas' : 'Belum' }} {{ number_format($order->subtotal ?? $order->total, 0, ',', '.') }} {{ $order->discount > 0 ? number_format($order->discount, 0, ',', '.') : '-' }} {{ $order->tax > 0 ? number_format($order->tax, 0, ',', '.') : '-' }} {{ number_format($order->total, 0, ',', '.') }} {{ $order->amount_paid > 0 ? number_format($order->amount_paid, 0, ',', '.') : '0' }} {{ number_format($order->total_cost, 0, ',', '.') }} {{ number_format($laba, 0, ',', '.') }}
Belum ada transaksi penjualan pada periode ini
{{-- Mobile Cards --}}
@forelse($data['orders'] as $order) @php $laba = $order->total - $order->total_cost; $isPaid = $order->balance_due <= 0; @endphp
{{-- Row 1: Order number + Total --}}

{{ $order->order_number }}

{{ $order->customer_name ?? 'Walk-in' }} | {{ $order->created_at->format('d M Y') }}

Rp {{ number_format($order->total, 0, ',', '.') }}
{{-- Row 2: Status + details --}}
{{ $isPaid ? 'Lunas' : 'Belum' }} HPP: {{ number_format($order->total_cost, 0, ',', '.') }} Laba: {{ number_format($laba, 0, ',', '.') }} @if($order->tax > 0) PPN: {{ number_format($order->tax, 0, ',', '.') }} @endif
@empty
Belum ada transaksi penjualan pada periode ini
@endforelse