@extends('layouts.app') @section('title', 'Settings — Projects') @section('content')

Settings — Projects

Manage projects and their sub-locations.

{{-- Two-panel layout --}}
{{-- ── LEFT PANEL: Projects ── --}}

Projects {{ $projects->count() }}

{{-- Add Project form --}}
@csrf
@error('name')

{{ $message }}

@enderror
{{-- Projects list --}}
@forelse($projects as $project)
{{-- Display row --}}
{{ $project->name }} @if(!$project->is_active) Inactive @endif {{ $project->locations->count() }} loc.
@csrf @method('DELETE')
{{-- Edit inline form --}}
@csrf @method('PATCH')
@empty
No projects yet. Add one above.
@endforelse
{{-- ── RIGHT PANEL: Locations ── --}}
{{-- Placeholder when nothing selected --}}

Select a project to see its locations

{{-- Content shown after a project is selected --}}
{{-- Pre-load all project+location data as JSON for client-side rendering --}} @endsection