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

35 lines
1.1 KiB
PHP
Raw Permalink Normal View History

2024-08-09 13:52:23 +02:00
<x-layout-dashboard>
2024-08-09 11:32:31 +02:00
2024-08-11 11:53:49 +02:00
<form class="col c w-30" method="post" action="/edit">
2024-08-09 11:32:31 +02:00
@csrf
2024-08-11 11:53:49 +02:00
<x-input type="hidden" value="{{ $id ?? 0 }}">id</x-input>
<x-input class="w-30" value="{{ $title ?? '' }}">title</x-input>
<x-input class="w-30" pattern="[A-Za-z0-9-]+"
2024-08-09 11:32:31 +02:00
value="{{ $slug ?? '' }}"
2024-08-11 11:53:49 +02:00
required>slug</x-input>
<x-input type="textarea" class="w-30"
value="{{ $body ?? '' }}"
>body</x-input>
<x-input class="w-30" pattern="[A-Za-z0-9-]+"
value="{{ $category ?? '' }}">category</x-input>
<x-input type="checkbox" pattern="[A-Za-z0-9-]+"
value="{{ $is_collection ?? '' }}">is_collection</x-input>
<x-input class="w-30" pattern="[A-Za-z0-9-]+"
value="{{ $tag_1 ?? '' }}">tag_1</x-input>
<x-input class="w-30" pattern="[A-Za-z0-9-]+"
value="{{ $tag_2 ?? '' }}">tag_2</x-input>
<x-input class="w-30" pattern="[A-Za-z0-9-]+"
value="{{ $tag_3 ?? '' }}">tag_3</x-input>
<x-input class="w-30" pattern="[A-Za-z0-9-]+"
value="{{ $tag_4 ?? '' }}">tag_4</x-input>
<x-input class="w-30" pattern="[A-Za-z0-9-]+"
value="{{ $tag_5 ?? '' }}">tag_5</x-input>
2024-08-09 11:32:31 +02:00
<button type="submit">Save</button>
</form>
2024-08-09 13:52:23 +02:00
</x-layout-dashboard>