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-sell.blade.php 23KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450
  1. @extends('master')
  2. @section('title', 'To Sell')
  3. @section('description', 'Uni-Vate Properties provides a reliable platform from which to advertise and sell tender weeks within the timeshare industry.')
  4. @section('keywords', 'Timeshare selling, where to sell my timeshare, Uni-Vate Properties, Uni-Vate timeshare, timeshare for sale, tender weeks available, sell my tender week')
  5. @section('content')
  6. <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
  7. <style>
  8. .choose :hover {
  9. background-color: #72c5ed;
  10. }
  11. </style>
  12. <div class="container">
  13. <div class="row">
  14. <div class="col-md-12">
  15. <h1 class="my-4">To Sell
  16. @if(Auth::check() && Auth::user()->agency!=NULL or (Auth::check() && Auth::user()->role=="admin"))
  17. <a style="float: right;" class="btn btn-blue btn-lg" href="/bulk-weeks-upload">Bulk Weeks upload</a>
  18. @endif
  19. </h1>
  20. <hr>
  21. <p>* You need to be logged in to submit your listing. Please register and log in if you have not done so already.</p>
  22. <hr>
  23. </div>
  24. </div>
  25. <div class="row mb-4">
  26. <div class="col-md-12">
  27. <form id="mainForm" method="POST" action="/to-sell" accept-charset="UTF-8" enctype="multipart/form-data">
  28. @csrf
  29. <div class="form-group row">
  30. <div class="col-md-4">
  31. <label>Were you referred by an agent?</label>
  32. <br>
  33. <div class="form-check form-check-inline">
  34. <input class="form-check-input" type="radio" id="referedBy" class="radiogroup" name="referedBy" value='Yes' @if(old('referedBy')) checked @endif>
  35. <label class="form-check-label" for="referedBy">
  36. Yes
  37. </label>
  38. </div>
  39. <div class="form-check form-check-inline">
  40. <input class="form-check-input" type="radio" id="referedBy" class="radiogroup" name="referedBy" value='No' @if(!old('referedBy')) checked @endif>
  41. <label class="form-check-label" for="referedBy">
  42. No
  43. </label>
  44. </div>
  45. </div>
  46. <div class="col-md-4">
  47. <label>Name of agency <em>(if applicable)</em></label>
  48. @if(Auth::check() && (Auth::user()->role == "agency admin" or (Auth::user()->role == "user" && Auth::user()->agency)))
  49. <input class="form-control" type="text" id="estateAgency" name="estateAgency" value="{{ Auth::user()->agency }}" readonly />
  50. <div id="agencyList">
  51. </div>
  52. @else
  53. <input class="form-control" type="text" id="estateAgency" name="estateAgency" />
  54. <div id="agencyList">
  55. </div>
  56. @endif
  57. </div>
  58. <div class="col-md-4">
  59. <label>Agent name <em>(if applicable)</em></label>
  60. @if(Auth::check() && (Auth::user()->role == "agency admin" or (Auth::user()->role == "user" && Auth::user()->agency)))
  61. <input class="form-control" type="text" id="agentName" name="agentName" value="{{ Auth::user()->name }}" readonly />
  62. <div id="agentList">
  63. </div>
  64. @else
  65. <input class="form-control" type="text" id="agentName" name="agentName" value="{{ old('agentName') }}" />
  66. <div id="agentList">
  67. </div>
  68. @endif
  69. </div>
  70. </div>
  71. <div class="form-group row">
  72. <div class="col-md-6">
  73. <label>Resort name</label>
  74. <select class="form-control" id="resort" name="resort">
  75. <option value="">Please Select</option>
  76. @foreach($resorts as $resort)
  77. <option value="{{ $resort->resort }}" {{ old('resort') == $resort->resort ? 'selected' : '' }}>{{ $resort->resort }}</option>
  78. @endforeach
  79. <option value="Other">Other</option>
  80. </select>
  81. </div>
  82. <div class="col-md-6">
  83. <label>* If other</label>
  84. <input class="form-control" type="text" name="other" value="{{ old('other') }}" />
  85. </div>
  86. </div>
  87. <div class="form-group row">
  88. <div class="col-md-6">
  89. <label>Region</label>
  90. <select class="form-control" name="region" id="region">
  91. <option value="">Please Select</option>
  92. <option value="gauteng" {{ old('region') == 'gauteng' ? 'selected' : '' }}>Gauteng</option>
  93. <option value="Kwazulu Natal" {{ old('region') == 'Kwazulu Natal' ? 'selected' : '' }}>Kwazulu Natal</option>
  94. <option value="mpumalanga" {{ old('region') == 'mpumalanga' ? 'selected' : '' }}>Mpumalanga</option>
  95. <option value="north west" {{ old('region') == 'north west' ? 'selected' : '' }}>North West</option>
  96. <option value="free state" {{ old('region') == 'free state' ? 'selected' : '' }}>Free State</option>
  97. <option value="eastern cape" {{ old('region') == 'eastern cape' ? 'selected' : '' }}>Eastern Cape</option>
  98. <option value="western cape" {{ old('region') == 'western cape' ? 'selected' : '' }}>Western Cape</option>
  99. <option value="northern cape" {{ old('region') == 'northern cape' ? 'selected' : '' }}>Northern Cape</option>
  100. <option value="limpopo" {{ old('region') == 'limpopo' ? 'selected' : '' }}>Limpopo</option>
  101. </select>
  102. </div>
  103. <div class="col-md-6">
  104. <label>Season</label>
  105. <select class="form-control" name="season">
  106. <option value="">Please Select</option>
  107. <option value="Peak" {{ old('season') == 'Peak' ? 'selected' : '' }}>Peak</option>
  108. <option value="Peak 1" {{ old('season') == 'Peak 1' ? 'selected' : '' }}>Peak 1</option>
  109. <option value="Peak 2" {{ old('season') == 'Peak 2' ? 'selected' : '' }}>Peak 2</option>
  110. <option value="Peak 3" {{ old('season') == 'Peak 3' ? 'selected' : '' }}>Peak 3</option>
  111. <option value="Peak 4" {{ old('season') == 'Peak 4' ? 'selected' : '' }}>Peak 4</option>
  112. <option value="Red" {{ old('season') == 'Red' ? 'selected' : '' }}>Red</option>
  113. <option value="White" {{ old('season') == 'White' ? 'selected' : '' }}>White</option>
  114. <option value="Blue" {{ old('season') == 'Blue' ? 'selected' : '' }}>Blue</option>
  115. <option value="Flexi" {{ old('season') == 'Flexi' ? 'selected' : '' }}>Flexi</option>
  116. </select>
  117. </div>
  118. </div>
  119. <div class="form-group row">
  120. <div class="col-md-6">
  121. <label>Module</label>
  122. <input class="form-control" type="text" name="module" value="{{ old('module') }}" />
  123. </div>
  124. <div class="col-md-6">
  125. <label>Week number</label>
  126. <input class="form-control" type="text" name="week" value="{{ old('week') }}" />
  127. </div>
  128. </div>
  129. <div class="form-group row">
  130. <div class="col-md-6">
  131. <label>Bedrooms</label>
  132. <select class="form-control" name="bedrooms">
  133. <option value="">Please Select</option>
  134. <option value="Studio">Studio</option>
  135. <option value="1" {{ old('bedrooms') == '1' ? 'selected' : '' }}>1</option>
  136. <option value="2" {{ old('bedrooms') == '2' ? 'selected' : '' }}>2</option>
  137. <option value="3" {{ old('bedrooms') == '3' ? 'selected' : '' }}>3</option>
  138. <option value="4" {{ old('bedrooms') == '4' ? 'selected' : '' }}>4</option>
  139. <option value="5" {{ old('bedrooms') == '5'? 'selected' : '' }}>5</option>
  140. <option value="6" {{ old('bedrooms') == '6' ? 'selected' : '' }}>6</option>
  141. </select>
  142. </div>
  143. <div class="col-md-6">
  144. <label>Sleeps maximum</label>
  145. <select class="form-control" name="sleeps">
  146. <option value="">Please Select</option>
  147. <option value="2" {{ old('sleeps') == '2' ? 'selected' : '' }}>2</option>
  148. <option value="4" {{ old('sleeps') == '4' ? 'selected' : '' }}>4</option>
  149. <option value="6" {{ old('sleeps') == '6' ? 'selected' : '' }}>6</option>
  150. <option value="8" {{ old('sleeps') == '8' ? 'selected' : '' }}>8</option>
  151. <option value="10" {{ old('sleeps') == '10' ? 'selected' : '' }}>10</option>
  152. <option value="12" {{ old('sleeps') == '12' ? 'selected' : '' }}>12</option>
  153. </select>
  154. </div>
  155. </div>
  156. <div class="form-group row">
  157. <div class="col-md-6">
  158. <label>Unit number</label>
  159. <input class="form-control" type="text" name="unit" value="{{ old('unit') }}" />
  160. </div>
  161. <div class="col-md-6">
  162. <label>Owner</label>
  163. <input class="form-control" type="text" name="owner" value="{{ old('owner') }}" />
  164. </div>
  165. </div>
  166. <div class="form-group row">
  167. <div class="col-md-6">
  168. <label>Levy</label>
  169. <input class="form-control" type="number" step="any" name="levy" value="{{ old('levy') }}" />
  170. </div>
  171. </div>
  172. <div class="form-group row">
  173. <div class="col-md-6">
  174. <legend>Has your week been spacebanked for the current year?</legend>
  175. <div class="form-check">
  176. <input class="form-check-input" type="radio" name="spacebankedyear" id="spacebankedyearyes" value='Yes' @if(old('spacebankedyear')) checked @endif>
  177. <label class="form-check-label" for="spacebankedyearyes">
  178. Yes
  179. </label>
  180. </div>
  181. <div class="form-check">
  182. <input class="form-check-input" type="radio" name="spacebankedyear" id="spacebankedyearno" value='No' @if(!old('spacebankedyear')) checked @endif>
  183. <label class="form-check-label" for="spacebankedyearno">
  184. No
  185. </label>
  186. </div>
  187. </div>
  188. <div class="col-md-6">
  189. <label>If yes, please confirm with whom</label>
  190. <select class="form-control" name="spacebankOwner">
  191. <option value="">Please Select</option>
  192. <option value="Dial an Exchange" {{ old('spacebankOwner') == 'Dial an Exchange' ? 'selected' : '' }}>Dial an Exchange</option>
  193. <option value="RCI" {{ old('spacebankOwner') == 'RCI' ? 'selected' : '' }}>RCI</option>
  194. <option value="First Exchange" {{ old('spacebankOwner') == 'First Exchange' ? 'selected' : '' }}>First Exchange</option>
  195. <option value="iExchange" {{ old('spacebankOwner') == 'iExchange' ? 'selected' : '' }}>iExchange</option>
  196. <option value="Interval International" {{ old('spacebankOwner') == 'Interval International' ? 'selected' : '' }}>Interval International</option>
  197. </select>
  198. </div>
  199. </div>
  200. <hr>
  201. <h3>Share transfer information</h3>
  202. <p>1. With respect to my timeshare module/week, I confirm that:</p>
  203. <div class="form-group row">
  204. <label for="name" class="col-form-label col-md-8">
  205. 1.1 All levy amounts for the current cycle have been paid in full
  206. </label>
  207. <div class="col-md-4">
  208. <div class="form-check form-check-inline">
  209. <input class="form-check-input" type="radio" name="paid" value='Yes' @if(old('paid')) checked @endif>
  210. <label class="form-check-label" for="paid">
  211. Yes
  212. </label>
  213. </div>
  214. <div class="form-check form-check-inline">
  215. <input class="form-check-input" type="radio" name="paid" value='No' @if(!old('paid')) checked @endif>
  216. <label class="form-check-label" for="paid">
  217. No
  218. </label>
  219. </div>
  220. </div>
  221. </div>
  222. <hr>
  223. <div class="form-group row">
  224. <label for="name" class="col-form-label col-md-8">
  225. 1.2 My week is placed for rental this year
  226. </label>
  227. <div class="col-md-4">
  228. <div class="form-check form-check-inline">
  229. <input class="form-check-input" type="radio" name="rental" value='Yes' @if(old('rental')) checked @endif>
  230. <label class="form-check-label" for="paidyes">
  231. Yes
  232. </label>
  233. </div>
  234. <div class="form-check form-check-inline">
  235. <input class="form-check-input" type="radio" name="rental" value='No' @if(!old('rental')) checked @endif>
  236. <label class="form-check-label" for="paidno">
  237. No
  238. </label>
  239. </div>
  240. </div>
  241. </div>
  242. <hr>
  243. <div class="form-group row">
  244. <label for="name" class="col-form-label col-md-8">
  245. 1.3 I/We bought the timeshare module/week on the following date:
  246. </label>
  247. <div class="col-md-4">
  248. <input type="date" class="form-control" name="date" value="{{ old('date') }}" />
  249. </div>
  250. </div>
  251. <hr>
  252. <div class="form-group row">
  253. <label for="name" class="col-form-label col-md-8">
  254. 1.4 The purchase price for which I/we bought timeshare module/week was:
  255. </label>
  256. <div class="col-md-4">
  257. <input class="form-control" type="number" step="any" name="purchasePrice" placeholder="R" value="{{ old('purchasePrice') }}" />
  258. </div>
  259. </div>
  260. <hr>
  261. <div class="form-group row">
  262. <label for="name" class="col-form-label col-md-8">
  263. 1.5 I/We bought the timeshare module/week for the following dates for the current year:
  264. </label>
  265. <div class="col-md-4">
  266. Arrival Date :
  267. <input type="date" class="form-control" name="occupationDate1" value="{{ old('occupationDate1') }}" />
  268. Departure Date :
  269. <input type="date" class="form-control" name="occupationDate2" value="{{ old('occupationDate2') }}" />
  270. </div>
  271. </div>
  272. <hr>
  273. <div class="form-group row">
  274. <label for="name" class="col-form-label col-md-8">
  275. 1.6 The selling price for the timeshare module/week for which I/we want to sell is: (Including Vat)
  276. </label>
  277. <div class="col-md-4">
  278. <input class="form-control" type="number" step="any" name="sellingPrice" placeholder="R" value="{{ old('sellingPrice') }}" />
  279. </div>
  280. </div>
  281. <hr>
  282. <div class="form-group row">
  283. <label for="name" class="col-form-label col-md-8">
  284. 1.7 Estate agent’s commission agreed to (state Rand value)
  285. </label>
  286. <div class="col-md-4">
  287. <input class="form-control" type="number" step="any" name="commission" placeholder="R" value="{{ old('commission') }}" />
  288. </div>
  289. </div>
  290. <hr>
  291. <div class="form-group row">
  292. <label for="name" class="col-form-label col-md-8">
  293. 1.8 Mandate to sell timeshare
  294. </label>
  295. <div class="col-md-4">
  296. <input class="form-control" type="file" name="mandate" value="{{ old('mandate') }}" />
  297. </div>
  298. </div>
  299. <button type="submit" class="btn btn-blue btn-lg">SUBMIT</button>
  300. <hr>
  301. <p>
  302. * A listing fee of R380 including VAT is payable to list your timeshare week/module on the Uni-Vate website<br/>
  303. <br>
  304. <p style="text-align:center;">To rent your week out <a href="https://www.tradeunipoint.com/" target="_blank" >click here</a></p>
  305. </p>
  306. </form>
  307. </div>
  308. </div>
  309. </div>
  310. <script>
  311. $(document).ready(function () {
  312. $("#resort").change(function () {
  313. var val = $(this).val();
  314. if (val == "Little Eden") {
  315. $("#region").html("<option value='gauteng'>Gauteng</option>");
  316. } else if (val == "Manzi Monate") {
  317. $("#region").html("<option value='gauteng'>Gauteng</option>");
  318. }
  319. else if (val == "Kagga Kamma Nature Reserve") {
  320. $("#region").html("<option value='western cape'>Western Cape</option>");
  321. }
  322. else if (val == "Mabalingwe Nature Reserve") {
  323. $("#region").html("<option value='limpopo'>Limpopo</option>");
  324. }
  325. else if (val == "Margate Beach Club") {
  326. $("#region").html("<option value='Kwazulu Natal'>Kwazulu Natal</option>");
  327. }
  328. else if (val == "Sandy Place") {
  329. $("#region").html("<option value='Kwazulu Natal'>Kwazulu Natal</option>");
  330. }
  331. else if (val == "Uvongo River Resort") {
  332. $("#region").html("<option value='Kwazulu Natal'>Kwazulu Natal</option>");
  333. }
  334. else if (val == "Jackalberry Ridge") {
  335. $("#region").html("<option value='mpumalanga'>Mpumalanga</option>");
  336. }
  337. else if (val == "Ngwenya Lodge") {
  338. $("#region").html("<option value='mpumalanga'>Mpumalanga</option>");
  339. }
  340. else if (val == "Sudwala Lodge") {
  341. $("#region").html("<option value='mpumalanga'>Mpumalanga</option>");
  342. }
  343. else if (val == "Verlorenkloof") {
  344. $("#region").html("<option value='mpumalanga'>Mpumalanga</option>");
  345. }
  346. })
  347. }
  348. );
  349. </script>
  350. <script>
  351. $(document).ready(function(){
  352. $('#referedBy').change(function(){
  353. if($(this).val()=="Yes"){
  354. $(input[name="estateAgency"]).val('');
  355. }
  356. else if($(this).val()=="No"){
  357. $(input[name="estateAgency"]).val('Uni-Broker Resales');
  358. }
  359. });
  360. });
  361. </script>
  362. <script>
  363. $(document).ready(function(){
  364. $('#estateAgency').keyup(function(){
  365. var query = $(this).val();
  366. if(query != '')
  367. {
  368. var _token = $('input[name="_token"]').val();
  369. $.ajax({
  370. url:"{{ route('autocomplete.fetch') }}",
  371. method:"POST",
  372. data:{query:query, _token:_token},
  373. success:function(data){
  374. $('#agencyList').fadeIn();
  375. $('#agencyList').html(data);
  376. }
  377. });
  378. }
  379. });
  380. $(document).on('click', 'li', function(){
  381. $('#estateAgency').val($(this).text());
  382. $('#agencyList').fadeOut();
  383. });
  384. });
  385. </script>
  386. <script>
  387. $(document).ready(function(){
  388. $('#agentName').keyup(function(){
  389. var query = $(this).val();
  390. var estateAgency = $('#estateAgency').val();
  391. if(query != '')
  392. {
  393. var _token = $('input[name="_token"]').val();
  394. $.ajax({
  395. url:"{{ route('autocompleteAgent.fetch') }}",
  396. method:"POST",
  397. data:{query:query, _token:_token, estateAgency},
  398. success:function(data){
  399. $('#agentList').fadeIn();
  400. $('#agentList').html(data);
  401. }
  402. });
  403. }
  404. });
  405. $(document).on('click', 'span', function(){
  406. $('#agentName').val($(this).text());
  407. $('#agentList').fadeOut();
  408. });
  409. });
  410. </script>
  411. @stop