@extends('layouts.admin') @section('title', 'Chantiers') @section('content') {{-- Header --}}

Chantiers

{{ $projects->total() }} chantier(s)

@if($trashedCount > 0) Corbeille ({{ $trashedCount }}) @endif Nouveau chantier
{{-- Barre de recherche + filtres --}}
{{-- Recherche texte --}}
{{-- Filtre catégorie --}} {{-- Filtre statut --}} {{-- Bouton recherche --}} {{-- Reset --}} @if($search || !empty(array_filter($filters))) Réinitialiser @endif
{{-- Tableau --}}
@forelse($projects as $project) @empty @endforelse
Titre Statut Actions
{{ $project->title }}
/{{ $project->slug }} @if($project->location) {{ $project->location }} @endif
@if($project->is_published) Publié @else Brouillon @endif @if($project->is_featured) @else @endif
Modifier
@csrf @method('DELETE')

@if($search || !empty(array_filter($filters))) Aucun résultat pour ces critères. Voir tous les chantiers @else Aucun chantier. Créer le premier @endif

{{-- Pagination --}} @if($projects->hasPages())
{{ $projects->links() }}
@endif @endsection