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

@section('content')
	<div class="row" ng-controller="AdminGroupCtrl" ng-cloak>
		<div class="col-sm-8">
			<div class="widget widget-classic">
				<div class="widget-content">
					<p class="lead">New Group</p>

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

						<!-- 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.store') !!}'"></span>
							<span ng-init="redirect_url = '{!! URL::route('admin.settings.groups.index') !!}'"></span>
							<button type="submit" class="btn btn-primary">Create</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