@extends('front.layouts.master') @push('css') @endpush @section('title', __('static.landing_pages.landing_page')) @section('content') @php $classes = ['ride-box', 'user-box', 'driver-box', 'rating-box', 'ride-box']; $blogs = getBlogsByIds(@$content['blog']['blogs'] ?? []); $faqs = getFaqsByIds(@$content['faq']['faqs'] ?? []); $half = ceil(count($faqs ?? []) / 2); $testimonials = getTestimonialByIds(@$content['testimonial']['testimonials'] ?? []); @endphp @if ((int) (@$content['home']['status'] ?? 0))

{{ @$content['home']['title'] }}

{{ @$content['home']['description'] }}

@foreach($content['home']['button'] ?? [] as $index => $button) {{ $button['text'] ?? '' }} @endforeach
home-phone
home-phone
@endif @if ((int) (@$content['statistics']['status'] ?? 0))
@php $counters = $content['statistics']['counters'] ?? []; $leftCounters = array_slice($counters, 0, 2); $rightCounters = array_slice($counters, 2); @endphp
@foreach($leftCounters as $counter)

{{ $counter['count'] ?? 0 }}

{{ $counter['title'] ?? '' }}

{{ $counter['description'] ?? '' }}

@endforeach
home-phone
@foreach($rightCounters as $counter)

{{ $counter['count'] ?? 0 }}

{{ $counter['title'] ?? '' }}

{{ $counter['description'] ?? '' }}

@endforeach
@endif @if ((int) (@$content['feature']['status'] ?? 0) == 1)

{{ @$content['feature']['title'] }}

{{ @$content['feature']['description'] }}

@foreach($content['feature']['images'] ?? [] as $index => $item)

{{ $item['title'] ?? '' }}

{{ $item['description'] ?? '' }}

@endforeach
@php $firstImage = isset($content['feature']['images'][0]['image']) ? asset($content['feature']['images'][0]['image']) : ''; @endphp Feature Image
@endif @if ((int) (@$content['ride']['status'] ?? 0) == 1)

{{ @$content['ride']['title'] }}

{{ @$content['ride']['description'] }}

@foreach($content['ride']['step'] ?? [] as $index => $step)
Step {{ $index + 1 }}
@endforeach
@foreach($content['ride']['step'] ?? [] as $index => $step)
{{ $step['title'] ?? '' }}
{{ str_pad($index + 1, 2, '0', STR_PAD_LEFT) }}

{{ $step['title'] ?? '' }}

{{ $step['description'] ?? '' }}

@endforeach
@endif @if ((int) (@$content['faq']['status'] ?? 0) == 1)

{{ @$content['faq']['title'] }}

{{ @$content['faq']['sub_title'] }}

@php $faqs = collect($faqs ?? []); $faqsCount = $faqs->count(); $halfFaqs = ceil($faqsCount / 2); $leftFaqs = $faqs->take($halfFaqs); $rightFaqs = $faqs->skip($halfFaqs); @endphp
@foreach($leftFaqs as $index => $faq)

{{ data_get($faq, 'description') }}

@endforeach
@foreach($rightFaqs as $index => $faq) @php $realIndex = $index + $halfFaqs; @endphp

{{ data_get($faq, 'description') }}

@endforeach
@endif @if ((int) (@$content['testimonial']['status'] ?? 0) == 1)

{{ @$content['testimonial']['title'] }}

{{ @$content['testimonial']['sub_title'] }}

@forelse ($testimonials ?? [] as $testimonial)
@for($i=0; $i<5; $i++) @endfor {{ number_format(data_get($testimonial, 'rating') ?? 0, 1) }}

{{ data_get($testimonial, 'description') }}

{{ data_get($testimonial, 'name') }}
{{ data_get($testimonial, 'name') }}

{{ data_get($testimonial, 'designation') }}

@empty @endforelse
@endif @if ((int) (@$content['blog']['status'] ?? 0) == 1)

{{ @$content['blog']['title'] }}

{{ @$content['blog']['sub_title'] }}

@forelse($blogs ?? [] as $index => $blog)
@php $slug = data_get($blog, 'slug'); $thumbnail = data_get($blog, 'blog_thumbnail.original_url'); $createdAt = data_get($blog, 'created_at'); $title = data_get($blog, 'title'); $description = data_get($blog, 'description'); @endphp {{ $title ?? '' }}
{{ $createdAt instanceof \Carbon\Carbon ? $createdAt->format('d M, Y') : (is_string($createdAt) ? date('d M, Y', strtotime($createdAt)) : '') }}
{{ $title ?? '' }}

{{ $description ?? '' }}

{{ __('static.landing_pages.know_more') }}
@empty @endforelse
{{ __('static.landing_pages.view_all') }}
@endif @endsection @push('scripts') @endpush