{{-- Header --}}

Riwayat Shift Saya

Rekap semua shift yang pernah kamu kerjakan

Dashboard
{{-- Lifetime Stats --}}

Total Jam Kerja

{{ $lifetimeStats['total_hours'] }}j {{ $lifetimeStats['total_minutes_rem'] }}m

{{ $lifetimeStats['total_shifts'] }} shift total

Total Penjualan

Rp {{ number_format($lifetimeStats['total_sales'], 0, ',', '.') }}

{{ number_format($lifetimeStats['total_transactions']) }} transaksi

Rata-rata/Shift

Rp {{ number_format($lifetimeStats['avg_sales_per_shift'], 0, ',', '.') }}

per shift selesai

@php $diff = $lifetimeStats['total_difference']; @endphp

Total Selisih Saldo

{{ $diff >= 0 ? '+' : '' }}Rp {{ number_format($diff, 0, ',', '.') }}

akumulasi semua shift

{{-- Shift History Table --}}

Daftar Shift

@forelse($shifts as $shift) @empty @endforelse
Tanggal Check In Check Out Durasi Modal Awal Total Penjualan Transaksi Selisih Saldo Status Detail
{{ $shift->check_in_at->format('d M Y') }} {{ $shift->check_in_at->format('H:i') }} {{ $shift->check_out_at ? $shift->check_out_at->format('H:i') : '-' }} {{ $shift->status === 'CLOSED' ? $shift->duration : '— sedang berlangsung' }} Rp {{ number_format($shift->opening_cash, 0, ',', '.') }} Rp {{ number_format($shift->total_sales, 0, ',', '.') }} {{ $shift->total_transactions }} trx @if($shift->status === 'CLOSED') {{ $shift->difference >= 0 ? '+' : '' }}Rp {{ number_format($shift->difference, 0, ',', '.') }} @else Shift aktif @endif @if($shift->status === 'OPEN') Aktif @elseif($shift->difference >= 0) Selesai @else Selisih @endif @if($shift->status === 'CLOSED') @else @endif

Belum ada riwayat shift

@if($shifts->hasPages())
{{ $shifts->links() }}
@endif
{{-- Shift Detail Modal --}} @if($showDetailModal && $this->selectedShift)
{{-- Modal Header --}}

Detail Shift

{{ $this->selectedShift->check_in_at->format('d M Y') }} • {{ $this->selectedShift->check_in_at->format('H:i') }} – {{ $this->selectedShift->check_out_at?->format('H:i') ?? '-' }} ({{ $this->selectedShift->duration }})

{{-- Summary Cards --}}

Modal Awal

Rp {{ number_format($this->selectedShift->opening_cash, 0, ',', '.') }}

Total Penjualan

Rp {{ number_format($this->selectedShift->total_sales, 0, ',', '.') }}

Penjualan Tunai

Rp {{ number_format($this->selectedShift->total_cash_sales, 0, ',', '.') }}

Selisih Saldo

{{ $this->selectedShift->difference >= 0 ? '+' : '' }}Rp {{ number_format($this->selectedShift->difference, 0, ',', '.') }}

@if($this->selectedShift->note)

Catatan Shift

{{ $this->selectedShift->note }}

@endif {{-- Transactions in shift --}}

Transaksi dalam Shift ({{ count($shiftTransactions) }} transaksi)

@forelse($shiftTransactions as $trx) @empty @endforelse
Invoice Waktu Pelanggan Item Bayar Total
{{ $trx->invoiceNumber }} {{ $trx->date->format('H:i') }} {{ $trx->member->name ?? 'Guest' }} {{ $trx->items->count() }} {{ $trx->paymentMethod }} Rp {{ number_format($trx->totalAmount, 0, ',', '.') }}
Tidak ada transaksi dalam shift ini
@endif