{{ !empty($interest) ? 'Edit Interest' : 'Add Interest' }}
Back
{{ Form::text('title', old('title'), ['class' => 'form-control','placeholder' => 'Title']) }}
@if($errors->has('title'))
{{ $errors->first('title') }}
@endif
{{ Form::text('ip', old('ip'), ['class' => 'form-control','placeholder' => 'IP Address']) }}
@if($errors->has('ip'))
{{ $errors->first('ip') }}
@endif
{{ Form::select('status', [1 => 'Active', 0 => 'Inactive'], old("status"), ['class' => 'form-control']) }}
{{ Form::textarea('info_description', old('info_description'), ['class' => 'form-control ','placeholder' => 'Information Description', 'rows' => 8]) }}
@if($errors->has('info_description'))
{{ $errors->first('info_description') }}
@endif
{{ Form::textarea('description', old('description'), ['class' => 'form-control ','placeholder' => 'Description/History', 'rows' => 8]) }}
@if($errors->has('description'))
{{ $errors->first('description') }}
@endif
{{ Form::textarea('fdescription', old('fdescription'), ['class' => 'form-control ','placeholder' => 'Whats on Description', 'rows' => 8]) }}
{{ $errors->first('fdescription ') }}
@if($errors->has('description'))
@endif
@if($errors->has('interest_images'))
@endif
@php
$inc = 0;
@endphp
@if(isset($interest->interest_images) || old('interest_images'))
@php
$interest_images = old('interest_images') ? old('interest_images') : $interest->interest_images;
//dump($interest_images);die;
@endphp
@foreach ($interest_images as $key => $limage)
@php
if(!is_object($limage))
$limage = (object) $limage;
$idc = !empty($limage->id) ? $limage->id : $inc;
@endphp
@php
$inc = 0;
@endphp
@if(isset($interest->interest_images) || old('interest_images'))
@php
$interest_images = old('interest_images') ? old('interest_images') : $interest->interest_images;
@endphp
@foreach ($interest_images as $key => $limage)
@php
if(!is_object($limage))
$limage = (object) $limage;
$idc = !empty($limage->id) ? $limage->id : $inc;
@endphp
- {{ $errors->first('interest_images') }}
Festival Images
@if (old('interest_images.'.$key.'.image'))
@php
$filename = old('interest_images.'.$key.'.image');
if(old('interest_images.'.$key.'.id'))
$filepath = '/storage/interest/';
else
$filepath = "/storage/temp/";
@endphp
@else
@php
$filename = isset($limage->image) ? $limage->image : "";
$filepath = '/storage/interest/';
@endphp
@endif
@if(!empty($filename) && file_exists( public_path() . $filepath . $filename))
@php $imageurl=\App\Helpers\MenuHelpers::imageUrl(url($filepath. $filename),'274','180','100') @endphp
![]() |
{{-- {{ Form::text('interest_images['.$inc.'][caption]',old('interest_images.'. $inc .'.caption')?old('interest_images.'. $inc .'.caption'):$limage->caption,['class'=>'form-control']) }} | --}}@if(!empty($limage->id)) Remove @else Remove @endif | |
Please Select Images and Upload |
Local Stories Images
@if (old('interest_images.'.$key.'.image'))
@php
$filename = old('interest_images.'.$key.'.image');
if(old('interest_images.'.$key.'.id'))
$filepath = '/storage/interest/';
else
$filepath = "/storage/temp/";
@endphp
@else
@php
$filename = isset($limage->image) ? $limage->image : "";
$filepath = '/storage/interest/';
@endphp
@endif
@if(!empty($filename) && file_exists( public_path() . $filepath . $filename))
@php $imageurl=\App\Helpers\MenuHelpers::imageUrl(url($filepath. $filename),'274','180','100') @endphp
![]() |
{{-- {{ Form::text('interest_images['.$inc.'][caption]',old('interest_images.'. $inc .'.caption')?old('interest_images.'. $inc .'.caption'):$limage->caption,['class'=>'form-control']) }} | --}}@if(!empty($limage->id)) Remove @else Remove @endif | |
Please Select Images and Upload |