@extends('layouts.admin') @section('title', $post->exists ? 'Edit post' : 'New post') @section('actions')← Posts@if ($post->exists && $post->is_published)View ↗@endif @endsection @section('content')
@csrf @if ($post->exists) @method('PUT') @endif
@if ($post->exists)
@csrf @method('DELETE')
@endif @endsection