{{-- resources/views/admin/destinations/edit.blade.php --}} @extends('admin.layouts.app') @section('title', 'Edit Destination - ' . $destination->name) @section('page-title', 'Edit Destination') @section('content')
Edit Destination: {{ $destination->name }}
@csrf @method('PUT')
@error('name')

{{ $message }}

@enderror
@error('country')

{{ $message }}

@enderror
@error('city')

{{ $message }}

@enderror
@error('description')

{{ $message }}

@enderror

Maximum 1000 characters

@if($destination->getRawOriginal('image_url'))
{{ $destination->name }}

Current destination image

@if(str_starts_with($destination->getRawOriginal('image_url'), 'image')) Seeded Image @else Uploaded Image @endif
@else

No image currently set for this destination.

@endif
@error('image')

{{ $message }}

@enderror

{{ $destination->image_url ? 'Leave empty to keep current image. ' : '' }} Supported formats: JPEG, PNG, JPG, GIF. Maximum size: 2MB.

Destination Statistics
Trip Templates: {{ $destination->tripTemplates->count() }}
Created: {{ format_admin_date($destination->created_at) }}
@if($destination->getRawOriginal('image_url'))
Image File:
{{ basename($destination->getRawOriginal('image_url')) }}
@if(str_starts_with($destination->getRawOriginal('image_url'), 'image')) Seeded @else Uploaded @endif
@endif
Last Updated: {{ format_admin_date($destination->updated_at) }}
@if($destination->tripTemplates->count() > 0) @endif
@if($destination->image_url && $destination->tripTemplates->count() > 0)

Note:

This destination has {{ $destination->tripTemplates->count() }} associated trip template(s). Changing the image will affect how this destination appears in those templates.

@endif
@endsection @push('scripts') @endpush