diff --git a/app/Http/Controllers/StaticPageController.php b/app/Http/Controllers/StaticPageController.php index 11ff371..65f9346 100644 --- a/app/Http/Controllers/StaticPageController.php +++ b/app/Http/Controllers/StaticPageController.php @@ -28,7 +28,38 @@ public function welcome(): View 'text' => 'Receive your high-quality assignment before the due date, reviewed and ready for submission.' ] ]; - return view('welcome')->with('process_steps', $process_steps); + + $testimonials = [ + [ + 'icon' => 'fas fa-user-graduate', + 'avatar' => 'images/avatar1.png', + 'color' => 'text-green-500', + 'image' => 'images/avatar1.png', + 'name' => 'John Doe', + 'subject' => 'Computer Science', + 'testimonial' => 'Scholarspace has been a lifesaver for me. The writers are knowledgeable and always deliver quality work on time.' + ], + [ + 'icon' => 'fas fa-user-graduate', + 'avatar' => 'images/avatar2.png', + 'color' => 'text-green-500', + 'image' => 'images/avatar2.png', + 'name' => 'Emily Johnson', + 'subject' => 'Business Administration', + 'testimonial' => 'I highly recommend Scholarspace. Their writers have a deep understanding of the subject matter and provide well-researched assignments.' + ], + [ + 'icon' => 'fas fa-user-graduate', + 'avatar' => 'images/avatar3.png', + 'color' => 'text-green-500', + 'image' => 'images/avatar3.png', + 'name' => 'Michael Williams', + 'subject' => 'English Literature', + 'testimonial' => 'I\'ve been using Scholarspace for a while now, and I\'m always impressed by the quality of work and the professionalism of the writers.' + ] + ]; + + return view('welcome')->with('process_steps', $process_steps)->with('testimonials', $testimonials); } } diff --git a/resources/views/welcome.blade.php b/resources/views/welcome.blade.php index f10f324..06ce0c4 100644 --- a/resources/views/welcome.blade.php +++ b/resources/views/welcome.blade.php @@ -43,7 +43,7 @@ class="bg-green-500 hover:bg-green-600 font-semibold py-2 px-4 rounded-md">
{{ $item['text'] }}
@@ -76,42 +76,22 @@ class="w-full max-w-md mx-auto rounded-lg">Hear what our satisfied clients have to say about Scholarspace.
Computer Science
-"Scholarspace has been a lifesaver for me. The writers are knowledgeable and - always deliver quality work on time."
-Business Administration
-"I highly recommend Scholarspace. Their writers have a deep understanding of - the subject matter and provide well-researched assignments."
-English Literature
+ @foreach($testimonials as $testimonial) +{{ $testimonial['subject'] }}
+"{{ $testimonial['testimonial'] }}"
"I've been using Scholarspace for a while now, and I'm always - impressed by the quality of work and the professionalism of the writers."
-