@extends('layouts.main-layout') @section('title') {{ucwords($accommodation->AccommodationName)}} Details | Accommodations Management @endsection @section('content')

Accommodation Details

{{$accommodation->AccommodationName}}

Hotel Information

{{--
    --}}
    Accommodation Name: {{ucwords($accommodation->AccommodationName)}}
    @if($accommodationType = $accommodation->accommodationType)
    Accommodation Type: {{$accommodationType->AccommodationTypeName}}
    @else
    Accommodation Type: ----
    @endif
    Total Rooms: {{$accommodation->TotalRooms}}
    Group Reservation: {{$accommodation->GroupReservation ? 'allowed' : 'not allowed'}}
    Total Group Reservation Rooms: {{$accommodation->GroupReservationNoOfRooms ?: '----'}}
    Key Collection Type: {{$accommodation->KeyCollectionType ? 'allowed' : 'not allowed'}}
    Key Collection Type Comments: {{$accommodation->KeyCollectionTypeComments ?: '----'}}
    Pets: {{$accommodation->PetsAllowed ? 'allowed' : 'not allowed'}}
    Pets Comments: {{$accommodation->PetsAllowedComments ?: '----'}}
    @if($currency = $accommodation->currency)
    Currency Name: {{$currency->CurrencyName}}
    @else
    Currency Name: ----
    @endif @if($timezone = $accommodation->timezone)
    TimeZone: {{$timezone->TimeZoneName}}
    @else
    TimeZone: ----
    @endif @if($language = $accommodation->language)
    Language: {{$language->MultiLanguageName}}
    @else
    Language: ----
    @endif
    CheckIn From: {{$accommodation->CheckInTo}} --|-- CheckIn To: {{$accommodation->CheckInFrom}}
    CheckOut From: {{$accommodation->CheckOutFrom}} --|-- CheckOut To: {{$accommodation->CheckOutTo}}
    Cancellation: {{$accommodation->CancellationType ? 'allowed' : 'not allowed'}}
    Credit Card Comments: {{$accommodation->CreditCardComments ?: '----'}}
    PayPal: {{$accommodation->PayPal ? 'allowed' : 'not allowed'}}
    Virtual Card: {{$accommodation->VirtualCard ? 'allowed' : 'not allowed'}}
    @if($extraFeeType = $accommodation->extraFeeType)
    Extra Fee Type: {{$extraFeeType->ExtraFeeTypeName}}
    @else
    Extra Fee Type: ----
    @endif @if($extraFeeType)
    Extra Fee: {{$accommodation->ExtraFee ?: '----'}}
    @endif @if($pms = $accommodation->propertyManagementSystem)
    Property Management System: {{$pms->PropertyManagementSystemName}}
    @else
    Property Management System: ----
    @endif @if($emailConfirmationFormat = $accommodation->emailConfirmationFormat)
    Email Confirmation Format: {{$emailConfirmationFormat->EmailConfirmationFormatName}}
    @else
    Email Confirmation Format: ----
    @endif @if($bookingMedia = $accommodation->bookingMedia)
    Booking Media Type: {{$bookingMedia->BookingMediaName}}
    @if($bookingMedia->BookingMediaName == 'Email')
    Booking Media Email: {{$accommodation->BookingMediaEmail}}
    @elseif($bookingMedia->BookingMediaName == 'Fax')
    Booking Media Fax: {{$accommodation->BookingMediaFax}}
    @else
    Booking Media Email: {{$accommodation->BookingMediaEmail}}
    Booking Media Fax: {{$accommodation->BookingMediaFax}}
    @endif @else
    Booking Media Type: ----
    @endif
    Rating:     @if($accommodation->Rating) @for($i=0; $i<=4; $i++) @endfor @else

    ----

    @endif
    General Description: {{$accommodation->GeneralDescription}}
    Location Description: {{$accommodation->LocationDescription ?: '----'}}
    Transport Description: {{$accommodation->TransportDescription ?: '----'}}
    Nearest Tube: {{$accommodation->NearestTube ?: '----'}}
    Nearest Airport: {{$accommodation->NearestAirport ?: '----'}}
    Directions Property: {{$accommodation->DirectionsProperty ?: '----'}}
    Nearby Areas: {{$accommodation->NearByAreas ?: '----'}}
    How to get to the hotel: {{$accommodation->HowToGetToTheHotel ?: '----'}}
    Google Name: {{$accommodation->AccommodationNameGoogle ?: '----'}}
    Google Ads: {{$accommodation->GoogleAds ?: '----'}}

    Contact Details

    Email: {{$accommodation->Emaitrd}}
    Contact No: {{$accommodation->ContactNo ?: '----'}}
    Fax No: {{$accommodation->FaxNo ?: '----'}}
    Post Code: {{$accommodation->PostCode}}
    Website Name: {{$accommodation->Website ?: '----'}}
    Website URL: {{$accommodation->WebsiteURL ?: '----'}}
    Address: {{$accommodation->Address}}
    @isset($accommodation->city->region) Region: {{$accommodation->city->region->RegionName}} @else Region: ---- @endisset
    @isset($accommodation->city->country) Country: {{$accommodation->city->country->CountryName}} @else Country: ---- @endif
    @isset($accommodation->city) City: {{$accommodation->city->CityName}} @else City: ---- @endif
    @if($accommodation->images->count() && $images = $accommodation->images)

    Accommodation Images

    @foreach($images as $image)
    @endforeach
    @endif
    Accommodation Created By:
    {{$accommodation->owner->UserName}}, {{$accommodation->CreateDate->diffForHumans()}}
    {{--@hasAccess('Edit Accommodation') mode_editEdit @endhasAccess--}} @hasAccess('Delete Accommodation') Delete @component('components.confirm',[ 'modal' => 'delete-modal', 'id' => 'delete-form', 'title' => 'Accommodation' ]) @endcomponent
    @csrf @method('DELETE')
    @endhasAccess
@endsection