 @extends('layouts.main-layout')
 @section('content')
 <!-- Content Wrapper. Contains page content -->

 <div class="content-wrapper">
  <!-- Content Header (Page header) -->
  <section class="content-header">
    <div class="add_new">
     <ol class="breadcrumb">
      <li><a href="{{url('admin/dashboard')}}"><i class="fa fa-dashboard"></i> Home</a></li>
      <li><a href="{{url('admin-user/category')}}">Category</a></li>
      <li class="active">Edit</li>
    </ol>
  </div>

</section>

<!-- Main content -->
<section class="content">
  @if(Session::has('success'))
    <p class="alert {{ Session::get('alert-class', 'alert-info') }}">{{ Session::get('message') }}</p>
  @endif
  @if(Session::has('error'))
    <p class="alert {{ Session::get('alert-class', 'alert-info') }}">{{ Session::get('message') }}</p>
  @endif
  <div class="row">
    <div class="col-xs-12">
      <div class="box">
        <div class="box-header">
          <h3 class="box-title">Edit Category</h3>
        </div>

        <!-- /.box-header -->
        <div class="box-body">
          <form role="form" method="post" onsubmit="return validateForm('editsstatus')" class="editSstatus" action="{{url('admin-user/category/'.$detail->id)}}">
            @csrf
             {{ method_field('PATCH') }}
            <div class="box-body">
              <div class="row">
                   <div class="col-md-6">
                    <div class="form-group">
                      <label for="">Category Name<span class="require label-mandatory">*</span></label>
                      <input type="text" name="name" id="name" value="{{$detail->name}}" class="form-control input-mandatory" placeholder="Enter Video Name">
                    </div>
                    @error('name')
                      <div class="alert">{{ $message }}</div>
                    @enderror
                  </div>
                   
                  
                  <div class="col-md-12" style="text-align:center;">
                   <button type="submit" class="btn btn-main">Submit</button>
                   <span class="btn btn-default reset">Clear</span>
                   <a href="{{url('admin-user/category')}}" class="btn btn-default">Cancel</a>
                   </div>
                 </div>

             </div>
           </form>
         </div>
         <!-- /.box-body -->
       </div>
       <!-- /.box -->
     </div>
     <!-- /.col -->
   </div>
   <!-- /.row -->
 </section>
 <!-- /.content -->
</div>
<!-- /.content-wrapper -->

<!-- ./wrapper -->
@endsection