@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'])

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

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

@forelse ($content['home']['button'] as $button) @if ($button['type'] == 'gradient') {{ $button['text'] }} @else {{ $button['text'] }} @endif @empty @endforelse
@if (file_exists_public(@$content['home']['right_phone_image']))
home-phone
@endif @if (file_exists_public(@$content['home']['left_phone_image']))
home-phone
@endif
@endif @if ($content['statistics']['status'] == 1)

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

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

@forelse($content['statistics']['counters'] ?? [] as $index => $counter)
@if (file_exists_public(@$counter['icon'])) @endif

{{ @$counter['text'] }}

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

0

@empty @endforelse
@endif @if ($content['feature']['status'] == 1)

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

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

@forelse ($content['feature']['images'] ?? [] as $index => $image)
@if (file_exists_public(@$image['image'])) map-gif @endif

{{ @$image['title'] }}

{{ @$image['description'] }}

@empty @endforelse
@endif @if ($content['ride']['status'] == 1)

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

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

screen-mockup
@forelse ($content['ride']['step'] as $step)
@if (file_exists_public($step['image'])) screen-img @endif
@empty @endforelse
@forelse ($content['ride']['step'] as $index => $step)

{{ str_pad($index + 1, 2, '0', STR_PAD_LEFT) }}

{{ $step['title'] }}

{{ $step['description'] }}

@empty @endforelse
@endif @if ($content['faq']['status'] == 1)

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

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

@forelse ($faqs as $index => $faq) @if ($index < $half)

{{ $faq['description'] }}

@endif @empty @endforelse
@forelse ($faqs as $index => $faq) @if ($index >= $half)

{{ $faq['description'] }}

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

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

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

{{ __('static.landing_pages.view_all') }}
@forelse ($blogs as $index => $blog)
{{@$blog['slug']}}
{{ $blog['title'] ?? '' }}

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

{{ $blog['created_at'] ? \Carbon\Carbon::parse($blog['created_at'])->format('d M, Y') : '' }}
{{ __('static.landing_pages.know_more') }}
@empty
@endforelse
@endif @if ($content['testimonial']['status'] == 1)

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

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

@forelse ($testimonials as $index => $testimonial)
{{ $testimonial?->title }}
{{ $testimonial?->title }}

{{ $testimonial?->description }}

({{ number_format($testimonial?->rating, 1) }})
@empty
@endforelse
@endif @endsection @push('scripts') @endpush