@extends('adminlte::page') @section('content')
<?php Fun::lang()?>
<div class="title-page">
    <div class="page-bar">
        <ul class="page-breadcrumb">
            <li><a href="#"><i class="fa fa-dashboard"></i> Dashboard</a></li>
            <li><a href="#">Operation</a></li>
            <li><a href="#">Manage Product</a></li>
            <li><a href="#">Category</a></li>
            <li><a href="#">Edit</a></li>
        </ul>
    </div>
</div>
    <div class="page">
    	<div class="top-content">
            <div class="row">
                <div class="col-sm-12 col-xs-12">
                    <div class="title-page">
                        <div class="pull-left">
                            <h3>Edit Category</h3>
                        </div>
                    </div>
                   
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-sm-12 col-xs-12">
                
                 <div class="form-wrapper">
                    {!! Form::model($category, ['method' => 'PATCH','route' => ['categories.update', $category->id]]) !!}
                    <div class="row">
                        <div class="form-group col-sm-6 col-xs-12">

                            <label class="required">Category Name</label>
                            {!! Form::text('category_name', null, array('placeholder' => 'Category Name','class' => 'form-control','required')) !!}

                        </div>
                        <div class="form-group col-sm-6 col-xs-12">

                            <label class="required">Category Code</label>
                            {!! Form::text('category_code', null, array('placeholder' => 'Category Code','class' => 'form-control','required')) !!}

                        </div>
                        <div class="col-sm-6">

                            <label>Description</label>
                            {!! Form::textarea('category_des', null, array('placeholder' => 'Description','class' => 'form-control','rows'=>'2')) !!}

                        </div>
                        <div class="col-sm-12 col-xs-12">
                            <div class="form-group">
                                <button type="submit" class="button_sm button_primary pull-right"><span class="fa fa-save"></span> Save</button>
                                <button type="button"  onClick="javascript:history.go(-1)" class="button_sm button_warning pull-right">
                                        <span class=" fa fa-arrow-circle-left"></span> Back</button>

                            </div>
                        </div>
                    </div>

                    {!! Form::close() !!}
                </div>
            </div>
        </div>
    </div>
    @endsection