added data seeder

pull/49/head
A1Gard 5 months ago
parent 03ffcc7638
commit 5b257a3da4

@ -36,12 +36,12 @@ class DatabaseSeeder extends Seeder
SettingSeeder::class,
GfxSeeder::class,
AreaSeeder::class,
PartSeeder::class,
InvoiceSeeder::class,
VisitorSeeder::class,
TransportSeeder::class,
MenuSeeder::class,
SliderSeeder::class,
PartSeeder::class,
]
);
}

@ -19,8 +19,182 @@ class PartSeeder extends Seeder
$part = new Part();
$part->segment = 'preloader';
$part->part = 'PreloaderCircle';
$part->area_id = Area::where('name','preloader')->first()->id;
$part->area_id = Area::where('name', 'preloader')->first()->id;
$part->save();
// -------------------------------------------------------------
$part = new Part();
$part->segment = 'menu';
$part->part = 'RecetMenu';
$part->area_id = Area::where('name', 'index')->first()->id;
$part->sort = 0;
$part->save();
$part = new Part();
$part->segment = 'slider';
$part->part = 'SliderSimple';
$part->area_id = Area::where('name', 'index')->first()->id;
$part->sort = 1;
$part->save();
$part = new Part();
$part->segment = 'posts';
$part->part = 'PostsIconSimple';
$part->area_id = Area::where('name', 'index')->first()->id;
$part->sort = 2;
$part->save();
$part = new Part();
$part->segment = 'index';
$part->part = 'CounterGrid';
$part->area_id = Area::where('name', 'index')->first()->id;
$part->sort = 3;
$part->save();
$part = new Part();
$part->segment = 'categories';
$part->part = 'CategoriesFavImageLinks';
$part->area_id = Area::where('name', 'index')->first()->id;
$part->sort = 4;
$part->save();
$part = new Part();
$part->segment = 'posts';
$part->part = 'PostIndexImage';
$part->area_id = Area::where('name', 'index')->first()->id;
$part->sort = 5;
$part->save();
$part = new Part();
$part->segment = 'footer';
$part->part = 'WaveFooter';
$part->area_id = Area::where('name', 'index')->first()->id;
$part->sort = 6;
$part->save();
// -------------------------------------------------------------
$part = new Part();
$part->segment = 'header';
$part->part = 'SimpleHeader';
$part->area_id = Area::where('name', 'card')->first()->id;
$part->sort = 0;
$part->save();
$part = new Part();
$part->segment = 'card';
$part->part = 'NsCard';
$part->area_id = Area::where('name', 'card')->first()->id;
$part->sort = 1;
$part->save();
$part = new Part();
$part->segment = 'footer';
$part->part = 'WaveFooter';
$part->area_id = Area::where('name', 'card')->first()->id;
$part->sort = 2;
$part->save();
// -------------------------------------------------------------
$part = new Part();
$part->segment = 'header';
$part->part = 'SimpleHeader';
$part->area_id = Area::where('name', 'products-list')->first()->id;
$part->sort = 0;
$part->save();
$part = new Part();
$part->segment = 'products_page';
$part->part = 'ProductGridSidebar';
$part->area_id = Area::where('name', 'products-list')->first()->id;
$part->sort = 1;
$part->save();
$part = new Part();
$part->segment = 'footer';
$part->part = 'WaveFooter';
$part->area_id = Area::where('name', 'products-list')->first()->id;
$part->sort = 2;
$part->save();
// -------------------------------------------------------------
$part = new Part();
$part->segment = 'header';
$part->part = 'SimpleHeader';
$part->area_id = Area::where('name', 'product')->first()->id;
$part->sort = 0;
$part->save();
$part = new Part();
$part->segment = 'product';
$part->part = 'ProductKaren';
$part->area_id = Area::where('name', 'product')->first()->id;
$part->sort = 1;
$part->save();
$part = new Part();
$part->segment = 'footer';
$part->part = 'WaveFooter';
$part->area_id = Area::where('name', 'product')->first()->id;
$part->sort = 2;
$part->save();
// -------------------------------------------------------------
$part = new Part();
$part->segment = 'header';
$part->part = 'SimpleHeader';
$part->area_id = Area::where('name', 'posts-list')->first()->id;
$part->sort = 0;
$part->save();
$part = new Part();
$part->segment = 'posts_page';
$part->part = 'GridPostListSidebar';
$part->area_id = Area::where('name', 'posts-list')->first()->id;
$part->sort = 1;
$part->save();
$part = new Part();
$part->segment = 'footer';
$part->part = 'WaveFooter';
$part->area_id = Area::where('name', 'posts-list')->first()->id;
$part->sort = 2;
$part->save();
// -------------------------------------------------------------
$part = new Part();
$part->segment = 'header';
$part->part = 'SimpleHeader';
$part->area_id = Area::where('name', 'post')->first()->id;
$part->sort = 0;
$part->save();
$part = new Part();
$part->segment = 'post';
$part->part = 'PostSidebar';
$part->area_id = Area::where('name', 'post')->first()->id;
$part->sort = 1;
$part->save();
$part = new Part();
$part->segment = 'footer';
$part->part = 'WaveFooter';
$part->area_id = Area::where('name', 'post')->first()->id;
$part->sort = 2;
$part->save();
}
}

@ -23,6 +23,7 @@
display: none;
}
.tns-nav{
margin-top: 2rem;
display: block;

@ -26,7 +26,7 @@
h3{
font-size: 22px;
padding: 1rem 0;
height: 3.5em;
height: 3.2em;
position: relative;
overflow: hidden;

Loading…
Cancel
Save