diff --git a/app/Http/Controllers/FrontendController.php b/app/Http/Controllers/FrontendController.php index 3fc0f76..25fe538 100644 --- a/app/Http/Controllers/FrontendController.php +++ b/app/Http/Controllers/FrontendController.php @@ -18,7 +18,7 @@ class FrontendController extends Controller $data['sliderItems'] = Slider::all(); $data['preparations'] = Preparation::all(); $data['services'] = Service::all(); - $data['about'] = About::all(); + $data['abouts'] = About::all(); // $data['contact'] = Contact::first(); // $data['testimonials'] = Testimonial::all(); // $data['partners'] = Partner::all(); diff --git a/resources/views/frontend/home.blade.php b/resources/views/frontend/home.blade.php index de6aec1..7523e6a 100644 --- a/resources/views/frontend/home.blade.php +++ b/resources/views/frontend/home.blade.php @@ -5,7 +5,7 @@ @include('frontend.partials.slider', ['sliderItems' => $sliderItems]) @include('frontend.partials.preparation', ['preparations' => $preparations]) @include('frontend.partials.service', ['services' => $services]) - @include('frontend.partials.about', ['about' => $about]) + @include('frontend.partials.about', ['abouts' => $abouts]) {{-- @include('frontend.partials.contact', ['contact' => $contact]) --}} {{-- @include('frontend.partials.testimonial', ['testimonials' => $testimonials]) --}} {{-- @include('frontend.partials.partners', ['partners' => $partners]) --}} diff --git a/resources/views/frontend/partials/about.blade.php b/resources/views/frontend/partials/about.blade.php index d460712..3d8fca0 100644 --- a/resources/views/frontend/partials/about.blade.php +++ b/resources/views/frontend/partials/about.blade.php @@ -1,54 +1,8 @@ - {{-- @dd($about_nclex) --}} - {{-- @dd($popups) --}}
- {{--
- -
-
-

{{$about_nclex->title}}

-

{{$about_nclex->short_description}}

-

{!!$about_nclex->description!!}

- -
-
-
--}} - {{--
-
-
-

We believe in your potential and are here to help you achieve your goal of becoming a licensed nurse.

-

To know more about us make an appointment with us.

- -
-
-
--}} - {{--
- -
-
-
--}} @foreach($abouts as $about)
@endforeach - {{--
- -
-
-
-
-
-
- single-img-10 -
-
-
-
-
-

-

-
-
- -
-
-

We wish you the best of luck on your NCLEX journey!

-

Become a Licensed Nurse

-
-
-
-
-
-
-
-
-
- single-img-09 -
--}}
diff --git a/routes/web.php b/routes/web.php index 8024ac9..af5aefb 100644 --- a/routes/web.php +++ b/routes/web.php @@ -11,7 +11,7 @@ use App\Http\Controllers\ServiceController; use App\Http\Controllers\AboutController; Route::get('/', [FrontendController::class, 'homePage'])->name('home'); -Route::get('/about', [FrontendController::class, 'aboutPage'])->name('about'); +Route::get('/aboutpage', [FrontendController::class, 'aboutPage'])->name('aboutpage'); Route::get('/dashboard', function () {