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 0000000..466961a Binary files /dev/null and b/resources/views/jobs/.edit.blade.php.kate-swp differ 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 +