diff --git a/laravel/app/Http/Controllers/LandingController.php b/laravel/app/Http/Controllers/LandingController.php
index 6da04c7..43a1c0a 100644
--- a/laravel/app/Http/Controllers/LandingController.php
+++ b/laravel/app/Http/Controllers/LandingController.php
@@ -78,6 +78,12 @@ class LandingController extends BaseController
return View('landing_page', ['district' => $districts, 'districtsName' => $districtsName, 'brandsName' => $brandsName, 'centerMapCoordinates' => $coordinates, 'stations' => $stations, 'fuels' => $fuels]);
}
+ public function combDetails()
+ {
+ # code...
+ return View('details');
+ }
+
private function getStations($district, $brand, $fuelType)
{
$stations=null;
diff --git a/laravel/public/css/style.css b/laravel/public/css/style.css
index 1602a2a..3106cf6 100644
--- a/laravel/public/css/style.css
+++ b/laravel/public/css/style.css
@@ -41,3 +41,13 @@ footer {
width: 85%;
height: 650px;
}
+
+ #mapDetails{
+ width: 85%;
+ height: 650px;
+ }
+
+ #postosMaisBaratos{
+ background-color:silver;
+ color:black
+ }
diff --git a/laravel/public/js/javascript.js b/laravel/public/js/javascript.js
index 5e03e10..d0f27be 100644
--- a/laravel/public/js/javascript.js
+++ b/laravel/public/js/javascript.js
@@ -151,6 +151,16 @@ var array2;
}
+
+ function initMapDetails() {
+
+ var map = new google.maps.Map(document.getElementById('mapDetails'), {
+ zoom: 7,
+ center: {lat: 39.7495, lng: -8.8077}
+ });
+
+ }
+
function getLocation() {
if (($('#latitude').val()==='' || $('#longitude').val()==='') && localStorage.getItem("latitude")!==null && localStorage.getItem("longitude")!==null) {
@@ -381,7 +391,7 @@ var array2;
data.forEach(function(element){
console.log(element);
});
-
+
}
});
});
@@ -465,5 +475,6 @@ var array2;
window.initMap = initMap;
window.initMapUP = initMapUP;
+ window.initMapDetails = initMapDetails;
window.updateVehiclePage = updateVehiclePage;
});
diff --git a/laravel/resources/views/details.blade.php b/laravel/resources/views/details.blade.php
new file mode 100644
index 0000000..178bf91
--- /dev/null
+++ b/laravel/resources/views/details.blade.php
@@ -0,0 +1,59 @@
+@include('header')
+
+
+