@extends('layouts.admin') @section('title', 'إدارة المواقف — دمشق باركينغ') @section('page-title', 'إدارة المواقف') @section('styles') @endsection @section('content') {{-- ── Header ──────────────────────────────────────────────────────────────── --}}

مواقف السيارات

{{ $parkingLots->total() }} موقف مسجّل في النظام

{{-- ── Search bar ───────────────────────────────────────────────────────────── --}}
@if(request('search')) نتائج البحث عن «{{ request('search') }}» @else عرض جميع المواقف @endif
@if(request('search')) @endif
{{-- ── Cards grid ───────────────────────────────────────────────────────────── --}} @php $gradients = [ 'linear-gradient(135deg,#667eea,#764ba2)', 'linear-gradient(135deg,#f093fb,#f5576c)', 'linear-gradient(135deg,#4facfe,#00f2fe)', 'linear-gradient(135deg,#43e97b,#38f9d7)', 'linear-gradient(135deg,#fa709a,#fee140)', 'linear-gradient(135deg,#a18cd1,#fbc2eb)', ]; @endphp @if($parkingLots->isEmpty())

لا توجد مواقف بعد

ابدأ بإضافة أول موقف سيارات

@else
@foreach($parkingLots as $lot) @php $grad = $gradients[$lot->id % count($gradients)]; @endphp
{{-- Image / Placeholder --}}
@if($lot->image) {{ $lot->name }} @else
@endif {{-- Status dot --}} {{-- Active bookings badge --}} @if(($lot->active_bookings_count ?? 0) > 0) {{ $lot->active_bookings_count }} نشط @endif
{{-- Card body --}}
{{ $lot->name }}

{{ $lot->address }}

{{ $lot->total_capacity }} مركبة {{ $lot->working_hours }} {{ number_format($lot->price_per_hour, 0) }} ر.س/س @if(!empty($lot->pricing_rules)) (مخصص) @endif
{{-- Actions --}}
@endforeach
{{-- Pagination --}} @if($parkingLots->hasPages())
عرض {{ $parkingLots->firstItem() }}–{{ $parkingLots->lastItem() }} من {{ $parkingLots->total() }} {{ $parkingLots->appends(request()->query())->links('pagination::bootstrap-5') }}
@endif @endif {{-- ── Add / Edit Modal ────────────────────────────────────────────────────── --}} {{-- ── Pricing Modal ──────────────────────────────────────────────────────── --}} @push('scripts') @endpush @endsection