@extends('adminlte::page')
@section('content')
    <?php Fun::lang()?>
    <div class="top-header">
        <ol class="breadcrumb">
            <li><a href="#">{{__('administrator.Dashboard')}}</a></li>
            <li><a href="#">Category</a></li>
            <li class="active"><span>{{__('administrator.edit')}}</span></li>
        </ol>
    </div>
    <div class="page">
<div class=container-fluid>
        <div class="top-content">
            <div class="row">
                <div class="col-sm-12 col-xs-12">
                    <div class="title-add">
                        <div class="pull-left">
                            <h3>{{__('administrator.edit')}}</h3>
                        </div>

                    </div>
                </div>
            </div>
        </div>
        {!! Form::model($usergorup, ['method' => 'PATCH','route' => ['user-group.update', $usergorup->id]]) !!}
        <div class="row">

            <div class="col-sm-12">
                <div class="master-form">
                    <div class="title-note">
                        <h3><span class="fa fa-exclamation-triangle"></span>{{__('administrator.edit_lead_source')}}
                            <i>({{__('administrator.fields_in_red_are_required')}})</i></h3>


                        </div>
                    <div class="form-group col-sm-4 col-xs-12">
                        <div class="col-sm-5 col-xs-12 ">
                            <label class="required" for="name">Group Name </label>
                        </div>
                        <div class="col-sm-7 col-xs-12">
                            {!! Form::text('group_name', null, array('placeholder' => __('administrator.group_name'),'class' => 'form-control','required','rows'=>'4')) !!}
                        </div>
                    </div>

                    <div class="form-group col-sm-4 col-xs-12">
                        <div class="col-sm-5 col-xs-12 ">
                            <label class="" for="name">Note </label>
                        </div>
                        <div class="col-sm-7 col-xs-12">
                            {!! Form::text('note', null, array('placeholder' => __('administrator.note'),'class' => 'form-control','required','rows'=>'4')) !!}
                        </div>
                    </div>

                    <div class="form-group col-sm-4 col-xs-12">
                        <div class="col-sm-3 col-xs-12 ">
                            <label class="" for="name">Parent  </label>
                        </div>
                        <div class="col-sm-9 col-xs-12">
                            {!! Form::select('parent_id',$group,null, array('placeholder'=> __('administrator.please_select'),'class' => 'group form-control select2','')) !!}
                        </div>
                    </div>


                    <div class="col-sm-12 col-xs-12">
                        <div class="form-group footer-save">
                            <button type="submit" class="button_sm button_primary pull-right"><span class="fa fa-save"></span> {{__('administrator.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> {{__('administrator.back')}}</button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        {!! Form::close() !!}
    </div>
@endsection




