@extends('backend.layouts.layout-2') @if($edit) @section('page-title', trans('app.edit_albums')) @section('page-heading', trans('app.edit_albums')) @else @section('page-title', trans('app.add_albums')) @section('page-heading', trans('app.add_albums')) @endif @section('styles') @parent @endsection @section('scripts') @parent @endsection @section('content') @if($edit) {!! Form::open(['route' => ['albums.update',$album->id], 'method' => 'PUT','files' => true, 'id' => 'page-form']) !!} @else {!! Form::open(['route' => 'albums.store', 'files' => true, 'id' => 'page-form']) !!} @endif
@lang('app.album_details')
{!! Form::text('name',$edit ? $album->name : old('name'),['class' => 'form-control','placeholder' => trans('app.title')]) !!}
{!! Form::date('album_date',$edit ? $album->album_date : old('album_date'),['class' => 'form-control','placeholder' => trans('app.album_date')]) !!} {{-- --}}
@if($edit)
@endif
{!! $edit ? $album->description : old('description') !!}
{!! Form::close() !!} @if($edit) @include('backend.admin.albums.dropzone') @endif @stop