blue-twilight/resources/views/themes/base/admin/create_group.blade.php

44 lines
2.1 KiB
PHP
Raw Normal View History

@extends(Theme::viewName('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 ml-md-auto mr-md-auto">
<div class="form-group">
<label class="form-control-label" for="group-name">@lang('forms.name_label')</label>
<input type="text" class="form-control{{ $errors->has('name') ? ' is-invalid' : '' }}" id="group-name" name="name" value="{{ old('name') }}">
@if ($errors->has('name'))
<div class="invalid-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