{{-- ══ HEADER BAND ══ --}}
Parkify
Smart Parking System
Laporan Pemesanan
Dicetak: {{ now()->format('d M Y, H:i') }} WIB  ·  Filter: {{ $filterStatus ?: 'Semua Status' }}
Total Data: {{ $pemesanans->count() }} pemesanan
{{-- ══ SUMMARY ══ --}} @php $countSelesai = $pemesanans->where('status', 'selesai')->count(); $countAktif = $pemesanans->whereIn('status', ['aktif', 'running'])->count(); $countDibatalkan = $pemesanans->where('status', 'dibatalkan')->count(); $countMenunggu = $pemesanans->where('status', 'menunggu')->count(); @endphp
Ringkasan
Total Pemesanan
{{ $pemesanans->count() }}
Selesai
{{ $countSelesai }}
Aktif / Running
{{ $countAktif }}
Menunggu
{{ $countMenunggu }}
Total Pendapatan
Rp {{ number_format($totalPendapatan, 0, ',', '.') }}
{{-- ══ TABLE ══ --}}
Detail Pemesanan
@forelse($pemesanans as $i => $p) @empty @endforelse
# Kode Pengguna Slot / Lokasi Kendaraan Waktu Mulai Waktu Selesai Durasi Total Status
{{ $i + 1 }} {{ $p->kode_pemesanan }}
{{ $p->user?->name ?? '–' }}
{{ $p->user?->email ?? '' }}
{{ $p->slotParkir?->kode_slot ?? '–' }}
{{ Str::limit($p->slotParkir?->lokasiParkir?->nama, 24) }}
{{ $p->kendaraan?->plat_nomor ?? '–' }}
{{ trim(($p->kendaraan?->merek ?? '') . ' ' . ($p->kendaraan?->model ?? '')) ?: '' }}
{{ $p->waktu_mulai ? \Carbon\Carbon::parse($p->waktu_mulai)->format('d M Y') : '–' }}
{{ $p->waktu_mulai ? \Carbon\Carbon::parse($p->waktu_mulai)->format('H:i') : '' }}
@if($p->waktu_selesai) {{ \Carbon\Carbon::parse($p->waktu_selesai)->format('d M Y') }}
{{ \Carbon\Carbon::parse($p->waktu_selesai)->format('H:i') }} @else – @endif
@if($p->durasi_parkir) {{ $p->durasi_parkir }} jam @else – @endif {{ $p->total_harga > 0 ? 'Rp ' . number_format($p->total_harga, 0, ',', '.') : '–' }} {{ ucfirst($p->status) }}
Tidak ada data pemesanan.
{{-- ══ FOOTER ══ --}}