Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 0 additions & 16 deletions app/Http/Controllers/OfferController.php

This file was deleted.

178 changes: 73 additions & 105 deletions database/seeders/ProjectsSeeder.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,131 +15,99 @@ public function run(): void
$this->seedGetTheBox();
$this->seedK1();
$this->seedCarbon();
$this->seedEmployeeRequests();

Project::factory()->count(12)->create();
}

private function seedVita(): void
{
Project::updateOrCreate(
["slug" => "vita"],
[
"name_first_part" => [
"pl" => "Aplikacja do",
"en" => "Application for",
],
"name_second_part" => [
"pl" => "zamawiania usług medycznych",
"en" => "ordering medical services",
],
"name_third_part" => [
"pl" => "z przychodni Vita+",
"en" => "from the Vita+ clinic",
],
"color" => "#9676F9",
"photo" => "factory/case_study.jpg",
"published" => true,
"template" => "vita",
Project::factory()->create([
"name_first_part" => [
"pl" => "Aplikacja do",
"en" => "Application for",
],
"name_second_part" => [
"pl" => "zamawiania usług medycznych",
"en" => "ordering medical services",
],
"name_third_part" => [
"pl" => "z przychodni Vita+",
"en" => "from the Vita+ clinic",
],
);
"color" => "#9676F9",
"photo" => "factory/case_study.jpg",
"published" => true,
"slug" => "vita",
"template" => "vita",
]);
}

private function seedGetTheBox(): void
{
Project::updateOrCreate(
["slug" => "getthebox"],
[
"name_first_part" => [
"pl" => "Aplikacja shared economy do",
"en" => "Shared economy application for",
],
"name_second_part" => [
"pl" => "przewozów przesyłek",
"en" => "the transport of parcels",
],
"name_third_part" => [
"pl" => null,
"en" => null,
],
"color" => "#FAD12A",
"photo" => "factory/case_study.jpg",
"published" => true,
"template" => "getthebox",
Project::factory()->create([
"name_first_part" => [
"pl" => "Aplikacja shared economy do",
"en" => "Shared economy application for",
],
);
"name_second_part" => [
"pl" => "przewozów przesyłek",
"en" => "the transport of parcels",
],
"name_third_part" => [
"pl" => null,
"en" => null,
],
"color" => "#FAD12A",
"photo" => "factory/case_study.jpg",
"published" => true,
"slug" => "getthebox",
"template" => "getthebox",
]);
}

private function seedK1(): void
{
Project::updateOrCreate(
["slug" => "k1"],
[
"name_first_part" => [
"pl" => "System",
"en" => "System for",
],
"name_second_part" => [
"pl" => "zarządzania licencjami i dystrybucji",
"en" => "managing licenses and distributing",
],
"name_third_part" => [
"pl" => "oprogramowania",
"en" => "Software",
],
"color" => "#FF5555",
"photo" => "factory/case_study.jpg",
"published" => true,
"template" => "k1",
Project::factory()->create([
"name_first_part" => [
"pl" => "System",
"en" => "System for",
],
"name_second_part" => [
"pl" => "zarządzania licencjami i dystrybucji",
"en" => "managing licenses and distributing",
],
);
"name_third_part" => [
"pl" => "oprogramowania",
"en" => "Software",
],
"color" => "#FF5555",
"photo" => "factory/case_study.jpg",
"published" => true,
"slug" => "k1",
"template" => "k1",
]);
}

private function seedCarbon(): void
{
Project::updateOrCreate(
["slug" => "carbon"],
[
"name_first_part" => [
"pl" => "Aplikacja do kalkulacji śladu węglowego i generowania",
"en" => "An app for calculating carbon footprints and generating",
],
"name_second_part" => [
"pl" => "raportów emisji CO₂",
"en" => "CO₂ emissions reports",
],
"name_third_part" => [
"pl" => null,
"en" => null,
],
"color" => "#F39200",
"photo" => "factory/case_study.jpg",
"published" => true,
"template" => "carbon",
Project::factory()->create([
"name_first_part" => [
"pl" => "Aplikacja do zbierania danych i generowania raportów",
"en" => "Application for collecting data and generating reports",
],
);
}

private function seedEmployeeRequests(): void
{
Project::updateOrCreate(
["slug" => "employee-requests"],
[
"name_first_part" => [
"pl" => "System do zarządzania wnioskami zgłaszanymi przez pracowników firmy",
"en" => "A system for managing requests submitted by company employees",
],
"name_second_part" => [
"pl" => null,
"en" => null,
],
"name_third_part" => [
"pl" => null,
"en" => null,
],
"color" => "#000000",
"photo" => "factory/case_study.jpg",
"published" => true,
"template" => "employee-requests",
"name_second_part" => [
"pl" => "dotyczących śladu węglowego",
"en" => "regarding carbon footprint",
],
"name_third_part" => [
"pl" => null,
"en" => null,
],
);
"color" => "#F39200",
"photo" => "factory/case_study.jpg",
"published" => true,
"slug" => "carbon",
"template" => "carbon",
]);
}
}
7 changes: 2 additions & 5 deletions lang/en/buttons.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
declare(strict_types=1);

return [
"about" => "About us",
"about" => "About company",
"lets_talk" => "Let's talk",
"text_us" => "Text us!",
"text_us_1" => "Text ",
"text_us_2" => "us!",
"see_our_projects" => "See our projects",
"see_more_projects" => "See more projects",
"case_study" => "Go to case study",
"see_all" => "See all",
"send" => "Send",
Expand All @@ -20,7 +20,4 @@
"back_to_portfolio" => "Back to portfolio",
"accept_all" => "Accept all",
"download" => "Download",
"see_how_we_can_help" => "How can we help you",
"schedule_free_consultation" => "Schedule a free consultation",
"join_happy_customers" => "Join our satisfied customers",
];
Loading
Loading