Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @layout('layouts/base')
- <?php
- $bigHeader = true;
- $bigBanners = false;
- $isBookingPanel = false;
- $isRoomPage = true;
- ?>
- @section('body')
- <section class="big-section big-section--details offer">
- <div class="inner-container">
- <div class="col-left-big generic-content">
- <h1>
- <span class="bordered-title">
- {{$room->RoomName}}
- </span>
- </h1>
- @include('parts.breadcrumbs')
- @if($page->content->header)
- <div class="intro">
- {{$page->content->header}}
- </div>
- @endif
- @if($room->RoomDescription)
- {{$room->RoomDescription}}
- @endif
- <?php
- $rooms = \Profitroom\Booking\Models\Room::all()->get();
- $i = false;
- foreach($rooms as $i=>$ro){
- if($ro->RoomID == $room->RoomID){
- $key = $i;
- }
- }
- if(isset($rooms[$key-1])) {
- $prev_room = $rooms[$key-1];
- }else{
- $prev_room = $rooms[count($rooms)-1];
- }
- if(isset($rooms[$key+1])){
- $next_room = $rooms[$key+1];
- }else{
- $next_room = $rooms[0];
- }
- ?>
- @if ($room->facilities)
- <div class="facilities-hld">
- <h3>{{ __('cms.room_facilities') }}:</h3>
- <ul class="facilities-hld--rooms">
- @foreach($room->facilities as $i=>$facility)
- <li class="facility" title="{{ e($facility->FacilityName}})">{{ $facility->FacilityName }}</li>
- @endforeach
- </ul>
- </div>
- @endif
- @if(sizeof($rooms)>1)
- <!-- <div class="row buttons">
- <a href="{{$prev_room->link('room_details') }}" class="left offer-button">{{ __('cms.prev') }}</a>
- <a href="{{$next_room->link('room_details') }}" class="right offer-button">{{ __('cms.next') }}</a>
- </div>-->
- @endif
- </div>
- <div class="col-right-small">
- @if($room->MinPrice && $room->MinPrice->MinPrice)
- <div class="booknow-block">
- @if($room->MinPrice && $room->MinPrice->MinPrice)
- <div class="price-box">
- <div class="price">
- {{ __('cms.from2') }} {{ CMS::FormatPrice($room->MinPrice->MinPrice, 0, 'zł') }}
- @if($room->MinPrice->RateDesc)
- <span class="price__ratedesc">{{$room->MinPrice->RateDesc}}</span>
- @endif
- </div>
- </div>
- @endif
- <a href="javascript:void(0);" class="button" onclick="Booking.Open({RoomID: {{$room->RoomID}}});">{{ __('cms.book_online2') }}</a>
- </div>
- @endif
- @if($room->gallery != null && $room->gallery->images)
- <div class="content-gallery">
- <h3 class="gallery-title">{{ __('cms.gallery') }}</h3>
- @foreach($room->gallery->images as $i=>$image)
- <a data-fancybox-group="content-gallery" href="{{$image->image(800, 600)}}" class="img fancybox imgLiquid {{($i%3 != 0 && ($i+1)%3 == 0 ) ? 'last' : ''}}" title="{{$room->title ? e($room->title) : $page->title }}">
- <img src="{{$image->image(150, 150)}}" width="150" height="150" alt="{{$room->title ? e($room->title) : $page->title }}">
- </a>
- @endforeach
- </div>
- @elseif($page->content->gallery != null && $page->content->gallery->images)
- <div class="content-gallery">
- <h3 class="gallery-title">{{ __('cms.gallery') }}</h3>
- @foreach($page->content->gallery->images as $i=>$image)
- <a data-fancybox-group="content-gallery" href="{{$image->image(800, 600)}}" class="img fancybox imgLiquid {{($i%3 != 0 && ($i+1)%3 == 0 ) ? 'last' : ''}}" title="{{$page->content->title ? e($room->title) : $page->title }}">
- <img src="{{$image->image(150, 150)}}" width="150" height="150" alt="{{$page->content->title ? e($room->title) : $page->title }}">
- </a>
- @endforeach
- </div>
- @endif
- </div>
- </div>
- </section>
- <section id="news_offers">
- <div class="inner-container">
- <div class="col-left-small">
- {{ CMS::render('cms::news@listing', array(), array('View' => 'cms.news.homenews', 'Limit' => 3)) }}
- </div>
- <div class="col-right-big">
- @include('booking.offers.listing_all')
- </div>
- </div>
- </section>
- @endsection
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement