Old UniVate Website
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

agency-timeshares.blade.php 7.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. @extends('master')
  2. @section('title', 'Resort' )
  3. @section('description'){{ $resort->meta_Description }}@stop
  4. @section('keywords'){{ $resort->meta_Keywords }}@stop
  5. @section('content')
  6. <div class="container-fluid">
  7. <div class="row">
  8. <div class="col-md-7 offset-md-1">
  9. <h1 style="text-align: -webkit-right;" class="my-4"><span data-resort="{{ $resort->resort }}">{{ $resort->resort }}</h1>
  10. </div>
  11. </div>
  12. <div class="row">
  13. <div class="col-md-3 pl-3 pl-md-5 sidebar">
  14. @include('partials.sidebar')
  15. </div>
  16. <div class="col-md-9 offset-md-0">
  17. <div class="row">
  18. <div class="col-md-12">
  19. <div class="row">
  20. </div>
  21. @if($timeshares->isNotEmpty())
  22. <table style="font-size: 12px;" class="table table-bordered table-hover table-striped">
  23. <thead>
  24. <tr>
  25. <th><span>Unit</span></th>
  26. <th><span>Week</span></th>
  27. <th><span>Module</span></th>
  28. <th><span>Bedrooms</span></th>
  29. <th><span>Season</span></th>
  30. <th><span>Arrival</span></th>
  31. <th><span>Departure</span></th>
  32. <th><span>Price inc VAT</span></th>
  33. <th><span>Status</span></th>
  34. <th><span>Interested?</span></th>
  35. </tr>
  36. </thead>
  37. <tbody>
  38. @if($timeshares)
  39. @foreach($timeshares as $timeshare)
  40. <tr>
  41. <td><span data-unit="{{ $timeshare->unit }}">{{ $timeshare->unit }}</span></td>
  42. <td><span data-week="{{ $timeshare->week }}">{{ $timeshare->week }}</span></td>
  43. <td><span data-module="{{ $timeshare->module }}">{{ $timeshare->module }}</span></td>
  44. <td><span data-bedrooms="{{ $timeshare->bedrooms }}">{{ $timeshare->bedrooms }}</span></td>
  45. <td><span data-season="{{ $timeshare->season }}">{{ $timeshare->season }}</span></td>
  46. @if($timeshare->fromDate==NULL)
  47. <td> - </td>
  48. @else
  49. <td>{{ \Carbon\Carbon::parse($timeshare->fromDate)->format('jS F Y') }}</td>
  50. @endif
  51. @if($timeshare->toDate==NULL)
  52. <td> - </td>
  53. @else
  54. <td><span data-season="">{{ \Carbon\Carbon::parse($timeshare->toDate)->format('jS F Y') }}</span></td>
  55. @endif
  56. <td><span data-setPrice="{{ $timeshare->setPrice }}">R{{ number_format($timeshare->setPrice, 2) }}</span></td>
  57. <td><span data-status="{{ $timeshare->status }}">{{ $timeshare->status }}</span></td>
  58. <td><a href="/timeshare-enquiry/{{ $timeshare->id }}" ><i class="fa fa-flag" aria-hidden="true"></i> Yes</a></td>
  59. </tr>
  60. @endforeach
  61. </tbody>
  62. </table>
  63. <?php echo $timeshares->links(); ?>
  64. @else
  65. <p>No timeshare weeks available currently.</p>
  66. @endif
  67. @endif
  68. </div>
  69. <div class="col-md-12 mb-4">
  70. <a class="btn btn-blue" href="/to-buy">Back to Regions</a>
  71. </div>
  72. </div>
  73. <div class="row mb-4">
  74. @if($resort->image1)
  75. <div class="col-md-4">
  76. <img class="img-fluid" src="{{ $resort->image1 }}" alt="Resort Image" />
  77. </div>
  78. @endif
  79. @if($resort->image2)
  80. <div class="col-md-4">
  81. <img class="img-fluid" src="{{ $resort->image2 }}" alt="Resort Image" />
  82. </div>
  83. @endif
  84. @if($resort->image3)
  85. <div class="col-md-4">
  86. <img class="img-fluid" src="{{ $resort->image3 }}" alt="Resort Image" />
  87. </div>
  88. @endif
  89. </div>
  90. <div class="row my-4">
  91. <div class="col-md-12">
  92. <p>{!! $resort->information !!}</p>
  93. @if($resort->url!=NULL)
  94. <p class="mb-0"><a href="http://{{ $resort->url }}" target="_blank">{{ $resort->url }}</a></p>
  95. @endif
  96. </div>
  97. </div>
  98. <div class="row mb-5">
  99. @if($resort->advisor!=NULL)
  100. <div class="col-md-3 mb-4 mb-md-0">
  101. <a href="{{ $resort->advisor }}" target="_blank">
  102. <img class="img-fluid" src="/images/awards/2018_COE_Logos_white-bkg_translations_en-US-UK.JPG" alt="Awards" />
  103. </a>
  104. </div>
  105. @endif
  106. @foreach($awards as $award)
  107. <div class="col-md-3 mb-4 mb-md-0">
  108. @if($award=='Gold Crown')
  109. <img class="img-fluid" src="/images/awards/2011-Gold-Crown-Logo.png" alt="Awards" />
  110. @endif
  111. @if($award=='RCI Hospitality')
  112. @if($resort->advisor!=NULL)
  113. <img class="img-fluid" src="/images/awards/RCI_hospitality.jpg" alt="Awards" />
  114. @else
  115. <img class="img-fluid" src="/images/awards/RCI_hospitality.jpg" alt="Awards" />
  116. @endif
  117. @endif
  118. @if($award=='Silver Crown')
  119. <img class="img-fluid" src="/images/awards/2011 Silver Crown Logo.png" alt="Awards" />
  120. @endif
  121. </div>
  122. @endforeach
  123. </div>
  124. <div class="row">
  125. <div class="col-md-12 mb-4">
  126. <ul class="nav nav-tabs" id="myTab" role="tablist">
  127. <li class="nav-item">
  128. <a class="nav-link active" id="directions-tab" data-toggle="tab" href="#directions" role="tab" aria-controls="directions" aria-selected="false">Directions</a>
  129. </li>
  130. <li class="nav-item">
  131. <a class="nav-link" id="resort-layout-tab" data-toggle="tab" href="#resort-layout" role="tab" aria-controls="resort-layout" aria-selected="true">Resort Lay-Out</a>
  132. </li>
  133. </ul>
  134. <div class="tab-content" id="myTabContent">
  135. <div class="tab-pane fade show active" id="directions" role="tabpanel" aria-labelledby="directions-tab">
  136. <iframe src="{{ $resort->map }}" width="100%" height="350" frameborder="0" style="border:0" allowfullscreen></iframe>
  137. </div>
  138. <div class="tab-pane fade" id="resort-layout" role="tabpanel" aria-labelledby="resort-layout-tab">
  139. <img class="img-fluid" src="{{ $resort->layout }}" alt="Resort Layout" />
  140. <p class="mt-3"><a href="{{ $resort->layout }}" target="_blank">Download Resort Lay-Out</a></p>
  141. </div>
  142. </div>
  143. </div>
  144. </div>
  145. </div>
  146. </div>
  147. </div>
  148. <!-- interested -->
  149. @if(isset($timeshare))
  150. @include('partials.interested')
  151. @endif
  152. @stop