@extends('app') @section('content') @if(Session::has('flash_message'))
{!! Session::get('flash_message') !!}
@endif @if($action=='Edit') {!! Breadcrumbs::render('admin.photoalbums.edit',$photoalbum) !!} @else {!! Breadcrumbs::render('admin.photoalbums.create') !!} @endif

Photo Albums - {{ $action }}

{{--

{{ $action }} Photo Album

--}}

Description

This is dummy text.This is dummy Text.This is dummy text.This is dummy text..This is dummy Text.This is dummy text.This is dummy text.

@if($errors->any())
@foreach($errors->all() as $error)

{{ $error }}

@endforeach
@endif {!! Form::model($photoalbum, ['method' => $photoalbum ? 'PATCH' : 'POST','route' => $photoalbum ? ['admin.photoalbums.update', $photoalbum->id] : 'admin.photoalbums.store','id'=>'form_photoalbums']) !!}
{{--
--}}
@if(count($photoalbum->images)!= 0 ) @if($photoalbum->type=='photoalbum') Publish in Gallery Save to Drafts @else Save @endif @else @if($photoalbum->type=='photoalbum') Publish in Gallery Save to Drafts @else Save @endif @endif
{!! Form::label('title', 'Title', ['class' => 'form-label']) !!}
{!! Form::text('title', null, ['class' => 'form-control','id'=>'photoalbum_title','maxlength' => 60,'required'=>'required']) !!}
{!! Form::label('published_at', 'Published Date', ['class' => 'form-label']) !!}
@if($photoalbum->type=='photoalbum') {!! Form::text('published_at', $photoalbum->published_at ? strftime("%d/%m/%Y",strtotime(str_replace("/","-",$photoalbum->published_at))) : strftime("%d/%m/%Y",strtotime(str_replace("/","-",$photoalbum->published_at))), ['class' => 'form-control','id'=>'published_at']) !!} @else {!! Form::text('published_at', $photoalbum->published_at ? strftime("%d/%m/%Y",strtotime(str_replace("/","-",$photoalbum->published_at))) : strftime("%d/%m/%Y",strtotime(str_replace("/","-",$photoalbum->published_at))), ['class' => 'form-control','id'=>'','readonly']) !!} @endif
{!! Form::label('published_at_time', 'Time', ['class' => 'form-label']) !!}
@if($photoalbum->type=='photoalbum') {!! Form::text('published_at_time', $photoalbum->published_at ? strftime("%H:%M",strtotime(str_replace("/","-",$photoalbum->published_at))) : strftime("%H:%M",strtotime(str_replace("/","-",$photoalbum->published_at))), ['class' => 'form-control','id'=>'publish_date_time_field']) !!} @else {!! Form::text('published_at_time', $photoalbum->published_at ? strftime("%H:%M",strtotime(str_replace("/","-",$photoalbum->published_at))) : strftime("%H:%M",strtotime(str_replace("/","-",$photoalbum->published_at))), ['class' => 'form-control','readonly']) !!} @endif
{!! Form::close() !!}
@if(Auth::user()->can('photoalbums-create')) Add Image @endif
@if(Auth::user()->can('photoalbums-destroy')) Delete @endif
# Image Caption Size Date User Actions
@if(count($photoalbum->images)!= 0 ) @if($photoalbum->type=='photoalbum') Publish in Gallery Save to Drafts @else Save @endif @else @if($photoalbum->type=='photoalbum') Publish in Gallery Save to Drafts @else Save @endif @endif
{!! Form::open([ 'method' => 'POST', 'class' => 'inline', 'id'=> 'bulkaction' ]) !!} {!! Form::close() !!} @endsection