b2in/packages/flux-cms/components/resources/views/livewire/backend/blog-editor.blade.php
2025-10-20 17:50:35 +02:00

27 lines
1.3 KiB
PHP

<div>
<form wire:submit.prevent="save">
{{-- Post Title --}}
<div>
<label for="title" class="block text-sm font-medium text-gray-700">Title</label>
<input type="text" id="title" wire:model.defer="post.title" class="mt-1 block w-full rounded-md border-gray-300 shadow-sm">
</div>
{{-- Post Content --}}
<div class="mt-4">
<label for="content" class="block text-sm font-medium text-gray-700">Content</label>
<textarea id="content" wire:model.defer="post.content" rows="10" class="mt-1 block w-full rounded-md border-gray-300 shadow-sm"></textarea>
</div>
{{-- Tags --}}
<div class="mt-4">
<label for="tags" class="block text-sm font-medium text-gray-700">Tags (comma-separated)</label>
<input type="text" id="tags" wire:model.defer="tags" class="mt-1 block w-full rounded-md border-gray-300 shadow-sm" placeholder="laravel, php, cms">
</div>
<div class="mt-4">
<button type="submit" class="inline-flex items-center px-4 py-2 bg-blue-600 border border-transparent rounded-md font-semibold text-xs text-white uppercase tracking-widest hover:bg-blue-500 active:bg-blue-700">
Save Post
</button>
</div>
</form>
</div>