@extends("admin.admin_app") @section("content") @php $prefix = session('prefix') ?? 'admin'; $hotelId = $hotels->id ?? null; @endphp

{{ isset($hotels->id) ? 'Edit Hotel' : 'Add Hotel' }} Go Back

@if (count($errors) > 0)
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif @if(Session::has('flash_message'))
{{ Session::get('flash_message') }}
@endif {!! Form::open(array('url' => array('admin/hotels/addhotel'),'class'=>'form-horizontal padding-15','name'=>'category_form','id'=>'category_form','role'=>'form','enctype' => 'multipart/form-data')) !!}

Hotel Info

usertype=='Editor') value="{{ Auth::user()->hotel }}" readonly @else value="{{ isset($hotels->hotel_name) ? $hotels->hotel_name : '' }}" @endif class="form-control" placeholder="Search or Add Hotel">
      @if(!empty($catArr)) @foreach($catArr as $catVal)
      {{ $catVal['cat'] }} ×
      @endforeach @endif
        @if(!empty($eCatArr)) @foreach($eCatArr as $catVal)
        {{ $catVal['cat'] }} ×
        @endforeach @endif
          @if(!empty($localAreaArr)) @foreach($localAreaArr as $locVal)
          {{ $locVal['local_area'] }} ×
          @endforeach @endif
            @if(!empty($mCatArr)) @foreach($mCatArr as $catVal)
            {{ $catVal['cat'] }} ×
            @endforeach @endif
              @if(!empty($mbCatArr)) @foreach($mbCatArr as $catVal)
              {{ $catVal['cat'] }} ×
              @endforeach @endif
                @if(!empty($langArr)) @foreach($langArr as $catVal)
                {{ $catVal['cat'] }} ×
                @endforeach @endif

                Hotel Facilities

                  @if(!empty($leisurFaciArr)) @foreach($leisurFaciArr as $lesureFaci)
                  {{ $lesureFaci['leisurFacility'] }} ×
                  @endforeach @endif
                    @if(!empty($inhouseActArr)) @foreach($inhouseActArr as $inHouseVal)
                    {{ $inHouseVal['inhouseActvity'] }} ×
                    @endforeach @endif
                      @if(!empty($outSideActArr)) @foreach($outSideActArr as $outSideValu)
                      {{ $outSideValu['outSideActvity'] }} ×
                      @endforeach @endif
                      @php // ================================ // VALIDATION: Check if section should show // ================================ $raw = $hotels->valet_parking ?? ''; $valet_parking_valid = false; if (is_string($raw) && trim($raw) !== '' && trim($raw) !== 'null' && trim($raw) !== '[null]') { $valet_parking_valid = true; } if (is_array(json_decode($raw, true))) { $valet_parking_valid = true; } // ================================ // PARSE SELECTED VALUES // Possible inputs: // "Not Chargeable,Chargeable" // ["Not Chargeable","Chargeable"] // ["6,28"] // "6,28" // ================================ $selectedValues = []; if (is_string($raw) && str_starts_with(trim($raw), '[')) { $json = json_decode($raw, true) ?? []; // Case: ["Not Chargeable","Chargeable"] if (is_array($json)) { foreach ($json as $item) { if (str_contains($item, ',')) { $selectedValues = array_merge($selectedValues, array_map('trim', explode(',', $item))); } else { $selectedValues[] = trim($item); } } } } else { // CSV Case: "Not Chargeable,Chargeable" $selectedValues = array_filter(array_map('trim', explode(',', $raw))); } @endphp
                        @foreach($valetParkingArr as $i)
                        {{ $i['valetParkingVal'] }} ×
                        @endforeach
                          @if(!empty($creditCardArr)) @foreach($creditCardArr as $credCardVal)
                          {{ $credCardVal['creditCardVal'] }} ×
                          @endforeach @endif
                          {{-- Yes/No Dropdown --}} {{-- Toggle Section --}}
                          {{-- Hidden Select for JS --}} {{-- Search + Selected Chips UI --}}
                            {{-- Selected Chips --}} @if(!empty($debitCardArr)) @foreach($debitCardArr as $debitCardVal)
                            {{ $debitCardVal['debitCardVal'] }} ×
                            @endforeach @endif
                            +
                            @if(isset($hotels->other_service_hotel) && !empty($hotels->other_service_hotel)) @php $otherService = json_decode($hotels->other_service_hotel, true); @endphp @foreach($otherService['name'] as $key => $parentId) @php $subList = \App\HotelFacilityAmenities::where('type_id', $parentId)->get(); @endphp
                            @endforeach @else
                            @endif

                            Restaurants And Bars Info

                            +
                            @if(isset($restaurantBar->bar['name'])) @foreach($restaurantBar->bar['name'] as $key => $barName)
                              @if(!empty($catArr)) @foreach($catArr as $catVal)
                              {{ $catVal['cat'] }} ×
                              @endforeach @endif
                              @endforeach @else
                                @if(!empty($catArr)) @foreach($catArr as $catVal)
                                {{ $catVal['cat'] }} ×
                                @endforeach @endif
                                @endif
                                +
                                @if(isset($restaurantBar->restaurants['name'])) @foreach($restaurantBar->restaurants['name'] as $key => $resName)
                                  @if(!empty($catArr)) @foreach($catArr as $catVal)
                                  {{ $catVal['cat'] }} ×
                                  @endforeach @endif
                                  @endforeach @else
                                    @endif
                                    +
                                    @if(isset($restaurantBar->restro_bar['name'])) @foreach($restaurantBar->restro_bar['name'] as $key => $restroName)
                                      @if(!empty($catArr)) @foreach($catArr as $catVal)
                                      {{ $catVal['cat'] }} ×
                                      @endforeach @endif
                                      @endforeach @else
                                        @endif
                                        +
                                        @if(isset($restaurantBar->cafeteriaDining['name'])) @foreach($restaurantBar->cafeteriaDining['name'] as $key => $catDinName)
                                        @php $savedCuisines = $restaurantBar->cafeteriaDining['cuisine'][$key] ?? old('cateringDining.cuisine.'.$key); $savedCuisinesArr = explode(',', $savedCuisines); $CatDinArr = []; @endphp
                                          @if(!empty($CatDinArr)) @foreach($CatDinArr as $catVal)
                                          {{ $catVal['cat'] }} ×
                                          @endforeach @endif
                                          @endforeach @else
                                            @endif

                                            Access Hotel

                                            @php $airport_valid = hasValidData($hotels->hotelairport ?? null); @endphp
                                            +
                                            @php $railway_valid = hasValidData($hotels->hotelrailway ?? null); @endphp
                                            +
                                            @php $busstand_valid = hasValidData($hotels->hotelbusstand ?? null); $initialCount = count($hotels->busStands ?? []); @endphp
                                            +
                                            @if (isset($hotels->hotelbusstand) && !empty($hotels->busStands)) @foreach($hotels->busStands as $key => $bus)
                                            X
                                            @endforeach @endif
                                            @php $metro_valid = hasValidData($hotels->hotelmetro ?? null); @endphp
                                            +
                                            @php $ferry_valid = hasValidData($hotels->hotelferryterminal ?? null); @endphp
                                            +
                                            @php $exhibit_valid = hasValidData($hotels->hotelexhibition ?? null); @endphp
                                            +
                                            @php $hospital_valid = hasValidData($hotels->hotelhospital ?? null); @endphp
                                            +
                                            @php $police_valid = hasValidData($hotels->hotelpolice ?? null); @endphp
                                            +
                                              Facility Provided by Hotel Outsourced Facility
                                            AUDIO-VISUAL EQUIPMENT
                                            PROJECTOR
                                            VIDEO CONFERENCING
                                            WIRELESS OR WIRED INTERNET ACCESS
                                            PHOTOCOPYING SERVICE
                                            FACSIMILE
                                            CURRENCY EXCHANGE
                                            DJ
                                            FLOWER DECORATION
                                            TENT SERVICE
                                            DECORATIVE LIGHTS
                                            PHOTOGRAPHY
                                            VIDEOGRAPHY
                                            INSIDE CATERING
                                            OUTSIDE CATERING
                                            CAR RENTAL
                                            LAUNDRY SERVICE
                                            WHEELCHAIRS
                                            ELEVATORS
                                            DOCTOR ON CALL
                                            BABYSITTER ON CALL
                                            +
                                            @if(!empty($HallFacilty->other_service['name'][0]) && isset($HallFacilty->getAmentity)) @foreach($HallFacilty->getAmentity as $key => $otherServ)
                                            @endforeach @else {{-- Default blank row --}}
                                            @endif

                                            Hotel Action


                                            ADDITIONAL CONTACT DETAILS

                                            Name Designation (City) Contact Email
                                            +
                                            Cancel
                                            {!! Form::close() !!}
                                            @endsection