Old UniVate Website
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

to-buy-results.blade.php 10KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  1. @extends('master')
  2. @section('title', 'Resort' )
  3. @section('description')@stop
  4. @section('keywords')@stop
  5. @section('content')
  6. <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
  7. <div class="container-fluid">
  8. <div class="row">
  9. <div class="col-md-7 offset-md-1">
  10. <h1 style="text-align: -webkit-right;" class="my-4">Timeshares to buy</h1>
  11. </div>
  12. </div>
  13. <div class="row">
  14. <div class="col-md-3 pl-3 pl-md-5 sidebar">
  15. @include('partials.filter2')
  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. <table style="font-size: 12px;" class="table table-bordered table-hover table-striped">
  23. <thead>
  24. <tr>
  25. <th>Resort</th>
  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><a href="/resort"><a href="/resort/{{ $timeshare->resort }}">{{ $timeshare->resort }}</a></td>
  43. <td><span data-unit="{{ $timeshare->unit }}">{{ $timeshare->unit }}</span></td>
  44. <td><span data-week="{{ $timeshare->week }}">{{ $timeshare->week }}</span></td>
  45. <td><span data-module="{{ $timeshare->module }}">{{ $timeshare->module }}</span></td>
  46. <td><span data-bedrooms="{{ $timeshare->bedrooms }}">{{ $timeshare->bedrooms }}</span></td>
  47. <td><span data-season="{{ $timeshare->season }}">{{ $timeshare->season }}</span></td>
  48. @if($timeshare->fromDate==NULL)
  49. <td> - </td>
  50. @else
  51. <td>{{ \Carbon\Carbon::parse($timeshare->fromDate)->format('jS F Y') }}</td>
  52. @endif
  53. @if($timeshare->toDate==NULL)
  54. <td> - </td>
  55. @else
  56. <td><span data-season="">{{ \Carbon\Carbon::parse($timeshare->toDate)->format('jS F Y') }}</span></td>
  57. @endif
  58. <td><span data-setPrice="{{ $timeshare->setPrice }}">R{{ number_format($timeshare->setPrice, 2) }}</span></td>
  59. <td><span data-status="{{ $timeshare->status }}">{{ $timeshare->status }}</span></td>
  60. <td><a href="/timeshare-enquiry/{{ $timeshare->id }}" ><i class="fa fa-flag" aria-hidden="true"></i> Yes</a></td>
  61. </tr>
  62. @endforeach
  63. </tbody>
  64. </table>
  65. @endif
  66. </div>
  67. <div class="col-md-12 mb-4">
  68. <a class="btn btn-blue" href="/to-buy">Back to Regions</a>
  69. </div>
  70. </div>
  71. </div>
  72. </div>
  73. </div>
  74. <!-- interested -->
  75. @include('partials.interested')
  76. <script>
  77. $(document).ready(function () {
  78. $("#region").change(function () {
  79. var val = $(this).val();
  80. if (val == "gauteng") {
  81. $.getJSON("https://www.tradeunipoint.com/unibackend/seam/resource/rest/products/resorts/GA/", function(json){
  82. $('#resort').empty();
  83. $('#resort').append($('<option>').text("Resort"));
  84. $.each(json, function(i, obj){
  85. $('#resort').append($('<option>').text(obj.resortName).attr('value', obj.resortName));
  86. });
  87. });
  88. }
  89. else if (val == "western cape") {
  90. $.getJSON("https://www.tradeunipoint.com/unibackend/seam/resource/rest/products/resorts/WC/", function(json){
  91. $('#resort').empty();
  92. $('#resort').append($('<option>').text("Resort"));
  93. $.each(json, function(i, obj){
  94. $('#resort').append($('<option>').text(obj.resortName).attr('value', obj.resortName));
  95. });
  96. });
  97. }
  98. else if (val == "limpopo") {
  99. $.getJSON("https://www.tradeunipoint.com/unibackend/seam/resource/rest/products/resorts/LI/", function(json){
  100. $('#resort').empty();
  101. $('#resort').append($('<option>').text("Resort"));
  102. $.each(json, function(i, obj){
  103. $('#resort').append($('<option>').text(obj.resortName).attr('value', obj.resortName));
  104. });
  105. });
  106. }
  107. else if (val == "Kwazulu Natal") {
  108. $.getJSON("https://www.tradeunipoint.com/unibackend/seam/resource/rest/products/resorts/KZN/", function(json){
  109. $('#resort').empty();
  110. $('#resort').append($('<option>').text("Resort"));
  111. $.each(json, function(i, obj){
  112. $('#resort').append($('<option>').text(obj.resortName).attr('value', obj.resortName));
  113. });
  114. });
  115. }
  116. else if (val == "mpumalanga") {
  117. $.getJSON("https://www.tradeunipoint.com/unibackend/seam/resource/rest/products/resorts/MP/", function(json){
  118. $('#resort').empty();
  119. $('#resort').append($('<option>').text("Resort"));
  120. $.each(json, function(i, obj){
  121. $('#resort').append($('<option>').text(obj.resortName).attr('value', obj.resortName));
  122. });
  123. });
  124. }
  125. else if (val == "North West") {
  126. $.getJSON("https://www.tradeunipoint.com/unibackend/seam/resource/rest/products/resorts/NW/", function(json){
  127. $('#resort').empty();
  128. $('#resort').append($('<option>').text("Resort"));
  129. $.each(json, function(i, obj){
  130. $('#resort').append($('<option>').text(obj.resortName).attr('value', obj.resortName));
  131. });
  132. });
  133. }
  134. else if (val == "eastern cape") {
  135. $.getJSON("https://www.tradeunipoint.com/unibackend/seam/resource/rest/products/resorts/EC/", function(json){
  136. $('#resort').empty();
  137. $('#resort').append($('<option>').text("Resort"));
  138. $.each(json, function(i, obj){
  139. $('#resort').append($('<option>').text(obj.resortName).attr('value', obj.resortName));
  140. });
  141. });
  142. }
  143. else if (val == "free state") {
  144. $.getJSON("https://www.tradeunipoint.com/unibackend/seam/resource/rest/products/resorts/FS/", function(json){
  145. $('#resort').empty();
  146. $('#resort').append($('<option>').text("Resort"));
  147. $.each(json, function(i, obj){
  148. $('#resort').append($('<option>').text(obj.resortName).attr('value', obj.resortName));
  149. });
  150. });
  151. }
  152. else if (val == "northern cape") {
  153. $.getJSON("https://www.tradeunipoint.com/unibackend/seam/resource/rest/products/resorts/NC/", function(json){
  154. $('#resort').empty();
  155. $('#resort').append($('<option>').text("Resort"));
  156. $.each(json, function(i, obj){
  157. $('#resort').append($('<option>').text(obj.resortName).attr('value', obj.resortName));
  158. });
  159. });
  160. }
  161. else {
  162. // $("#resort").html("<option value=''>Please Select</option><option value='Little Eden'>Little Eden</option><option value='Little Eden'>Manzi Monate</option><option value='Kagga Kamma Nature Reserve'>Kagga Kamma Nature Reserve</option><option value='Mabalingwe Nature Reserve'>Mabalingwe Nature Reserve</option><option value='Margate Beach Club'>Margate Beach Club</option><option value='Sandy Place'>Sandy Place</option><option value='Uvongo River Resort'>Uvongo River Resort</option><option value='Jackalberry Ridge'>Jackalberry Ridge</option><option value='Ngwenya Lodge'>Ngwenya Lodge</option><option value='Sudwala Lodge'>Sudwala Lodge</option><option value='Verlorenkloof'>Verlorenkloof</option><option value='Mount Amanzi'>Mount Amanzi</option>");
  163. $.getJSON("https://www.tradeunipoint.com/unibackend/seam/resource/rest/products/resorts/list/", function(json){
  164. $('#resort').empty();
  165. $('#resort').append($('<option>').text("Resort"));
  166. $.each(json, function(i, obj){
  167. $('#resort').append($('<option>').text(obj.resortName).attr('value', obj.resortName));
  168. });
  169. });
  170. }
  171. })
  172. }
  173. );
  174. </script>
  175. @stop