@php $configData = Helper::appClasses(); $stats = $stats ?? ['total' => 0, 'active' => 0, 'inactive' => 0, 'restaurants' => 0]; @endphp @extends('layouts/layoutMaster') @section('title', 'Zonas') @section('vendor-style') @vite([ 'resources/assets/vendor/libs/datatables-bs5/datatables.bootstrap5.scss', 'resources/assets/vendor/libs/datatables-responsive-bs5/responsive.bootstrap5.scss', 'resources/assets/vendor/libs/datatables-buttons-bs5/buttons.bootstrap5.scss' ]) @endsection @section('vendor-script') @vite([ 'resources/assets/vendor/libs/datatables-bs5/datatables-bootstrap5.js' ]) @endsection @section('page-script') @endsection @section('content')
@if (session('success'))
{{ session('success') }}
@endif
Total

{{ $stats['total'] }}

Zonas registradas
Activas

{{ $stats['active'] }}

En operación
Inactivas

{{ $stats['inactive'] }}

Fuera de servicio
Restaurantes

{{ $stats['restaurants'] }}

En todas las zonas
Listado de zonas
Nueva zona
@foreach ($zones as $zone) @endforeach
Zona Ciudad Restaurantes Radio (km) Estado Acciones
{{ strtoupper(substr($zone->name, 0, 2)) }}
{{ $zone->name }} {{ $zone->city ?? '—' }}
{{ $zone->city ?? '-' }} {{ $zone->restaurants_count }} {{ $zone->radius_km ?? '-' }} {{ $zone->is_active ? 'Activa' : 'Inactiva' }}
@csrf @method('DELETE')
@endsection