@extends("la.layouts.app")

@section("contentheader_title")
	<a href="{{ url(config('laraadmin.adminRoute') . '/catã©gories') }}">CatÃ©gory</a> :
@endsection
@section("contentheader_description", $catã©gory->$view_col)
@section("section", "CatÃ©gories")
@section("section_url", url(config('laraadmin.adminRoute') . '/catã©gories'))
@section("sub_section", "Edit")

@section("htmlheader_title", "CatÃ©gories Edit : ".$catã©gory->$view_col)

@section("main-content")

@if (count($errors) > 0)
    <div class="alert alert-danger">
        <ul>
            @foreach ($errors->all() as $error)
                <li>{{ $error }}</li>
            @endforeach
        </ul>
    </div>
@endif

<div class="box">
	<div class="box-header">
		
	</div>
	<div class="box-body">
		<div class="row">
			<div class="col-md-8 col-md-offset-2">
				{!! Form::model($catã©gory, ['route' => [config('laraadmin.adminRoute') . '.catã©gories.update', $catã©gory->id ], 'method'=>'PUT', 'id' => 'catã©gory-edit-form']) !!}
					@la_form($module)
					
					{{--
					@la_input($module, 'title')
					@la_input($module, 'logo')
					--}}
                    <br>
					<div class="form-group">
						{!! Form::submit( 'Update', ['class'=>'btn btn-success']) !!} <button class="btn btn-default pull-right"><a href="{{ url(config('laraadmin.adminRoute') . '/catã©gories') }}">Cancel</a></button>
					</div>
				{!! Form::close() !!}
			</div>
		</div>
	</div>
</div>

@endsection

@push('scripts')
<script>
$(function () {
	$("#catã©gory-edit-form").validate({
		
	});
});
</script>
@endpush
