@extends('admin.layouts.master') @section('title', 'Edit Hotel Layout') @section('parent_title', 'Management') @section('content')
Exit / Cancel

Edit Hotel Property

@csrf @method('PUT')
@error('user_id')
{{ $message }}
@enderror
@error('hotel_name')
{{ $message }}
@enderror
@error('description')
{{ $message }}
@enderror
@error('state')
{{ $message }}
@enderror
@error('city')
{{ $message }}
@enderror
@error('address')
{{ $message }}
@enderror
@error('status')
{{ $message }}
@enderror
@if($hotel->cover_image && file_exists(public_path($hotel->cover_image)))
Hotel Primary Image
@endif Leave completely blank if you don't intend to modify current display cover banner photo. @error('cover_image')
{{ $message }}
@enderror
@if(!empty($hotel->gallery_images)) @php $galleryArr = is_array($hotel->gallery_images) ? $hotel->gallery_images : json_decode($hotel->gallery_images, true); @endphp @if(is_array($galleryArr) && count($galleryArr) > 0)
@foreach($galleryArr as $imagePath) @if(file_exists(public_path($imagePath))) Gallery Image Item @endif @endforeach
@endif @endif Uploading brand new assets stream files will safely append them into current database array matrix. @error('gallery_images.*')
{{ $message }}
@enderror
@php $savedAmenities = !empty($hotel->amenities) ? (is_array($hotel->amenities) ? $hotel->amenities : json_decode($hotel->amenities, true)) : []; if(!is_array($savedAmenities)) $savedAmenities = []; @endphp
Discard / Revert
@endsection @section('scripts') @endsection