@extends('layouts.public') @section('content') @php $heroImage = site_setting('hero_image'); $primaryStats = $stats->take(3); @endphp {{-- Hero --}}
@if ($heroImage) @endif
{{ __('hero_badge') }}

{{ site_setting('hero_title') ?: __('hero_headline') }}

{{ site_setting('hero_subline') ?: __('hero_subline') }}

@if ($primaryStats->isNotEmpty())
@foreach ($primaryStats as $stat)
{{ app()->getLocale() === 'bn' ? bangla_digits($stat->value) : $stat->value }}{{ $stat->suffix }}
{{ $stat->t('label') }}
@endforeach
@endif
@include('partials.image', ['src' => $heroImage ?: ($products->first()?->image), 'alt' => __('site_name'), 'class' => 'h-[26rem] w-full object-cover', 'ratio' => 'aspect-[4/5]', 'icon' => 'sprout'])

{{ __('section_products') }}

{{ __('section_products_sub') }}

{{-- About preview --}} @if ($about)
@include('partials.image', ['src' => $about->image, 'alt' => $about->t('title'), 'class' => 'h-[30rem] w-full object-cover', 'ratio' => 'aspect-[4/5]', 'icon' => 'trees'])

{{ $stats->firstWhere('label', 'Years of Experience')?->value ?: ($stats->first()->value ?? '10') }}{{ $stats->first()?->suffix }}

{{ __('txt_experience') }}

{{ __('home_about_title') }}

{{ $about->t('title') }}

{{ $about->t('excerpt') }}

@foreach ([['icon' => 'target', 'title' => __('txt_mission'), 'text' => $about->option('mission')], ['icon' => 'eye', 'title' => __('txt_vision'), 'text' => $about->option('vision')]] as $block)

{{ $block['title'] }}

{{ $block['text'] }}

@endforeach
{{ __('read_more') }}
@endif {{-- Stats band --}} @if ($stats->isNotEmpty())
@foreach ($stats as $stat)

{{ app()->getLocale() === 'bn' ? bangla_digits($stat->value) : $stat->value }}{{ $stat->suffix }}

{{ $stat->t('label') }}

@endforeach
@endif {{-- Categories --}} @if ($categories->isNotEmpty())
@endif {{-- Featured products --}} @if ($products->isNotEmpty())
{{ __('section_products') }}

{{ __('section_products_sub') }}

{{ __('view_all') }}
@foreach ($products as $product) @include('partials.product-card', ['product' => $product]) @endforeach

{{ __('section_products_note') }}

@endif {{-- Solutions --}} @if ($solutions->isNotEmpty())
@foreach ($solutions as $solution)

{{ $solution->t('title') }}

{{ $solution->t('excerpt') }}

@endforeach
@endif {{-- Nursery preview --}} @if ($nursery)
{{ __('nursery') }}

{{ $nursery->t('title') }}

{{ $nursery->t('excerpt') }}

@foreach ($nurseryFeatures as $feature)

{{ $feature->t('title') }}

{{ $feature->t('description') }}

@endforeach
{{ __('see_nursery') }}
@foreach ($categories->take(4) as $i => $category)
@include('partials.image', ['src' => $category->image, 'alt' => $category->t('name'), 'class' => 'h-52 w-full object-cover', 'ratio' => 'aspect-square', 'icon' => 'sprout'])
@endforeach
@endif {{-- Why us --}} @if ($whyUs->isNotEmpty())
@foreach ($whyUs as $feature)

{{ $feature->t('title') }}

{{ $feature->t('description') }}

@endforeach
@endif {{-- Knowledge --}} @if ($posts->isNotEmpty())
@foreach ($posts as $post) @include('partials.blog-card', ['post' => $post]) @endforeach
@endif {{-- Testimonials --}} @if ($testimonials->isNotEmpty())
@foreach ($testimonials as $index => $testimonial)
@if ($testimonial->photo) {{ $testimonial->name }} @else {{ str($testimonial->name)->substr(0, 1) }} @endif
@for ($i = 0; $i < $testimonial->rating; $i++)@endfor

“{{ $testimonial->t('message') }}”

{{ $testimonial->t('name') }}

{{ $testimonial->t('occupation') }}@if($testimonial->location) · {{ $testimonial->location }}@endif

@endforeach @if ($testimonials->count() > 1)
@foreach ($testimonials as $index => $testimonial) @endforeach
@endif
@endif {{-- Gallery preview --}} @if ($galleryPreview->isNotEmpty())
@endif {{-- CTA --}}

{{ __('section_contact') }}

{{ __('section_contact_sub') }}

@endsection