Old UniVate Website
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

resort.blade.php 7.9KB

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