From f9ce7d540c95090ae2002a2da9241d46896664e7 Mon Sep 17 00:00:00 2001 From: xander Date: Wed, 26 Mar 2025 17:37:38 +0000 Subject: [PATCH] fixed factories (files were in the wrong repo somehow) --- database/factories/EmployerFactory.php | 23 ++ database/factories/JobFactory.php | 28 +++ database/factories/RatingFactory.php | 23 ++ database/factories/UserFactory.php | 3 +- resources/views/jobs/.edit.blade.php.kate-swp | Bin 0 -> 86 bytes resources/views/jobs/create.blade.php | 9 - resources/views/jobs/edit.blade.php | 237 ++++++++++++++++++ resources/views/jobs/show.blade.php | 3 + 8 files changed, 316 insertions(+), 10 deletions(-) create mode 100644 database/factories/EmployerFactory.php create mode 100644 database/factories/JobFactory.php create mode 100644 database/factories/RatingFactory.php create mode 100644 resources/views/jobs/.edit.blade.php.kate-swp create mode 100644 resources/views/jobs/edit.blade.php diff --git a/database/factories/EmployerFactory.php b/database/factories/EmployerFactory.php new file mode 100644 index 0000000..769eb1d --- /dev/null +++ b/database/factories/EmployerFactory.php @@ -0,0 +1,23 @@ + + */ +class EmployerFactory extends Factory +{ + /** + * Define the model's default state. + * + * @return array + */ + public function definition(): array + { + return [ + 'name' => fake()->company() + ]; + } +} diff --git a/database/factories/JobFactory.php b/database/factories/JobFactory.php new file mode 100644 index 0000000..62100a3 --- /dev/null +++ b/database/factories/JobFactory.php @@ -0,0 +1,28 @@ + + */ +class JobFactory extends Factory +{ + /** + * Define the model's default state. + * + * @return array + */ + public function definition(): array + { + return [ + 'title' => fake()->jobTitle(), + 'employer_id' => Employer::factory(), + 'salary' => fake()->numberBetween($min = 30000, $max = 125000), + 'id' => Rating::factory(), + ]; + } +} diff --git a/database/factories/RatingFactory.php b/database/factories/RatingFactory.php new file mode 100644 index 0000000..3c5a703 --- /dev/null +++ b/database/factories/RatingFactory.php @@ -0,0 +1,23 @@ + + */ +class RatingFactory extends Factory +{ + /** + * Define the model's default state. + * + * @return array + */ + public function definition(): array + { + return [ + 'score' => fake()->randomDigit(), + ]; + } +} diff --git a/database/factories/UserFactory.php b/database/factories/UserFactory.php index 584104c..d03e102 100644 --- a/database/factories/UserFactory.php +++ b/database/factories/UserFactory.php @@ -24,7 +24,8 @@ class UserFactory extends Factory public function definition(): array { return [ - 'name' => fake()->name(), + 'first_name' => fake()->firstName(), + 'last_name' => fake()->lastName(), 'email' => fake()->unique()->safeEmail(), 'email_verified_at' => now(), 'password' => static::$password ??= Hash::make('password'), diff --git a/resources/views/jobs/.edit.blade.php.kate-swp b/resources/views/jobs/.edit.blade.php.kate-swp new file mode 100644 index 0000000000000000000000000000000000000000..466961a202cfd132dc358a278ded50bbca34f0ed GIT binary patch literal 86 zcmZQzU=Z?7EJ;-eE>A2_aLdd|RWQ;sU|?VnDR^6dHS~&0Me?_6j}A`cGJc-#dOA1= cD8miJAW#kBaDkZ&3~r%72DfW4h~jbu05>!gyZ`_I literal 0 HcmV?d00001 diff --git a/resources/views/jobs/create.blade.php b/resources/views/jobs/create.blade.php index 70ed7fd..d416613 100644 --- a/resources/views/jobs/create.blade.php +++ b/resources/views/jobs/create.blade.php @@ -25,15 +25,6 @@ Create Job -
- -
-
-
workcation.com/
- -
-
-
diff --git a/resources/views/jobs/edit.blade.php b/resources/views/jobs/edit.blade.php new file mode 100644 index 0000000..70ed7fd --- /dev/null +++ b/resources/views/jobs/edit.blade.php @@ -0,0 +1,237 @@ + + +Create Job + + +

+

+ @csrf +
+
+

Profile

+

This information will be displayed publicly so be careful what you share.

+ +
+
+ +
+
+
workcation.com/
+ +
+ @error('title') +

{{$message}}

+ @enderror +
+
+ +
+ +
+
+
workcation.com/
+ +
+
+ +
+ +
+
+
workcation.com/
+ +
+ @error('salary') +

{{$message}}

+ @enderror +
+ + + +
+ +
+ + +
+
+ +
+ +
+
+ +
+ +

or drag and drop

+
+

PNG, JPG, GIF up to 10MB

+
+
+
+
+
+ +
+

Personal Information

+

Use a permanent address where you can receive mail.

+ +
+
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ + +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+
+
+ +
+

Notifications

+

We'll always let you know about important changes, but you pick what else you want to hear about.

+ +
+
+ By email +
+
+
+
+ + + + + +
+
+
+ +

Get notified when someones posts a comment on a posting.

+
+
+
+
+
+ + + + + +
+
+
+ +

Get notified when a candidate applies for a job.

+
+
+
+
+
+ + + + + +
+
+
+ +

Get notified when a candidate accepts or rejects an offer.

+
+
+
+
+ +
+ Push notifications +

These are delivered via SMS to your mobile phone.

+
+
+ + +
+
+ + +
+
+ + +
+
+
+
+
+
+ +
+ + +
+ + +

+ diff --git a/resources/views/jobs/show.blade.php b/resources/views/jobs/show.blade.php index 0bcf4db..23c9d2e 100644 --- a/resources/views/jobs/show.blade.php +++ b/resources/views/jobs/show.blade.php @@ -6,4 +6,7 @@ Job

This job pays {{ $job['salary'] ?? 'N/A' }} per year

+

+ Edit +