ldc-volena/database/seeders/Mandatory/StickySeeder.php

186 lines
5.7 KiB
PHP

<?php
namespace Database\Seeders\Mandatory;
use App\Enums\StaticPageType;
use App\Enums\StickiesColorEnum;
use App\Models\Sticky;
use Illuminate\Database\Seeder;
class StickySeeder extends Seeder
{
/**
* Run the database seeds.
*/
public function run(): void
{
Sticky::query()->updateOrCreate(
[
'type' => StaticPageType::we_hire,
'anchor' => 'company-life',
],
[
'type' => StaticPageType::we_hire,
'title' => 'La vie d\'entreprise',
'anchor' => 'company-life',
'color' => StickiesColorEnum::primary,
],
);
Sticky::query()->updateOrCreate(
[
'type' => StaticPageType::we_hire,
'anchor' => 'formation',
],
[
'type' => StaticPageType::we_hire,
'title' => 'L\'alternance et la formation',
'anchor' => 'formation',
'color' => StickiesColorEnum::secondary,
],
);
Sticky::query()->updateOrCreate(
[
'type' => StaticPageType::we_hire,
'anchor' => 'we-testimonials',
],
[
'type' => StaticPageType::we_hire,
'title' => 'Nos collaborateurs témoignent',
'anchor' => 'we-testimonials',
'color' => StickiesColorEnum::quad,
],
);
Sticky::query()->updateOrCreate(
[
'type' => StaticPageType::we_hire,
'anchor' => 'parity',
],
[
'type' => StaticPageType::we_hire,
'title' => 'La parité',
'anchor' => 'parity',
'color' => StickiesColorEnum::quint,
],
);
Sticky::query()->updateOrCreate(
[
'type' => StaticPageType::we_hire,
'anchor' => 'on-se-retrouve',
],
[
'type' => StaticPageType::we_hire,
'title' => 'En savoir plus',
'anchor' => 'on-se-retrouve',
'color' => StickiesColorEnum::sixt,
],
);
Sticky::query()->updateOrCreate(
[
'type' => StaticPageType::unveil,
'anchor' => 'key-numbers',
],
[
'type' => StaticPageType::unveil,
'title' => 'VOLENA',
'anchor' => 'key-numbers',
'color' => StickiesColorEnum::primary,
],
);
Sticky::query()->updateOrCreate(
[
'type' => StaticPageType::unveil,
'anchor' => 'missions',
],
[
'type' => StaticPageType::unveil,
'title' => 'Notre mission',
'anchor' => 'missions',
'color' => StickiesColorEnum::secondary,
],
);
Sticky::query()->updateOrCreate(
[
'type' => StaticPageType::unveil,
'anchor' => 'local',
],
[
'type' => StaticPageType::unveil,
'title' => 'Filière 100% française',
'anchor' => 'local',
'color' => StickiesColorEnum::quad,
],
);
Sticky::query()->updateOrCreate(
[
'type' => StaticPageType::unveil,
'anchor' => 'sites',
],
[
'type' => StaticPageType::unveil,
'title' => 'Nos sites',
'anchor' => 'sites',
'color' => StickiesColorEnum::quint,
],
);
Sticky::query()->updateOrCreate(
[
'type' => StaticPageType::unveil,
'anchor' => 'history',
],
[
'type' => StaticPageType::unveil,
'title' => 'Notre histoire',
'anchor' => 'history',
'color' => StickiesColorEnum::sixt,
],
);
Sticky::query()->updateOrCreate(
[
'type' => StaticPageType::we_commit,
'anchor' => 'breeding',
],
[
'type' => StaticPageType::we_commit,
'title' => 'Élever durablement',
'anchor' => 'breeding',
'color' => StickiesColorEnum::tertiary,
],
);
Sticky::query()->updateOrCreate(
[
'type' => StaticPageType::we_commit,
'anchor' => 'life',
],
[
'type' => StaticPageType::we_commit,
'title' => 'Mieux vivre',
'anchor' => 'life',
'color' => StickiesColorEnum::quad,
],
);
Sticky::query()->updateOrCreate(
[
'type' => StaticPageType::we_commit,
'anchor' => 'earth',
],
[
'type' => StaticPageType::we_commit,
'title' => 'Respecter la terre',
'anchor' => 'earth',
'color' => StickiesColorEnum::quint,
],
);
Sticky::query()->updateOrCreate(
[
'type' => StaticPageType::we_commit,
'anchor' => 'feed',
],
[
'type' => StaticPageType::we_commit,
'title' => 'Bien nourrir',
'anchor' => 'feed',
'color' => StickiesColorEnum::sixt,
],
);
}
}