2016-09-02 10:42:05 +01:00
|
|
|
@extends('themes.base.layout')
|
2016-09-01 17:31:16 +01:00
|
|
|
@section('title', 'Gallery Admin')
|
|
|
|
|
2016-09-09 15:06:34 +01:00
|
|
|
@section('breadcrumb')
|
|
|
|
<div class="breadcrumb">
|
|
|
|
<div class="container">
|
|
|
|
<ol class="breadcrumb">
|
2017-02-13 10:36:53 +00:00
|
|
|
<li><a href="{{ route('home') }}"><i class="fa fa-fw fa-home"></i></a></li>
|
2016-09-09 15:06:34 +01:00
|
|
|
<li><a href="{{ route('admin') }}">@lang('navigation.breadcrumb.admin')</a></li>
|
|
|
|
<li><a href="{{ route('albums.index') }}">@lang('navigation.breadcrumb.albums')</a></li>
|
|
|
|
<li><a href="{{ route('albums.show', ['id' => $album->id]) }}">{{ $album->name }}</a></li>
|
|
|
|
<li class="active">@lang('navigation.breadcrumb.edit_album')</li>
|
|
|
|
</ol>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endsection
|
|
|
|
|
2016-09-01 17:31:16 +01:00
|
|
|
@section('content')
|
|
|
|
<div class="container">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-xs-12">
|
2016-09-09 15:06:34 +01:00
|
|
|
<h1>@lang('admin.edit_album', ['album_name' => $album->name])</h1>
|
|
|
|
<p>@lang('admin.edit_album_intro')</p>
|
|
|
|
<p>@lang('admin.edit_album_intro2', ['album_name' => $album->name])</p>
|
2016-09-01 17:31:16 +01:00
|
|
|
<hr/>
|
|
|
|
|
|
|
|
{!! Form::model($album, ['route' => ['albums.update', $album->id], 'method' => 'PUT']) !!}
|
2016-10-28 14:05:53 +01:00
|
|
|
<div class="form-group{{ $errors->has('name') ? ' has-error' : '' }}">
|
2016-09-01 17:31:16 +01:00
|
|
|
{!! Form::label('name', trans('forms.name_label'), ['class' => 'control-label']) !!}
|
|
|
|
{!! Form::text('name', old('name'), ['class' => 'form-control']) !!}
|
2016-10-28 14:05:53 +01:00
|
|
|
|
|
|
|
@if ($errors->has('name'))
|
|
|
|
<span class="help-block">
|
|
|
|
<strong>{{ $errors->first('name') }}</strong>
|
|
|
|
</span>
|
|
|
|
@endif
|
2016-09-01 17:31:16 +01:00
|
|
|
</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">
|
|
|
|
<a href="{{ route('albums.show', ['id' => $album->id]) }}" class="btn btn-default">@lang('forms.cancel_action')</a>
|
2017-02-15 09:14:52 +00:00
|
|
|
<button type="submit" class="btn btn-success"><i class="fa fa-fw fa-check"></i> @lang('forms.save_action')</button>
|
2016-09-01 17:31:16 +01:00
|
|
|
</div>
|
|
|
|
{!! Form::close() !!}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endsection
|