@extends('layouts.main') @section('content') @php $hero = \App\Models\HeroSection::first(); $aboutUs = \App\Models\AboutUs::first(); $sectionTitle= \App\Models\SectionTitle::first(); $whyUs = \App\Models\WhyUs::first(); $cta = \App\Models\Cta::first(); if ($whyUs) { $whyUs->accordion_items = json_decode($whyUs->accordion_items, true); // true for associative array } $clientImages = \App\Models\ClientImage::all(); $skills = \App\Models\Skill::all(); $services = \App\Models\CardService::with('cards')->get(); $categories = \App\Models\Portfolio::select('category')->distinct()->get(); $portfolios = \App\Models\Portfolio::all(); $section = \App\Models\Section::all(); $teamSection = App\Models\TeamSection::first(); // Get the first team section $teamMembers = App\Models\TeamMember::all(); // Get all team members $pricingSection = App\Models\PricingSection::with('plans')->first(); $faqSection = App\Models\FAQSection::first(); // Check if the FAQ section exists and then fetch related FAQs based on section_id $faqs = $faqSection ? App\Models\FAQ::where('section_id', $faqSection->id)->get() : collect(); @endphp @if($section->where('section_name', 'hero')->first() && $section->where('section_name', 'hero')->first()->status == 1)

{{ $hero->heading ?? "" }}

{{ $hero->subheading ?? '' }}

@endif
@if(!empty($clientImages)) @if($section->where('section_name', 'clients')->first() && $section->where('section_name', 'clients')->first()->status == 1)
@foreach($clientImages as $clientImage)
@endforeach
@endif @endif @if($section->where('section_name', 'about_us')->first() && $section->where('section_name', 'about_us')->first()->status == 1)

{{ $aboutUs->title ?? '' }}

{{ $aboutUs->description1 ?? '' }}

    @foreach($aboutUs->list_items ?? [] as $item)
  • {{ $item ?? '' }}
  • @endforeach

{{ $aboutUs->description2 ?? '' }}

{{ $aboutUs->button_text ?? 'Learn More' }}
@endif @if(!empty($whyUs)) @if($section->where('section_name', 'why_us')->first()->status == 1)

{{ $whyUs->heading ?? "" }} {{ $whyUs->subheading ?? "" }}

{{ $whyUs->description ?? ""}}

 
@endif @endif @if(!empty($skills)) @if($section->where('section_name', 'skills')->first()->status == 1)

{{ $skills->first()->title ?? "" }}

{{$skills->first()->description ?? ""}}

@foreach ($skills as $skill)
{{ $skill->name ?? "" }} {{ $skill->percentage?? "" }}%
@endforeach
@endif @endif @if($section->where('section_name', 'services')->first()->status == 1)

{{ $services->first()->title ?? "" }}

{{ $services->first()->description ?? "" }}

@foreach($services as $service)
@foreach($service->cards as $index => $card)

{{ $card->card_title ?? "" }}

{{ $card->card_description ?? "" }}

@endforeach
@endforeach
@endif @if($section->where('section_name', 'cta')->first()->status == 1)

{{ $cta->title ?? "" }}

{{ $cta->description ?? "" }}

@endif @if($section->where('section_name', 'portfolio')->first()->status == 1)

{{ $sectionTitle->title ?? "" }}

{{ $sectionTitle->description ?? "" }}

  • All
  • @foreach($categories as $category)
  • {{ $category->category ?? "" }}
  • @endforeach
@foreach($portfolios as $portfolio)
{{ $portfolio->title ??

{{ $portfolio->title ?? "" }}

{{ $portfolio->category ?? ""}}

@endforeach
@endif @if($section->where('section_name', 'team')->first()->status == 1)

{{ $teamSection->title ?? ""}}

{{ $teamSection->description ?? "" }}

@foreach ($teamMembers as $member)
{{ $member->name  ??

{{ $member->name ?? "" }}

{{ $member->position ?? "" }}

{{ $member->bio ?? "" }}

@endforeach
@endif @if(!empty($pricingSection)) @if($section->where('section_name', 'pricing')->first()->status == 1)

Pricing

{{ $pricingSection->description ?? ""}}

@foreach($pricingSection->plans as $plan)

{{ $plan->plan_title ?? "" }}

${{ $plan->price ?? "" }} per {{ $plan->price_duration ?? ""}}

    @foreach(json_decode($plan->features) as $feature)
  • {{ $feature ?? "" }}
  • @endforeach
{{-- Get Started --}}
@endforeach
@endif @endif @if($section->where('section_name', 'faq')->first()->status == 1)

{{ $faqSection->title ?? 'Frequently Asked Questions' }}

{{ $faqSection->description ?? 'Here are some common questions asked by our users.' }}

    @forelse($faqs as $faq)
  • {{ $faq->question }}

    {{ $faq->answer ?? '' }}

  • @empty
  • No FAQs available at this time.
  • @endforelse
@endif @if($section->where('section_name', 'contact')->first()->status == 1)

Contact

Location:

{{ $footerSetting->address ?? ""}}

Call:

{{ $footerSetting->phone ?? ""}}

@csrf
Loading
Your message has been sent. Thank you!
@endif
@endsection