@extends('layouts.admin') @section('title', 'Modifier l\'article') @section('content')

Modifier l'article

@if($post->is_published) Voir l'article @endif Retour à la liste
@if($errors->any())
@endif
@csrf @method('PUT')

Résumé court de l'article (optionnel)

Optimisation SEO

Publication

is_published) ? 'checked' : '' }} class="h-4 w-4 text-blue-600 focus:ring-blue-500 border-gray-300 rounded">
@if($post->published_at)

Publié le {{ $post->published_at->format('d/m/Y à H:i') }}

@endif

Image mise en avant

@if($post->featured_image)
Image actuelle

Image actuelle

@endif

JPG, PNG, GIF (max 2MB) - Laisser vide pour conserver l'image actuelle

Catégories

@foreach($categories as $category)
id, old('categories', $post->categories->pluck('id')->toArray())) ? 'checked' : '' }} class="h-4 w-4 text-blue-600 focus:ring-blue-500 border-gray-300 rounded">
@endforeach
@if($categories->isEmpty())

Aucune catégorie disponible. Créer une catégorie

@endif
Annuler
@endsection