{{-- resources/views/admin/destinations/edit.blade.php --}} {{-- Edit destination: Category + Country + Short + Long description --}} {{-- Controller: Admin\DestinationController@edit / @update --}} @extends('layouts.admin') @section('title', 'Edit Destination') @section('page_title', 'Edit Destination') @section('page_css') @endsection @section('content') {{-- Destination Name --}} Destination Name * @error('name') {{ $message }} @enderror {{-- Category --}} Category Select Category @foreach($categories as $cat) category_id) == $cat->id ? 'selected' : '' }}> {{ $cat->name }} @endforeach @error('category_id') {{ $message }} @enderror {{-- Country --}} Country * Select Country @foreach($countries as $country) country_id) == $country->id ? 'selected' : '' }}> {{ $country->name }} ({{ strtoupper($country->code ?? '') }}) @endforeach @error('country_id') {{ $message }} @enderror {{-- Short Description --}} Short Description (max 300 chars — shown in cards/listings) @error('short_description') {{ $message }} @enderror {{-- Long Description --}} Long Description (full detail — shown on destination page) {{ old('long_description', $destination->long_description) }} @error('long_description') {{ $message }} @enderror {{-- Toggles --}} Popular Destination is_popular) ? 'checked' : '' }}> Status (Active) status) === 'active' ? 'checked' : '' }}> {{-- Image Upload with current preview --}} {{-- Actions --}} Update Destination Cancel @endsection @section('page_js') @endsection