<form class="g-3 row auto-width subCategory" action="{{route('content-sub-category.update',$SubCategory->id)}}" method="POST" enctype='multipart/form-data'>
  <!-- For validation comment on -->
  @csrf
  @method('PUT')
  <div class="col-md-12 col-sm-12">
    <div class="g-3 row">
      <div class="col-md-12">
        <label>Category Name<span class="text-danger">*</span></label>
        <select class=" form-control" name="category_id">
          <option value=" ">--Select--</option>
          @foreach($Category as $cate)
          @if($SubCategory->category_id==$cate->id)
          <option value="{{$cate->id}}" selected>{{$cate->name}}</option>
          @else
          <option value="{{$cate->id}}">{{$cate->name}}</option>
          @endif
          @endforeach
        </select>
      </div>
      <div class="col-md-12">
        <label>Sub Category Name<span class="text-danger">*</span></label>
        <input type="text" class="form-control" placeholder="Sub Category Name" aria-label="Sub Category Name" name="sub_category_name" value="{{$SubCategory->sub_category_name}}">
      </div>
      <div class="col-md-12">
        <label>Prority</label>
        <input type="text" class="form-control" placeholder="Prority" aria-label="priority_status" name="priority_status" value="{{$SubCategory->priority_status}}">
      </div>
    </div>
  </div>
  </div>
</form>
