diff --git a/database/seeders/DummySeeder.php b/database/seeders/DummySeeder.php index 2b18619..99d1f31 100644 --- a/database/seeders/DummySeeder.php +++ b/database/seeders/DummySeeder.php @@ -5,6 +5,8 @@ namespace Database\Seeders; use App\Models\Account; use App\Models\Banner; use App\Models\CustomerLevel; +use App\Models\DepositHistory; +use App\Models\DepositLocation; use App\Models\Info; use App\Models\Location; use App\Models\LocationProfile; @@ -29,6 +31,7 @@ class DummySeeder extends Seeder $this->location(); $this->location_profile(); $this->voucher(); + $this->deposit_location(); } public function info() @@ -166,4 +169,31 @@ class DummySeeder extends Seeder } DB::commit(); } + + public function deposit_location() + { + DepositLocation::create([ + 'name' => 'Location 1', + 'address' => 'Address Lengkap Alamat', + 'phone' => '83840745543', + 'gmap_url' => 'https://goo.gl/maps/iyJ8nq32pJ2BbfUf6', + 'image' => 'sample/banner.jpg', + 'description' => '

lokasi favoorite

', + 'open_hour' => '00:00', + 'close_hour' => '23:59', + 'is_active' => 1, + ]); + + DepositLocation::create([ + 'name' => 'Location 2', + 'address' => 'Address Lengkap Alamat', + 'phone' => '83840745543', + 'gmap_url' => 'https://goo.gl/maps/iyJ8nq32pJ2BbfUf6', + 'image' => 'sample/banner.jpg', + 'description' => '

lokasi favoorite

', + 'open_hour' => '14:00', + 'close_hour' => '18:59', + 'is_active' => 1, + ]); + } } diff --git a/resources/js/Customer/Index/Index.jsx b/resources/js/Customer/Index/Index.jsx index bf26151..de4a12e 100644 --- a/resources/js/Customer/Index/Index.jsx +++ b/resources/js/Customer/Index/Index.jsx @@ -66,6 +66,8 @@ export default function Index(props) { withoutControls={true} wrapAround={true} cellSpacing={10} + // slideIndex={1} + // slidesToShow={1.5} > {banners.map((banner, index) => ( - {/* info */} +
{infos.map((info) => (
))} diff --git a/resources/js/Pages/DepositLocation/Index.jsx b/resources/js/Pages/DepositLocation/Index.jsx index 7bc4a7b..c8c3698 100644 --- a/resources/js/Pages/DepositLocation/Index.jsx +++ b/resources/js/Pages/DepositLocation/Index.jsx @@ -109,7 +109,7 @@ export default function DespositLocation(props) { - {location.phone} + +62{location.phone}