@section('header')
	@include('common.header')
@stop

@section('content')
	<div class="row" ng-controller="AdminGroupCtrl" ng-init="data = {{ $group }}">
		<div class="col-sm-8">
			<div class="widget widget-classic">
				<div class="widget-content">
					<p class="lead">Edit Group</p>

					<div class="alert alert-success" ng-if="success">
						<i class="fa fa-check-circle"></i> The group has been successfully updated.
					</div>

					<form class="form-horizontal form-edit" ng-submit="update()">

						<!-- Include form fields -->
						@include('admin::settings.groups.partials.form-fields')

						<div class="text-right form-actions">
							<span ng-init="post_url = '{!! URL::route('admin.settings.groups.update', $group->id) !!}'"></span>
							<button type="submit" class="btn btn-primary" ng-disabled="saving"><i class="fa fa-spinner fa-spin" ng-if="saving"></i> Save changes</button>
							<a href="{!! URL::route('admin.settings.groups.index') !!}" class="btn btn-default">Cancel</a>
						</div>
					</form>

				</div>
			</div>
		</div>
		<div class="col-sm-4">
			@include('admin::settings.groups.partials.info')
		</div>
	</div>
@stop