@extends('layouts.app') @section('content')
@if(session()->has('status'))
{{ session('status') }}
@endif @if($hotels->count() > 0) @foreach($hotels as $hotel)
@if($hotel->priceRegulation() === 'empty')

{{ $hotel->name }}

@elseif($hotel->priceRegulation() === true)

{{ $hotel->name }}

@else

{{ $hotel->name }}

@endif
{{ $hotel->location }}

@endforeach @else

0 hotels found.

@endif @if(isset($term)) {{ $hotels->appends(['term' => $term])->links() }} @else {{ $hotels->appends(['location' => $location])->links() }} @endif
@endsection