{{-- resources/views/admin/trip-templates/edit.blade.php --}} @extends('admin.layouts.app') @section('title', 'Edit Trip Template - ' . $tripTemplate->title) @section('page-title', 'Edit Trip Template') @section('page-description', 'Update and refine your trip template to make it even more amazing.') @section('content')

Duration

{{ $tripTemplate->duration_days }}

Days

Base Price

${{ number_format($tripTemplate->base_price, 0) }}

USD

Activities

{{ $tripTemplate->activities->count() }}

Total

Status

{{ $tripTemplate->is_featured ? 'Featured' : 'Active' }}

Template

{{ $tripTemplate->title }}

Update your trip template details and settings

@csrf @method('PUT')

1
Basic Information

@error('destination_id')

{{ $message }}

@enderror
@error('title')

{{ $message }}

@enderror
@error('description')

{{ $message }}

@enderror

Maximum 2000 characters

2
Trip Details

@error('duration_days')

{{ $message }}

@enderror
$
@error('base_price')

{{ $message }}

@enderror
@error('difficulty_level')

{{ $message }}

@enderror
@error('trip_style')

{{ $message }}

@enderror

3
Trip Highlights

@php $highlights = old('highlights', $tripTemplate->highlights_array ?? []); if (empty($highlights)) { $highlights = ['']; } @endphp @foreach($highlights as $index => $highlight)
@endforeach
@error('highlights')

{{ $message }}

@enderror

Maximum 10 highlights, 500 characters each

@if($tripTemplate->featured_image)

4
Current Featured Image

{{ $tripTemplate->title }}
@endif

{{ $tripTemplate->featured_image ? '5' : '4' }}
{{ $tripTemplate->featured_image ? 'Replace Featured Image' : 'Featured Image' }}

or drag and drop

PNG, JPG, GIF up to 2MB

@if($tripTemplate->featured_image)

Leave empty to keep current image

@endif
@error('featured_image')

{{ $message }}

@enderror

{{ $tripTemplate->featured_image ? '6' : '5' }}
Template Options

is_featured) ? 'checked' : '' }}>

Featured templates are highlighted to users during trip selection and appear at the top of search results

Back to Template
@endsection