@extends('admin.layouts.app') @section('content')
@csrf

{{$row->id ? 'Edit: '.$row->name : __("Add new location")}}

@if($row->slug)

{{__("Permalink")}}: {{ url( (request()->query('lang') ? request()->query('lang').'/' : '').config('location.location_route_prefix')) }}/{{$row->slug}}

@endif
@if($row->slug) {{__("View")}} @endif
@include('admin.message') @if($row->id) @include('Language::admin.navigation') @endif

{{__("Location Content")}}

@include('Location::admin/form') @if(is_default_lang())
{!! \Modules\Media\Helpers\FileHelper::fieldUpload('banner_image_id',$row->banner_image_id) !!}
@endif
{{__('Image')}}
{{__("Title/Link")}}
{{__('Content')}}
@if(!empty($translation->trip_ideas)) @php if(!is_array($translation->trip_ideas)) $translation->trip_ideas = json_decode($translation->trip_ideas); @endphp @if(count($translation->trip_ideas)) @foreach($translation->trip_ideas as $key=>$trip_idea)
{!! \Modules\Media\Helpers\FileHelper::fieldUpload('trip_ideas['.$key.'][image_id]',$trip_idea['image_id']) !!}
@if(is_default_lang()) @endif
@endforeach @endif @endif
@if(is_default_lang()) {{__('Add item')}} @endif
{!! \Modules\Media\Helpers\FileHelper::fieldUpload('trip_ideas[__number__][image_id]','','__name__') !!}
@include('Core::admin/seo-meta/seo-meta')
{{__('Publish')}}
@if(is_default_lang())
@endif
@if(is_default_lang())
{{__('Feature Image')}}
{!! \Modules\Media\Helpers\FileHelper::fieldUpload('image_id',$row->image_id) !!}
@endif
@endsection @section ('script.body') {!! \App\Helpers\MapEngine::scripts() !!} @endsection