42 lines
1.7 KiB
PHP
42 lines
1.7 KiB
PHP
@extends('layouts.app')
|
|
@section('title', 'Gallery Admin')
|
|
|
|
@section('content')
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-xs-12">
|
|
<h1>@lang('admin.create_album')</h1>
|
|
<p>@lang('admin.create_album_intro')</p>
|
|
<p>@lang('admin.create_album_intro2')</p>
|
|
<hr/>
|
|
|
|
@if (count($errors) > 0)
|
|
<div class="alert alert-danger">
|
|
<ul>
|
|
@foreach ($errors->all() as $error)
|
|
<li>{{ $error }}</li>
|
|
@endforeach
|
|
</ul>
|
|
</div>
|
|
@endif
|
|
|
|
{!! Form::open(['route' => 'albums.store', 'method' => 'POST']) !!}
|
|
<div class="form-group">
|
|
{!! Form::label('name', trans('forms.name_label'), ['class' => 'control-label']) !!}
|
|
{!! Form::text('name', old('name'), ['class' => 'form-control']) !!}
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
{!! Form::label('description', trans('forms.description_label'), ['class' => 'control-label']) !!}
|
|
{!! Form::textarea('description', old('description'), ['class' => 'form-control']) !!}
|
|
</div>
|
|
|
|
<div class="form-actions">
|
|
{!! Form::submit(trans('forms.create_action'), ['class' => 'btn btn-success']) !!}
|
|
<a href="{{ route('admin') }}" class="btn btn-default">@lang('forms.cancel_action')</a>
|
|
</div>
|
|
{!! Form::close() !!}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@endsection |