You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
xshop/database/seeders/PartSeeder.php

272 lines
7.5 KiB
PHTML

<?php
namespace Database\Seeders;
use App\Models\Area;
use App\Models\Part;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
class PartSeeder extends Seeder
{
/**
* Run the database seeds.
*/
public function run(): void
{
//
$part = new Part();
$part->segment = 'preloader';
$part->part = 'PreloaderCircle';
3 months ago
$part->area_id = Area::where('name', 'preloader')->first()->id;
$part->save();
3 months ago
// -------------------------------------------------------------
$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 = 'products';
$part->part = 'LatestProducts';
$part->area_id = Area::where('name', 'index')->first()->id;
$part->sort = 2;
$part->save();
3 months ago
$part = new Part();
$part->segment = 'posts';
$part->part = 'PostsIconSimple';
$part->area_id = Area::where('name', 'index')->first()->id;
$part->sort = 3;
3 months ago
$part->save();
$part = new Part();
$part->segment = 'index';
$part->part = 'CounterGrid';
$part->area_id = Area::where('name', 'index')->first()->id;
$part->sort = 4;
3 months ago
$part->save();
$part = new Part();
$part->segment = 'categories';
$part->part = 'CategoriesFavImageLinks';
$part->area_id = Area::where('name', 'index')->first()->id;
$part->sort = 5;
3 months ago
$part->save();
$part = new Part();
$part->segment = 'posts';
$part->part = 'PostIndexImage';
$part->area_id = Area::where('name', 'index')->first()->id;
$part->sort = 6;
3 months ago
$part->save();
$part = new Part();
$part->segment = 'footer';
$part->part = 'WaveFooter';
$part->area_id = Area::where('name', 'index')->first()->id;
$part->sort = 7;
3 months ago
$part->save();
// -------------------------------------------------------------
// default header and footer
3 months ago
$part = new Part();
$part->segment = 'menu';
$part->part = 'AplMenu';
$part->area_id = Area::where('name', 'default_header')->first()->id;
3 months ago
$part->sort = 0;
$part->save();
3 months ago
$part = new Part();
$part->segment = 'header';
$part->part = 'SimpleHeader';
$part->area_id = Area::where('name', 'default_header')->first()->id;
$part->sort = 0;
3 months ago
$part->save();
$part = new Part();
$part->segment = 'footer';
$part->part = 'WaveFooter';
$part->area_id = Area::where('name', 'default_footer')->first()->id;
3 months ago
$part->sort = 2;
$part->save();
// -------------------------------------------------------------
$part = new Part();
$part->segment = 'card';
$part->part = 'NsCard';
$part->area_id = Area::where('name', 'card')->first()->id;
$part->sort = 1;
3 months ago
$part->save();
// -------------------------------------------------------------
3 months ago
$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();
3 months ago
// -------------------------------------------------------------
$part = new Part();
$part->segment = 'product';
$part->part = 'ProductKaren';
$part->area_id = Area::where('name', 'product')->first()->id;
$part->sort = 1;
$part->save();
// -------------------------------------------------------------
3 months ago
$part = new Part();
$part->segment = 'posts_page';
$part->part = 'GridPostListSidebar';
$part->area_id = Area::where('name', 'posts-list')->first()->id;
$part->sort = 1;
3 months ago
$part->save();
3 months ago
// -------------------------------------------------------------
3 months ago
$part = new Part();
$part->segment = 'post';
$part->part = 'PostSidebar';
$part->area_id = Area::where('name', 'post')->first()->id;
$part->sort = 1;
3 months ago
$part->save();
// -------------------------------------------------------------
3 months ago
$part = new Part();
$part->segment = 'clips_page';
$part->part = 'ClipListGrid';
$part->area_id = Area::where('name', 'clips-list')->first()->id;
3 months ago
$part->sort = 1;
$part->save();
// -------------------------------------------------------------
3 months ago
$part = new Part();
$part->segment = 'clip';
$part->part = 'DorClip';
$part->area_id = Area::where('name', 'clip')->first()->id;
$part->sort = 1;
3 months ago
$part->save();
// -------------------------------------------------------------
$part = new Part();
$part->segment = 'galleries_page';
$part->part = 'GalleriesList';
$part->area_id = Area::where('name', 'galleries-list')->first()->id;
$part->sort = 1;
$part->save();
// -------------------------------------------------------------
3 months ago
$part = new Part();
$part->segment = 'gallery';
$part->part = 'GallaryGrid';
$part->area_id = Area::where('name', 'gallery')->first()->id;
$part->sort = 1;
3 months ago
$part->save();
// -------------------------------------------------------------
3 months ago
$part = new Part();
$part->segment = 'compare';
$part->part = 'CompareProducts';
$part->area_id = Area::where('name', 'compare')->first()->id;
3 months ago
$part->sort = 1;
$part->save();
// -------------------------------------------------------------
3 months ago
$part = new Part();
$part->segment = 'login';
$part->part = 'LoginPatternBg';
$part->area_id = Area::where('name', 'login')->first()->id;
$part->sort = 1;
$part->save();
// -------------------------------------------------------------
$part = new Part();
$part->segment = 'customer';
$part->part = 'AvisaCustomer';
$part->area_id = Area::where('name', 'customer')->first()->id;
$part->sort = 1;
$part->save();
// -------------------------------------------------------------
$part = new Part();
$part->segment = 'attachments_page';
$part->part = 'DenaAttachList';
$part->area_id = Area::where('name', 'attachments-list')->first()->id;
$part->sort = 1;
$part->save();
// -------------------------------------------------------------
$part = new Part();
$part->segment = 'attachment';
$part->part = 'AttachmentWithPreview';
$part->area_id = Area::where('name', 'attachment')->first()->id;
$part->sort = 1;
3 months ago
$part->save();
// -------------------------------------------------------------
$part = new Part();
$part->segment = 'contact';
$part->part = 'MeloContact';
$part->area_id = Area::where('name', 'contact-us')->first()->id;
$part->sort = 1;
$part->save();
3 months ago
}
}