{{ session('success') }}
@endif
@if(session('error'))
{{ session('error') }}
@endif
@if($errors->any())
@foreach($errors->all() as $e)
{{ $e }}
@endforeach
Kelola Slot Parkir
{{ $totalTersedia }} tersedia · {{ $totalTerisi }} terisi · {{ $totalDipesan }} dipesan dari {{ $totalSlot }} total slot
Total Slot
{{ number_format($totalSlot) }}
Tersedia
{{ number_format($totalTersedia) }}
Terisi
{{ number_format($totalTerisi) }}
Dipesan
{{ number_format($totalDipesan) }}
Nonaktif
{{ number_format($totalNonaktif) }}
@foreach($topLokasi as $lok)
@php
$total = $lok->slot_parkir_count ?? 0;
$terisi = $lok->slot_terisi_count ?? 0;
$tersedia = $lok->slot_tersedia_count ?? 0;
$hunian = $total > 0 ? round(($terisi / $total) * 100) : 0;
$barColor = $hunian >= 80 ? 'var(--red)' : ($hunian >= 60 ? 'var(--amber)' : 'var(--green)');
@endphp
● {{ $lok->aktif ? 'Aktif' : 'Nonaktif' }}
@endforeach
@endif
{{-- ── FILTER BAR ── --}}
{{-- ── TABLE ── --}}
{{ $lok->nama }}
{{ Str::limit($lok->alamat, 40) }}
Total Slot
{{ $total }}
Tersedia
{{ $tersedia }}
Terisi
{{ $terisi }}
Semua Slot Parkir
{{-- Bulk Action Toolbar --}}
| Kode Slot | Lokasi | Lantai / Zona | Jenis | Kendaraan | Status | Sensor ID | Aksi | |
|---|---|---|---|---|---|---|---|---|
{{ $slot->kode_slot }}
|
{{ $slot->lokasiParkir->nama ?? '—' }} | @if($slot->lantai || $slot->zona) {{ $slot->lantai ? 'Lt. '.$slot->lantai : '' }} {{ $slot->lantai && $slot->zona ? ' · ' : '' }} {{ $slot->zona ? 'Zona '.$slot->zona : '' }} @else — @endif | @if($slot->jenis_slot === 'vip') ★ VIP @else Reguler @endif | @if($slot->kendaraan_type === 'mobil') Mobil @else Motor @endif | @php $pillClass = match($slot->status) { 'tersedia' => 'sp-tersedia', 'terisi' => 'sp-terisi', 'dipesan' => 'sp-dipesan', default => 'sp-nonaktif', }; $pillDot = match($slot->status) { 'tersedia' => '●', 'terisi' => '●', 'dipesan' => '●', default => '○', }; @endphp {{ $pillDot }} {{ ucfirst($slot->status) }} |
@if($slot->id_sensor)
{{ $slot->id_sensor }}
@else
—
@endif
|
|
|
| Tidak ada slot parkir yang ditemukan. | ||||||||
Menampilkan {{ $slots->firstItem() }}–{{ $slots->lastItem() }} dari {{ $slots->total() }} slot
@if($slots->onFirstPage())
←
@else
←
@endif
@foreach($slots->getUrlRange(1, $slots->lastPage()) as $page => $url)
@if(abs($page - $slots->currentPage()) <= 2 || $page === 1 || $page === $slots->lastPage())
{{ $page }}
@elseif(abs($page - $slots->currentPage()) === 3)
…
@endif
@endforeach
@if($slots->hasMorePages())
→
@else
→
@endif