dev
Aji Kamaludin 1 year ago
parent 25f837bc79
commit 76a2cfbac6
No known key found for this signature in database
GPG Key ID: 19058F67F0083AD3

@ -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' => '<h1>lokasi favoorite</h1>',
'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' => '<h1>lokasi favoorite</h1>',
'open_hour' => '14:00',
'close_hour' => '18:59',
'is_active' => 1,
]);
}
}

@ -66,6 +66,8 @@ export default function Index(props) {
withoutControls={true}
wrapAround={true}
cellSpacing={10}
// slideIndex={1}
// slidesToShow={1.5}
>
{banners.map((banner, index) => (
<img
@ -79,12 +81,14 @@ export default function Index(props) {
))}
</Carousel>
</div>
{/* info */}
<div className="w-full px-3">
{infos.map((info) => (
<div
dangerouslySetInnerHTML={{__html: info.description}}
dangerouslySetInnerHTML={{
__html: info.description,
}}
key={info.id}
/>
))}

@ -109,7 +109,7 @@ export default function DespositLocation(props) {
<a
href={`https://wa.me/+62${location.phone}`}
>
{location.phone}
+62{location.phone}
</a>
</td>
<td className="py-4 px-6">

Loading…
Cancel
Save