dym-sh/resources/views/article.blade.php

22 lines
316 B
PHP
Raw Permalink Normal View History

2024-08-09 10:37:35 +02:00
<x-layout>
<main class="article">
<h1>{{ $title ?? $slug }}</h1>
<section>
{{ $body }}
</section>
</main>
@auth
<form class="col c" method="post" name="delete_form" action="/delete/{{ $slug }}">
@csrf
<a href="/edit/{{ $slug }}">Edit</a>
<button type="submit">Delete</button>
</form>
@endauth
</x-layout>