web-kursus2/resources/views/admin/bootcamp_category/edit.blade.php
2025-10-30 14:17:23 +07:00

15 lines
594 B
PHP

@php
$category = App\Models\BootcampCategory::where('id', $id)->first();
@endphp
<form action="{{ route('admin.bootcamp.category.update', $category->id) }}" method="post">@csrf
<div class="fpb7 mb-2">
<label class="form-label ol-form-label" for="title">{{ get_phrase('Title') }}</label>
<input class="form-control ol-form-control" type="text" id="title" name="title" value="{{ $category->title }}" required>
</div>
<div class="fpb7 mb-2">
<button type="submit" class="btn ol-btn-primary">{{ get_phrase('Update category') }}</button>
</div>
</form>