diff --git a/.env.example b/.env.example
index d054ece..d37fc33 100644
--- a/.env.example
+++ b/.env.example
@@ -3,6 +3,7 @@ APP_ENV=local
APP_KEY=
APP_DEBUG=true
APP_URL=http://localhost
+APP_TAGLINE=Tagline
APP_LOCALE=en
APP_FALLBACK_LOCALE=en
diff --git a/app/Models/StoreCategory.php b/app/Models/StoreCategory.php
index 4d572f9..60f2c67 100644
--- a/app/Models/StoreCategory.php
+++ b/app/Models/StoreCategory.php
@@ -4,6 +4,7 @@ namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
+use Illuminate\Support\Facades\Storage;
class StoreCategory extends Model
{
@@ -32,4 +33,11 @@ class StoreCategory extends Model
{
return $this->items()->count();
}
+
+
+ public function getImageUrlAttribute()
+ {
+ return $this->image ? Storage::disk('wms')->url($this->image) : null;
+ }
+
}
diff --git a/config/app.php b/config/app.php
index 423eed5..c5cb9d0 100644
--- a/config/app.php
+++ b/config/app.php
@@ -14,6 +14,7 @@ return [
*/
'name' => env('APP_NAME', 'Laravel'),
+ 'tagline' => env('APP_TAGLINE', 'Tagline'),
/*
|--------------------------------------------------------------------------
diff --git a/lang/en/home_popular_products.php b/lang/en/home_popular_products.php
index 5e87aca..1b8ed8c 100644
--- a/lang/en/home_popular_products.php
+++ b/lang/en/home_popular_products.php
@@ -2,4 +2,6 @@
return [
'title' => 'Popular Products',
+ 'category' => 'Categories',
+ 'view_all' => 'View All',
];
\ No newline at end of file
diff --git a/lang/en/special_product.php b/lang/en/special_product.php
new file mode 100644
index 0000000..eef3686
--- /dev/null
+++ b/lang/en/special_product.php
@@ -0,0 +1,6 @@
+ 'Special Products',
+ 'view_all' => 'View All'
+];
\ No newline at end of file
diff --git a/lang/id/home_popular_products.php b/lang/id/home_popular_products.php
index eaaf1d6..3c4e831 100644
--- a/lang/id/home_popular_products.php
+++ b/lang/id/home_popular_products.php
@@ -2,4 +2,6 @@
return [
'title' => 'Produk Populer',
+ 'category' => 'Kategori',
+ 'view_all' => 'Lihat Semua',
];
\ No newline at end of file
diff --git a/lang/id/special_product.php b/lang/id/special_product.php
new file mode 100644
index 0000000..cb7d997
--- /dev/null
+++ b/lang/id/special_product.php
@@ -0,0 +1,6 @@
+ 'Produk Spesial',
+ 'view_all' => 'Lihat Semua'
+];
\ No newline at end of file
diff --git a/resources/views/checkout/v1-cart.blade.php b/resources/views/checkout/v1-cart.blade.php
index 5ed2592..3aee0c1 100644
--- a/resources/views/checkout/v1-cart.blade.php
+++ b/resources/views/checkout/v1-cart.blade.php
@@ -1,4 +1,4 @@
-@extends('layouts.landing', ['title' => 'Checkout v.1 - Shopping Cart'])
+@extends('layouts.landing', ['title' => 'Shopping Cart'])
@section('content')
diff --git a/resources/views/checkout/v1-delivery-1.blade.php b/resources/views/checkout/v1-delivery-1.blade.php
index e8807d8..1636d17 100644
--- a/resources/views/checkout/v1-delivery-1.blade.php
+++ b/resources/views/checkout/v1-delivery-1.blade.php
@@ -1,4 +1,4 @@
-@extends('layouts.landing', ['title' => 'Checkout v.1 - Delivery Info Step 1'])
+@extends('layouts.landing', ['title' => 'Checkout'])
@section('content')