<form action="{{route('admin.blog.category.update', ['id' => $category->id])}}" method="post"
    enctype="multipart/form-data" class="form-validate form">
    @csrf
    <div class="mb-2">
        <label for="title" class="form-label"> {{ __('category_title') }} <span class="text-danger">*</span> </label>
        <input type="text" class="form-control rounded-2" id="title" name="title" value="{{ $category->title }}"
            placeholder="{{ __('category_title') }}">
        <div class="nk-block-des text-danger">
            <p class="error">{{ $errors->first('title') }}</p>
        </div>
    </div>

    <div class="d-flex gap-12 align-items-center justify-content-between sandbox_mode_div mb-4">
        <input type="hidden" name="status" value="{{$category->status}}">
        <label class="form-label" for="status"> {{__('status')}} </label>
        <div class="setting-check">
            <input type="checkbox" value="1" {{$category->status == 1 ? 'checked' : ''}} id="status" class="sandbox_mode">
            <label for="status"></label>
        </div>
    </div>
    <button type="submit" class="btn sg-btn-primary">{{ __('submit') }}</button>
    @include('layouts.loading_button', ['class' => 'btn sg-btn-primary'])
</form>