44 lines
2.1 KiB
PHP
44 lines
2.1 KiB
PHP
@extends('themes.base.layout')
|
|
@section('title', trans('admin.create_group'))
|
|
|
|
@section('breadcrumb')
|
|
<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>
|
|
@endsection
|
|
|
|
@section('content')
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col">
|
|
<h1>@yield('title')</h1>
|
|
<p>@lang('admin.create_group_intro')</p>
|
|
<hr/>
|
|
|
|
<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') }}">
|
|
|
|
@if ($errors->has('name'))
|
|
<div class="form-control-feedback">
|
|
<strong>{{ $errors->first('name') }}</strong>
|
|
</div>
|
|
@endif
|
|
</div>
|
|
|
|
<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>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@endsection |