@extends('layout.admin') @section('styles') @endsection @section('content')

Package / Edit

{{csrf_field()}}
@if ($errors->has('title')) {{ $errors->first('title') }} @endif
@if ($errors->has('short_description')) {{ $errors->first('short_description') }} @endif
@if ($errors->has('star')) {{ $errors->first('star') }} @endif
@if ($errors->has('night')) {{ $errors->first('night') }} @endif
@error('hotel_id'){{ $message }}@enderror
banner_enable === 1 ? 'checked' : '' }}> banner_enable === 0 ? 'checked' : '' }}>
banner_quote_enable == 1 ? 'checked' : '' }}> banner_quote_enable == 0 ? 'checked' : '' }}>

Package Image

(Recommended Size 500KB And For perfect view please Upload size of image 955 * 533 ) @if($holiday_package->images && $holiday_package->images->count())
Existing Images:
@foreach($holiday_package->images as $image)
{{ $image->alt }} ×
@endforeach
@endif @if ($errors->has('banner_image')) {{ $errors->first('banner_image') }} @endif

Thumbnail Image

(Recommended size: 407 × 302 pixels, Max file size: 500KB) @if ($errors->has('image_url')) {{ $errors->first('image_url') }} @endif @if($holiday_package->image_url) city Image @else city Image @endif
@if ($errors->has('image_alt')) {{ $errors->first('image_alt') }} @endif
@if ($errors->has('image_title')) {{ $errors->first('image_title') }} @endif

Payment

@if ($errors->has('payment')) {{ $errors->first('payment') }} @endif

Page Listing

@if ($errors->has('page_heading')) {{ $errors->first('page_heading') }} @endif

Economy Price

@php $currentYear = now()->year; $years = range($currentYear, $currentYear + 2); $months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'June', 'July', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']; $prices = is_string($holiday_package->economy_price) ? json_decode($holiday_package->economy_price, true) : ($holiday_package->economy_price ?? []); @endphp
@foreach($years as $year)

@foreach($months as $month) @php $priceVal = $prices[$year][$month] ?? ''; // Fallback if ($priceVal === '' && $year > $currentYear) { $prevYear = $year - 1; $priceVal = $prices[$prevYear][$month] ?? ''; } @endphp
@endforeach
@endforeach

Business Price

@php $business_prices = is_string($holiday_package->business_price) ? json_decode($holiday_package->business_price, true) : ($holiday_package->business_price ?? []); @endphp
@foreach($years as $year)

@foreach($months as $month) @php $busPriceVal = $business_prices[$year][$month] ?? ''; // Fallback if ($busPriceVal === '' && $year > $currentYear) { $prevYear = $year - 1; $busPriceVal = $business_prices[$prevYear][$month] ?? ''; } @endphp
@endforeach
@endforeach

Inclusions

@if ($errors->has('inclusions')) {{ $errors->first('inclusions') }} @endif

Package Activities

@if($holiday_package->activities && $holiday_package->activities->count()) @foreach($holiday_package->activities as $index => $activity)
(Recommended size: 280 × 166 pixels, Max file size: 500KB) @if($activity->image)
@endif
@endforeach @endif

Add On's

@if($holiday_package->addons && $holiday_package->addons->count()) @foreach($holiday_package->addons as $index => $addon)
@if($addon->image) @endif
@endforeach @endif

Package Includes

hotel_enable == 1 ? 'checked' : '' }}> hotel_enable == 0 ? 'checked' : '' }}>
flight == 1 ? 'checked' : '' }}> flight == 0 ? 'checked' : '' }}>
visa == 1 ? 'checked' : '' }}> visa == 0 ? 'checked' : '' }}>
breakfast == 1 ? 'checked' : '' }}> breakfast == 0 ? 'checked' : '' }}>
transfer == 1 ? 'checked' : '' }}> transfer == 0 ? 'checked' : '' }}>

Navbar

navbar_enable == '1' ? 'checked' : '' }}> navbar_enable == '0' ? 'checked' : '' }}>

Widgets/Modules Content

@if ($errors->has('widgets_content')) {{ $errors->first('widgets_content') }} @endif

Seo Friendly Fields

seo_content_enable ?? '') == '1' ? 'checked' : '' }}> seo_content_enable ?? '') == '0' ? 'checked' : '' }}>
@if ($errors->has('page_url')) {{ $errors->first('page_url') }} @endif
@if ($errors->has('browser_title')) {{ $errors->first('browser_title') }} @endif
@if ($errors->has('meta_keywords')) {{ $errors->first('meta_keywords') }} @endif
@if ($errors->has('meta_description')) {{ $errors->first('meta_description') }} @endif
@if ($errors->has('script')) {{ $errors->first('script') }} @endif
@if ($holiday_package->status == 0) @else @endif
@endsection @section('script') @endsection