@extends('app') @section('content') @if(Session::has('flash_message'))
{!! Session::get('flash_message') !!}
@endif

الالبومات - {{$action=='Edit' ? 'تحرير' : 'أضافة'}}

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

{{ $error }}

@endforeach
@endif {!! Form::model($photoalbum, ['method' => $photoalbum ? 'PATCH' : 'POST','route' => $photoalbum ? ['photoalbums.update', $photoalbum->id] : 'photoalbums.store','id'=>'form_photoalbums']) !!}
{{--
--}}
@if(count($photoalbum->images)!= 0 ) @if($photoalbum->type=='photoalbum') انشر في معرض الصور حفظ في المسودة @else حفظ @endif @else @if($photoalbum->type=='photoalbum') انشر في معرض الصور حفظ في المسودة @else حفظ @endif @endif
{!! Form::text('title', null, ['class' => 'form-control', 'id'=>'photoalbum_title']) !!} 60@lang('helpers.char_count_text')
{!! Form::label('title', 'إسم الألبوم', ['class' => 'form-label','style'=>'margin-top: 5px;']) !!}
@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','required'=>true]) !!} @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
@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','required'=>true]) !!} @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', 'تاريخ النشر', ['class' => 'form-label','style'=>'margin-top: 5px;']) !!}
{!! Form::close() !!}
@if(Auth::user()->hasPermission('photoalbums-destroy')) حذف @endif
@if(Auth::user()->hasPermission('photoalbums-create')) اضافة صورة @endif
# الصور معلومات الصورة الحجم التاريخ إرسلت من
@if(count($photoalbum->images)!= 0 ) @if($photoalbum->type=='photoalbum') انشر في معرض الصور حفظ في المسودة @else حفظ @endif @else @if($photoalbum->type=='photoalbum') انشر في معرض الصور حفظ في المسودة @else حفظ @endif @endif
{!! Form::open([ 'method' => 'POST', 'class' => 'inline', 'id'=> 'bulkaction' ]) !!} {!! Form::close() !!} @endsection