@extends('admin.layouts.app') @section('title', 'Locations') @section('page_title', 'Locations') @section('content')

Content · Catalog

Locations

Manage location pages, SEO, and audit scores across states, cities, and towns.

@can('create', \Apex\Modules\Locations\Models\Location::class) + New location @endcan
@forelse ($items as $item) @php $score = $item->seoAudit?->score; $scoreClass = is_null($score) ? 'is-muted' : ($score >= 80 ? 'is-good' : ($score >= 60 ? 'is-mid' : 'is-low')); @endphp @empty @endforelse
Location Type Status SEO score Actions
{{ strtoupper(substr($item->name, 0, 1)) }}

{{ $item->displayLabel() }}

{{ parse_url($item->publicUrl(), PHP_URL_PATH) }}

{{ ucfirst($item->type) }} {{ $item->status === 'published' && $item->is_active ? 'Published' : ucfirst($item->status ?? 'draft') }} {{ is_null($score) ? '—' : $score.'/100' }}
@can('update', $item) Edit Audit @endcan @if($item->status === 'published' && $item->is_active && $item->type !== 'country') View @endif @can('delete', $item)
@csrf @method('DELETE')
@endcan
No locations yet. Create your first location page.
{{ $items->links() }}
@endsection