<div class="form-group col-lg-12">
    <label for="location">{{ meta('address', $local) ?? __('hotels.address') }}</label>
    <div class="d-flex justify-content-between align-items-center">
        <input type="text" name="address" id="location" class="form-control" placeholder="{{__('hotels.address') . __('hotels.choose_address_via_map')}}" value='{{ $hotel->address ?? "" }}'>
        <button style="font-size: 12px" type="button" class="butn small modal-btn mr-2" data-toggle="modal" data-target="#exampleModalCenter">
            <span>{{__('hotels.location')}}</span>
        </button>
        <input type="hidden" name="lat" value='{{ $hotel->lat ?? "" }}'>
        <input type="hidden" name="lng" value='{{ $hotel->lng ?? "" }}'>
    </div>
</div>

<div class="form-group col-lg-4">
    <label>{{ meta('email', $local) ?? __('hotels.email') }} </label>
    <input type="email" class="form-control" name="email" placeholder="{{ meta('email', $local) ?? __('hotels.email') }}" value='{{ $hotel->email ?? "" }}'/>
</div>
<div class="form-group col-lg-4">
    <label>{{ meta('status', $local) ?? __('hotels.status') }} </label>
    <select name="hall_status" class="form-control">
        {{--                <option value="">{{ meta('status', $local) ?? __('hotels.status') }}</option>--}}
        <option {{($hotel->status ?? null) == 1 ? 'selected': ''}} value="1">{{__('hotels.active')}}</option>
        <option {{($hotel->status?? null) == 0 ? 'selected': ''}} value="0">{{__('hotels.non_active')}}</option>
    </select>
</div>

<div class="card p-3 mb-3 col-lg-12">
    <label>{{ meta('added_service', $local) ??  __('hotels.added_service') }} </label>
    <div class="row card-body">
        @if(count($added_service))
            @foreach($added_service as $value => $service)
                <div class="col-md-4">
                    <div class="custom-control custom-checkbox mb-2">
                        <input data-price=".added_service_price_{{$value}}" type="checkbox" {{ in_array($value, $hotel['added_service'] ?? []) ? 'checked' : '' }} value="{{ $value }}" class="custom-control-input" id="{{ $value }}" name="added_service[]">
                        <label class="custom-control-label" for="{{ $value }}"> {{$service}}</label>
                    </div>
                    <input readonly type="number" min="1" name="added_service_price[{{$value}}]" class="form-control added_service_price_{{$value}}" placeholder="{{ meta('added_service_price', $local) ??  __('hotels.added_service_price') }}" value="{{$hotel['added_service_price'][$loop->index]}}">
                </div>
            @endforeach
        @endif
    </div>
</div>
<div class="card p-3 mb-3 col-lg-12">
    <label>{{ meta('room_type', $local) ??  __('hotels.room_type') }} </label>
    <div class="row card-body">
        @if(count($room_type))
            @foreach($room_type as $value => $type)
                <div class="col-md-3">
                    <div class="custom-control custom-checkbox mb-2">
                        <input data-price=".room_type_price_{{$value}}" type="checkbox" {{ in_array($value, $hotel['room_type'] ?? []) ? 'checked' : '' }} value="{{ $value }}" class="custom-control-input" id="room_type_{{ $value }}" name="room_type[]">
                        <label class="custom-control-label" for="room_type_{{ $value }}"> {{$type}}</label>
                    </div>
                    <input readonly type="number" min="1" name="room_type_price[{{$value}}]" class="form-control room_type_price_{{$value}}" placeholder="{{ meta('room_type_price', $local) ??  __('hotels.room_type_price') }}" value="{{$hotel['room_type_price'][$loop->index]}}">
                </div>
            @endforeach
        @endif
    </div>
</div>
