52 lines
2.4 KiB
PHP
52 lines
2.4 KiB
PHP
@extends('themes.base.layout')
|
|
@section('title', 'Gallery Admin')
|
|
|
|
@section('breadcrumb')
|
|
<div class="breadcrumb">
|
|
<div class="container">
|
|
<ol class="breadcrumb">
|
|
<li><a href="{{ route('home') }}"><i class="fa fa-fw fa-home"></i></a></li>
|
|
<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
|
|
|
|
@section('content')
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-xs-12">
|
|
<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>
|
|
<hr/>
|
|
|
|
{!! Form::model($album, ['route' => ['albums.update', $album->id], 'method' => 'PUT']) !!}
|
|
<div class="form-group{{ $errors->has('name') ? ' has-error' : '' }}">
|
|
{!! Form::label('name', trans('forms.name_label'), ['class' => 'control-label']) !!}
|
|
{!! Form::text('name', old('name'), ['class' => 'form-control']) !!}
|
|
|
|
@if ($errors->has('name'))
|
|
<span class="help-block">
|
|
<strong>{{ $errors->first('name') }}</strong>
|
|
</span>
|
|
@endif
|
|
</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>
|
|
{!! Form::submit(trans('forms.save_action'), ['class' => 'btn btn-success']) !!}
|
|
</div>
|
|
{!! Form::close() !!}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@endsection |