Advertisement
Guest User

Untitled

a guest
Apr 25th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 4.14 KB | None | 0 0
  1. @layout('layouts/base')
  2. <?php
  3.     $bigHeader = true;
  4.     $bigBanners = false;
  5.     $isBookingPanel = false;
  6.     $isRoomPage = true;
  7. ?>
  8. @section('body')
  9.  
  10. <section class="big-section big-section--details offer">
  11.     <div class="inner-container">
  12.         <div class="col-left-big generic-content">
  13.             <h1>
  14.                 <span class="bordered-title">
  15.                     {{$room->RoomName}}
  16.                 </span>
  17.             </h1>
  18.  
  19.             @include('parts.breadcrumbs')
  20.  
  21.             @if($page->content->header)
  22.             <div class="intro">
  23.                 {{$page->content->header}}
  24.             </div>
  25.             @endif
  26.  
  27.             @if($room->RoomDescription)
  28.             {{$room->RoomDescription}}
  29.             @endif
  30.  
  31.             <?php
  32.                 $rooms = \Profitroom\Booking\Models\Room::all()->get();
  33.                 $i = false;
  34.                 foreach($rooms as $i=>$ro){
  35.                     if($ro->RoomID == $room->RoomID){
  36.                         $key = $i;
  37.                     }
  38.                 }
  39.                 if(isset($rooms[$key-1])) {
  40.                     $prev_room = $rooms[$key-1];
  41.                 }else{
  42.                     $prev_room = $rooms[count($rooms)-1];
  43.                 }
  44.  
  45.                 if(isset($rooms[$key+1])){
  46.                     $next_room = $rooms[$key+1];
  47.                 }else{
  48.                     $next_room = $rooms[0];
  49.                 }
  50.             ?>
  51.  
  52.             @if ($room->facilities)
  53.  
  54.             <div class="facilities-hld">
  55.                 <h3>{{ __('cms.room_facilities') }}:</h3>
  56.                 <ul class="facilities-hld--rooms">
  57.                     @foreach($room->facilities as $i=>$facility)
  58.                         <li class="facility" title="{{ e($facility->FacilityName}})">{{ $facility->FacilityName }}</li>
  59.                     @endforeach
  60.                 </ul>
  61.             </div>
  62.  
  63.             @endif
  64.  
  65.             @if(sizeof($rooms)>1)
  66.             <!-- <div class="row buttons">
  67.                 <a href="{{$prev_room->link('room_details') }}" class="left offer-button">{{ __('cms.prev') }}</a>
  68.                 <a href="{{$next_room->link('room_details') }}" class="right offer-button">{{ __('cms.next') }}</a>
  69.             </div>-->
  70.             @endif
  71.  
  72.         </div>
  73.         <div class="col-right-small">
  74.  
  75.             @if($room->MinPrice && $room->MinPrice->MinPrice)
  76.             <div class="booknow-block">
  77.                 @if($room->MinPrice && $room->MinPrice->MinPrice)
  78.                 <div class="price-box">
  79.                     <div class="price">
  80.                         {{ __('cms.from2') }} {{ CMS::FormatPrice($room->MinPrice->MinPrice, 0, 'zł') }}
  81.                    
  82.                     @if($room->MinPrice->RateDesc)
  83.                     <span class="price__ratedesc">{{$room->MinPrice->RateDesc}}</span>
  84.                     @endif
  85.                 </div>
  86.  
  87.                 </div>
  88.                 @endif
  89.  
  90.                 <a href="javascript:void(0);" class="button" onclick="Booking.Open({RoomID: {{$room->RoomID}}});">{{ __('cms.book_online2') }}</a>
  91.             </div>
  92.             @endif
  93.  
  94.             @if($room->gallery != null && $room->gallery->images)
  95.             <div class="content-gallery">
  96.                 <h3 class="gallery-title">{{ __('cms.gallery') }}</h3>
  97.                 @foreach($room->gallery->images as $i=>$image)
  98.                     <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 }}">
  99.                         <img src="{{$image->image(150, 150)}}" width="150" height="150" alt="{{$room->title ? e($room->title) : $page->title }}">
  100.                     </a>
  101.                 @endforeach
  102.             </div>
  103.             @elseif($page->content->gallery != null && $page->content->gallery->images)
  104.                 <div class="content-gallery">
  105.                     <h3 class="gallery-title">{{ __('cms.gallery') }}</h3>
  106.                     @foreach($page->content->gallery->images as $i=>$image)
  107.                         <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 }}">
  108.                             <img src="{{$image->image(150, 150)}}" width="150" height="150" alt="{{$page->content->title ? e($room->title) : $page->title }}">
  109.                         </a>
  110.                     @endforeach
  111.                 </div>
  112.             @endif
  113.         </div>
  114.     </div>
  115. </section>
  116.  
  117. <section id="news_offers">
  118.     <div class="inner-container">
  119.  
  120.         <div class="col-left-small">
  121.             {{ CMS::render('cms::news@listing', array(), array('View' => 'cms.news.homenews', 'Limit' => 3)) }}
  122.         </div>
  123.  
  124.         <div class="col-right-big">
  125.  
  126.             @include('booking.offers.listing_all')
  127.  
  128.         </div>
  129.  
  130.     </div>
  131. </section>
  132.  
  133. @endsection
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement