<form action="{{route('admin.category.update',['id'=>$category->id])}}" method="post" enctype="multipart/form-data" class="form-validate form">
    @csrf
    <div class="mb-2">
        <label for="video_type" class="form-label"> {{ __('type_title') }} <span
                class="text-danger">*</span> </label>
        <input type="text" class="form-control rounded-2" id="video_type" name="video_type"
            value="{{ $category->video_type }}" placeholder="{{ __('type_title') }}">
        <div class="nk-block-des text-danger">
            <p class="error">{{ $errors->first('video_type') }}</p>
        </div>
    </div>
    <div class="mb-4">
        <label for="video_type_desc" class="form-label"> {{ __('type_description') }} </label>
        <textarea name="video_type_desc" id="video_type_desc" cols="30" rows="4" class="form-control rounded-2"
            placeholder="{{ __('type_description') }}">{{ $category->video_type_desc }}</textarea>
        <div class="nk-block-des text-danger">
            <p class="error">{{ $errors->first('video_type_desc') }}</p>
        </div>
    </div>
    <div class="d-flex gap-12 align-items-center justify-content-between sandbox_mode_div mb-4">
        <input type="hidden" name="primary_menu" value="{{$category->primary_menu}}">
        <label class="form-label" for="primary_menu"> {{__('primary_menu')}} </label>
        <div class="setting-check">
            <input type="checkbox" value="1" id="primary_menu" {{$category->primary_menu == 1 ? 'checked':''}} class="sandbox_mode">
            <label for="primary_menu"></label>
        </div>
    </div>
    <div class="d-flex gap-12 align-items-center justify-content-between sandbox_mode_div mb-4">
        <input type="hidden" name="footer_menu" value="{{$category->footer_menu}}">
        <label class="form-label" for="footer_menu"> {{__('footer_menu')}} </label>
        <div class="setting-check">
            <input type="checkbox" value="1" id="footer_menu" {{$category->footer_menu == 1 ? 'checked':''}} class="sandbox_mode">
            <label for="footer_menu"></label>
        </div>
    </div>
    <button type="submit" class="btn sg-btn-primary">{{ __('submit') }}</button>
    @include('layouts.loading_button',['class' => 'btn sg-btn-primary'])
</form>