@extends('admin.layout.master')
@section('main-content')
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
      <h1>
        Edit Category
        <small>All * field required</small>
      </h1>
      <ol class="breadcrumb">
        <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
        <li><a href="#">Forms</a></li>
        <li class="active">Advanced Elements</li>
      </ol>
    </section>

    <!-- Main content -->
    <section class="content">

      <!-- SELECT2 EXAMPLE -->
      <!-- form start -->
      <form name="editCategory" id="editCategory" method="post" action="/admin/category/{{ $category->id}}">
        @csrf
        @method('PUT')
      <div class="box box-primary">
        <!-- /.box-header -->
        <div class="box-body">
        	<!-- row start -->
      		<div class="row"> 
                <div class="col-xs-6">
                	
                	<div class="form-group">
                		<label for="category_name">Title <span class="text text-red">*</span></label>
                  		<input type="text" class="form-control" name="category_name" id="category_name" value="{{ $category->title }}">
                  	</div>

                  	<div class="form-group">
                		<label for="slug">Slug <span class="text text-red">*</span></label>
                  		<input type="text" class="form-control" name="slug" id="slug" value="{{ $category->slug }}">
                  	</div>
                  	<div class="form-group">
		                <label>Description</label>
		                <textarea class="form-control" name="descp" rows="5">
                      {{ $category->description }}
                    </textarea>
	                </div>
                </div>
                 
                
          	</div>

              <!-- row end -->

        </div>
        <!-- /.box-body -->
        <div class="box-footer">
            <button type="submit" class="btn btn-primary">Submit</button>
            <button type="submit" class="btn btn-danger">Cancel</button>
          </div>
      </div>
      <!-- /.box -->

      <!-- form end -->
    </form>
    </section>
    <!-- /.content -->
  </div>
@endsection