2017-02-13 12:08:16 +00:00
|
|
|
@extends('themes.base.layout')
|
|
|
|
@section('title', trans('admin.create_group'))
|
|
|
|
|
|
|
|
@section('breadcrumb')
|
2017-03-25 21:21:22 +00:00
|
|
|
<li class="breadcrumb-item"><a href="{{ route('home') }}"><i class="fa fa-fw fa-home"></i></a></li>
|
|
|
|
<li class="breadcrumb-item"><a href="{{ route('admin') }}">@lang('navigation.breadcrumb.admin')</a></li>
|
|
|
|
<li class="breadcrumb-item"><a href="{{ route('groups.index') }}">@lang('navigation.breadcrumb.groups')</a></li>
|
|
|
|
<li class="breadcrumb-item active">@lang('navigation.breadcrumb.create_group')</li>
|
2017-02-13 12:08:16 +00:00
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section('content')
|
|
|
|
<div class="container">
|
|
|
|
<div class="row">
|
2017-03-25 21:21:22 +00:00
|
|
|
<div class="col">
|
2017-02-13 12:08:16 +00:00
|
|
|
<h1>@yield('title')</h1>
|
|
|
|
<p>@lang('admin.create_group_intro')</p>
|
|
|
|
<hr/>
|
|
|
|
|
2017-03-25 21:21:22 +00:00
|
|
|
<form action="{{ route('groups.store') }}" method="post">
|
|
|
|
{{ csrf_field() }}
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-6 offset-md-3">
|
|
|
|
<div class="form-group{{ $errors->has('name') ? ' has-danger' : '' }}">
|
|
|
|
<label class="form-control-label" for="group-name">@lang('forms.name_label')</label>
|
|
|
|
<input type="text" class="form-control" id="group-name" name="name" value="{{ old('name') }}">
|
2017-02-13 12:08:16 +00:00
|
|
|
|
2017-03-25 21:21:22 +00:00
|
|
|
@if ($errors->has('name'))
|
|
|
|
<div class="form-control-feedback">
|
|
|
|
<strong>{{ $errors->first('name') }}</strong>
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
</div>
|
2017-02-13 12:08:16 +00:00
|
|
|
|
2017-03-25 21:21:22 +00:00
|
|
|
<div class="text-right">
|
|
|
|
<a href="{{ route('groups.index') }}" class="btn btn-link">@lang('forms.cancel_action')</a>
|
|
|
|
<button class="btn btn-success" type="submit"><i class="fa fa-fw fa-check"></i> @lang('forms.create_action')</button>
|
|
|
|
</div>
|
2017-02-13 12:08:16 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2017-03-25 21:21:22 +00:00
|
|
|
</form>
|
2017-02-13 12:08:16 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endsection
|