@section('page-title', __('language.home')) {{-- @section('page-description', $detail->description) --}} @section('page-image', asset($detail->image ?? 'site/img/default.png')) @extends('site.master') @section('main-content') @php $currentLanguage = app()->getLocale(); @endphp @if ($websitetype->marquee == 1) {{-- marquee news slide starts --}}
@endif
@foreach ($slider as $item)
{{ $item->title }}

{{ $item->title }}

{{ $item->caption }}

@if ($item->product) @lang('language.learnmore') @endif
@endforeach
@foreach ($slider as $item) @if ($item->product) {{ $item->product->shortcode }} @endif @endforeach
{{--
our benifits
--}}

@lang('language.why_people') @lang('language.chooseus')

@lang('language.why_choose_us_p')

@foreach ($whyus as $key => $item) @php $words = explode(' ', $item->title); // Split title into words $lastWord = array_pop($words); // Extract the last word $titleWithoutLastWord = implode(' ', $words); // Reconstruct the title without the last word @endphp
{{ $titleWithoutLastWord }} @if ($lastWord) {{ $lastWord }} @endif
@endforeach
@foreach ($whyus as $key => $item) @php $words = explode(' ', $item->title); // Split title into words $lastWord = array_pop($words); // Extract the last word $titleWithoutLastWord = implode(' ', $words); // Reconstruct the title without the last word @endphp

{{ $titleWithoutLastWord }} @if ($lastWord) {{ $lastWord }} @endif

{{ $item->shrtsummary }}

@endforeach
{{-- why us --}}
Products

@php $producttitle = breakIntoHalves(__('language.producthomecontent')); @endphp {{ $producttitle[0] }} @if (count($producttitle) > 1) {{ $producttitle[1] }} @endif

@lang('language.producthomeparagraph')

@foreach ($products as $key => $item) @if ($key == 5) @break @endif
{{ $item->title }}
{{ $item->title }}
@php $summary = $item->srtsmry; $sentences = explode('.', $summary, 2); $firstSentence = trim($sentences[0]) . '.'; $secondSentence = isset($sentences[1]) ? trim($sentences[1]) : ''; @endphp
{{ $firstSentence }} {{ $secondSentence }}
Learn More
@endforeach
{{ calculateYearDifference($estd->estd) }} YEARS EXPERIENCE IN THIS FEILD
Our Satisfied Customers
    @if (!empty($testimonial) && count($testimonial) >= 4) @foreach ($testimonial as $item)
  • @endforeach @else
  • @endif
  • 99+
About Us
@php $about = breakIntoHalves(__('language.homeabout')); @endphp

{{ $about[0] }} @if (count($about) > 1) {{ $about[1] }} @endif

{!! strip_tags(Str::words($aboutus->description, 80, '...')) !!}
@foreach ($stats as $item)

{{ $item->count }} {{ $item->unit }}

{{ $item->title }}
@endforeach
@lang('language.viewallservices')
News & Media

@php $textcontent = breakIntoHalves(__('language.newsandmediatitle')); @endphp {{ $textcontent[0] }} @if (count($textcontent) > 1) {{ $textcontent[1] }} @endif

@php $firstPost = $singlecategoryposts->firstWhere('big_feature', true); @endphp {{-- {{dd($firstPost)}} --}} @if ($firstPost) @else

@lang('language.no_featured_posts_found')

@endif
@foreach ($singlecategoryposts->where('big_feature', false) as $post) @endforeach
Gallery & Videos

@php $gallerycontent = breakIntoHalves(__('language.gallerytitle')); @endphp {{ $gallerycontent[0] }} @if (count($gallerycontent) > 1) {{ $gallerycontent[1] }} @endif

@lang('language.viewmore') {{-- @lang('language.viewmore') --}}
@foreach ($albums as $item)
{{ $item->title }} {{ numEnToNp($item->photo_count + 1) }} @lang('language.photo')
{{ $item->title }}
@endforeach

Warning: Undefined variable $popupmessage in /home/nepalmicro/public_html/resources/views/site/home.blade.php on line 666

Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /home/nepalmicro/public_html/resources/views/site/home.blade.php:666 Stack trace: #0 {main} thrown in /home/nepalmicro/public_html/resources/views/site/home.blade.php on line 666