{{-- Page Header --}}

Site Management & Access Control

Manage parking site locations, configure barrier access levels, and assign authorized site admins.

{{-- Flash Notification --}} @if (session()->has('success')) @endif @if (session()->has('error')) @endif {{-- Filters & Search Card --}}
{{-- Keyword Search --}}
{{-- Organization Filter --}} {{--
--}} {{-- Status Filter --}}
{{-- Parking Type Filter --}}
{{-- Reset Button --}}
{{-- Sites List Card --}}
Site Locations & Access Controls
Show:
@forelse ($sites as $site) {{-- Site Info --}} {{-- Authorized Site Admins --}} {{-- Configured Access Levels --}} {{-- Actions --}} @empty @endforelse
Site Information Authorized Site Admins Configured Access Levels Actions
{{ $site->site_name }} @if ($site->active_status === 'active') Active @else Inactive @endif
{{ $site->organization?->name ?? 'No Organization' }}
@if ($site->site_address || $site->state)
{{ $site->site_address ?: ($site->state ?: '-') }}
@endif
@php $assignedUsers = $site->users; @endphp @if ($assignedUsers->count() > 0)
@foreach ($assignedUsers->take(4) as $usr) {{ strtoupper(substr($usr->name, 0, 1)) }} {{ Str::limit($usr->name, 14) }} @endforeach @if ($assignedUsers->count() > 4) +{{ $assignedUsers->count() - 4 }} more @endif
@else
No dedicated admins assigned (Super Admin only)
@endif
@php $levels = is_array($site->access_levels) ? $site->access_levels : []; @endphp @if (!empty($levels))
@foreach ($levels as $lvl) @php $code = is_array($lvl) ? $lvl['code'] ?? '' : ''; $name = is_array($lvl) ? $lvl['name'] ?? '' : (string) $lvl; @endphp {{ $code ?: '01' }}: {{ $name }} @endforeach
{{ count($levels) }} custom barrier zones defined
@else
No custom levels defined (Default: All barrier gates)
@endif
{{-- Configure Access Levels Button (Matching Screenshot) --}} {{-- Quick Edit Site Button --}}
No Site Locations Found

No parking sites matched the search and filter criteria.

{{-- Pagination --}} @if ($sites->hasPages()) @endif
{{-- ============================================================ --}} {{-- MODAL 1: CONFIGURE SITE ACCESS LEVELS --}} {{-- ============================================================ --}} @if ($showLevelsModal) @endif {{-- ============================================================ --}} {{-- MODAL 2: MANAGE AUTHORIZED SITE ADMINS --}} {{-- ============================================================ --}} @if ($showAdminsModal) @endif {{-- ============================================================ --}} {{-- MODAL 3: EDIT SITE DETAILS --}} {{-- ============================================================ --}} @if ($showEditSiteModal) @endif