@extends('admin.layout.layout') @section('content')

{{ $post ? 'Edit post' : 'Add post' }}

@if ($message = Session::get('success')) @endif @if (Session::has('error')) @endif
@csrf @if ($post) @method('PUT') @endif
@error('title')
{{ $message }}
@enderror