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

263 lines
7.2 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';
5 months ago
$part->area_id = Area::where('name', 'preloader')->first()->id;
$part->save();
5 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();
5 months ago
$part = new Part();
$part->segment = 'posts';
$part->part = 'PostsIconSimple';
$part->area_id = Area::where('name', 'index')->first()->id;
$part->sort = 3;
5 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;
5 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;
5 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;
5 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;
5 months ago
$part->save();
// -------------------------------------------------------------
// default header and footer
5 months ago
$part = new Part();
$part->segment = 'menu';
$part->part = 'AplMenu';
$part->area_id = Area::where('name', 'default_header')->first()->id;
5 months ago
$part->sort = 0;
$part->save();
5 months ago
$part = new Part();
$part->segment = 'header';
$part->part = 'SimpleHeader';
$part->area_id = Area::where('name', 'default_header')->first()->id;
$part->sort = 0;
5 months ago
$part->save();
$part = new Part();
$part->segment = 'footer';
$part->part = 'WaveFooter';
$part->area_id = Area::where('name', 'default_footer')->first()->id;
5 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;
5 months ago
$part->save();
// -------------------------------------------------------------
5 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();
5 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();
// -------------------------------------------------------------
5 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;
5 months ago
$part->save();
5 months ago
// -------------------------------------------------------------
5 months ago
$part = new Part();
$part->segment = 'post';
$part->part = 'PostSidebar';
$part->area_id = Area::where('name', 'post')->first()->id;
$part->sort = 1;
5 months ago
$part->save();
// -------------------------------------------------------------
5 months ago
$part = new Part();
$part->segment = 'clips_page';
$part->part = 'ClipListGrid';
$part->area_id = Area::where('name', 'clips-list')->first()->id;
5 months ago
$part->sort = 1;
$part->save();
// -------------------------------------------------------------
5 months ago
$part = new Part();
$part->segment = 'clip';
$part->part = 'DorClip';
$part->area_id = Area::where('name', 'clip')->first()->id;
$part->sort = 1;
5 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();
// -------------------------------------------------------------
5 months ago
$part = new Part();
$part->segment = 'gallery';
$part->part = 'GallaryGrid';
$part->area_id = Area::where('name', 'gallery')->first()->id;
$part->sort = 1;
5 months ago
$part->save();
// -------------------------------------------------------------
5 months ago
$part = new Part();
$part->segment = 'compare';
$part->part = 'CompareProducts';
$part->area_id = Area::where('name', 'compare')->first()->id;
5 months ago
$part->sort = 1;
$part->save();
// -------------------------------------------------------------
5 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;
5 months ago
$part->save();
}
}