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

Hotel / Edit

{{csrf_field()}}
@if ($errors->has('name')) {{ $errors->first('name') }} @endif
@if ($errors->has('city_id')) {{ $errors->first('city_id') }} @endif
@if ($errors->has('hotel_star')) {{ $errors->first('hotel_star') }} @endif
@if ($errors->has('rating')) {{ $errors->first('rating') }} @endif
@if ($errors->has('distance_from_masjid')) {{ $errors->first('distance_from_masjid') }} @endif
(Recommended Size 500KB And For perfect view please Upload size of image 536 × 302 ) @if($hotel->images && $hotel->images->count())
Existing Images:
@foreach($hotel->images as $image)
{{ $image->alt }} {{-- Delete Icon and Hidden Checkbox --}} × {{-- Alt Text --}} {{-- Title Text --}}
@endforeach
@endif @if ($errors->has('banner_image')) {{ $errors->first('banner_image') }} @endif
(Recommended size: Max 356 x 208 pixels, Max file size: 500KB) @if ($errors->has('thumbnail_image')) {{ $errors->first('thumbnail_image') }} @endif @if($hotel->thumbnail_image) 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
@if ($errors->has('description')) {{ $errors->first('description') }} @endif

Amenities

@if ($errors->has('amenitie_heading')) {{ $errors->first('amenitie_heading') }} @endif
@php $fixedAmenities = [ 'FREE WIFI', 'FRIDGE', 'ROOM SERVICE', 'CENTRAL AIR CONDITIONING', 'WHEEL CHAIR', 'TELEVISION', 'DOOR MAN', ]; $storedAmenities = $hotel->amenity ?? []; @endphp @foreach ($fixedAmenities as $amenity)
@php // Support both old format (array of strings) and new format (associative array with 0/1) $isChecked = false; if (isset($storedAmenities[$amenity])) { $isChecked = $storedAmenities[$amenity] == 1; } else { $isChecked = in_array($amenity, $storedAmenities); } @endphp
@endforeach

Nearby

@if ($errors->has('nearby_heading')) {{ $errors->first('nearby_heading') }} @endif
@php $nearbyList = $hotel->nearby ?? []; @endphp @foreach ($nearbyList as $nearby)
@endforeach @if (empty($nearbyList))
@endif

Resturants

@if ($errors->has('resturant_heading')) {{ $errors->first('resturant_heading') }} @endif
@php $restaurants = $hotel->resturant ?? []; @endphp @foreach ($restaurants as $resturant)
@endforeach @if (empty($restaurants))
@endif

Hotel Map

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

Seo Friendly Fields

@if ($errors->has('page_url')) {{ $errors->first('page_url') }} @endif
@if ($hotel->status == 0) @else @endif
@endsection @section('script') @endsection