diff --git a/app/Outlet.php b/app/Outlet.php
index 2529e66..14f9c85 100644
--- a/app/Outlet.php
+++ b/app/Outlet.php
@@ -28,4 +28,20 @@ class Outlet extends Model
{
return $this->belongsTo(User::class);
}
+
+ public function getCoordinateAttribute()
+ {
+ if ($this->latitude && $this->longitude) {
+ return $this->latitude.', '.$this->longitude;
+ }
+ }
+
+ public function getMapPopupContentAttribute()
+ {
+ $mapPopupContent = '';
+ $mapPopupContent .= '
'.__('outlet.name').':
'.$this->name.'
';
+ $mapPopupContent .= ''.__('outlet.coordinate').':
'.$this->coordinate.'
';
+
+ return $mapPopupContent;
+ }
}
diff --git a/public/images/marker-icon-green.png b/public/images/marker-icon-green.png
new file mode 100644
index 0000000..56db5ea
Binary files /dev/null and b/public/images/marker-icon-green.png differ
diff --git a/public/images/marker-shadow.png b/public/images/marker-shadow.png
new file mode 100644
index 0000000..84c5808
Binary files /dev/null and b/public/images/marker-shadow.png differ
diff --git a/resources/lang/en/outlet.php b/resources/lang/en/outlet.php
index 86dcf85..18af16e 100644
--- a/resources/lang/en/outlet.php
+++ b/resources/lang/en/outlet.php
@@ -28,8 +28,10 @@ return [
'undeleteable' => 'Outlet data cannot be deleted.',
// Attributes
- 'name' => 'Outlet Name',
- 'address' => 'Outlet Address',
- 'latitude' => 'Latitude',
- 'longitude' => 'Longitude',
+ 'name' => 'Outlet Name',
+ 'address' => 'Outlet Address',
+ 'latitude' => 'Latitude',
+ 'longitude' => 'Longitude',
+ 'location' => 'Location',
+ 'coordinate' => 'Coordinate',
];
diff --git a/resources/views/layouts/app.blade.php b/resources/views/layouts/app.blade.php
index 47f604f..615791f 100644
--- a/resources/views/layouts/app.blade.php
+++ b/resources/views/layouts/app.blade.php
@@ -9,15 +9,13 @@
{{ config('app.name', 'Laravel') }}
-
-
-
+ @yield('styles')
@@ -79,5 +77,8 @@
@yield('content')
+
+
+ @stack('scripts')