{{-- Parking List (RTL: renders on right side, but we put it second so it's on LEFT visually) --}}
{{-- Actually in RTL, order-1 = appears first = right side --}}
{{-- List should be on LEFT (order-2 = left in RTL), Map on RIGHT (order-1 = right in RTL) --}}
{{-- MAP --}}
{{-- LIST --}}
خريطة المواقف
--
المواقف المتاحة
{{ $lots->count() }} موقف
@forelse($lots as $lot)
@php
$avail = $lot['avail'];
$total = $lot['total'];
if ($avail === 0) {
$avCls = 'avail-full';
$avText = 'ممتلئ';
} elseif ($avail < $total * 0.2) {
$avCls = 'avail-limited';
$avText = $avail . ' محدود';
} else {
$avCls = 'avail-open';
$avText = $avail . ' متاح';
}
@endphp
@empty
{{ $lot['name'] }}
{{ $avText }}
{{ $lot['address'] }}
{{ $total }}
{{ number_format($lot['price']) }} ليرة سورية
{{ $lot['hours'] }}
لا توجد مواقف متاحة
@endforelse