@extends('front.layouts.master')

@section('seo_title', $service->seo_title)
@section('seo_meta_description', $service->seo_meta_description)

@section('content')
<!-- Banner Section -->
<section class="page-title" style="background-image: url({{ asset('uploads/'.$global_setting->banner) }});">
    <div class="auto-container">
        <div class="title-outer">
            <h1 class="title">{{ $service->name }}</h1>
            <ul class="page-breadcrumb">
                <li><a href="{{ url('/') }}">{{ __('Home') }}</a></li>
                <li><a href="{{ route('services') }}">{{ $global_other_page_items->page_services_title }}</a></li>
                <li>{{ $service->name }}</li>
            </ul>
        </div>
    </div>
</section>
<!-- // Banner Section -->


<!-- Service Detail Section -->
<section class="services-details">
    <div class="container">
        <div class="row">
            <div class="col-xl-4 col-lg-4">
                <div class="service-sidebar">
                    <div class="sidebar-widget service-sidebar-single">
                        <div class="sidebar-service-list">
                            <ul>
                                @php $i=0; @endphp
                                @foreach ($services as $row)
                                @php $i++; @endphp
                                <li class="@if($row['slug'] == $service->slug) 'current' @endif"><a href="{{ route('service',$row->slug) }}" class="current"><i class="fas fa-angle-right"></i><span>{{ $row->name }}</span></a></li>
                                @endforeach
                            </ul>
                        </div>

                        @if($service->phone != '')
                        <div class="service-details-help">
                            <div class="help-shape-1"></div>
                            <div class="help-shape-2"></div>
                            <h2 class="help-title">{{ __('Contact Us for Any Advice') }}</h2>
                            <div class="help-icon">
                                <span class=" lnr-icon-phone-handset"></span>
                            </div>
                            <div class="help-contact">
                                <p>{{ __('Need Help? Talk to Expert') }}</p>
                                <a href="tel:{{ $service->phone }}">{{ $service->phone }}</a>
                            </div>
                        </div>
                        @endif

                        @if($service->pdf != '')
                        <div class="sidebar-widget service-sidebar-single mt-4">
                            <div class="service-sidebar-single-btn wow fadeInUp" data-wow-delay="0.5s" data-wow-duration="1200m">
                                <a href="{{ asset('uploads/'.$service->pdf) }}" class="theme-btn btn-style-one d-grid"><span class="btn-title"><span class="fas fa-file-pdf"></span> {{ __('Download PDF File') }}</span></a>
                            </div>
                        </div>
                        @endif

                    </div>
                </div>
            </div>

            <div class="col-xl-8 col-lg-8">
                <div class="services-details__content">
                    <img src="{{ asset('uploads/'.$service->banner) }}" alt="">
                    <h3 class="mt-4">{{ __('Service Overview') }}</h3>
                    <p>
                        {{ $service->description }}
                    </p>
                    <div class=" mt-25">
                        <h3 class="mb_30">{{ __('Frequently Asked Question') }}</h3>
                        <ul class="accordion-box wow fadeInRight">
                            @php $i=0; @endphp
                            @foreach ($service_faqs as $row)
                            @php $i++; @endphp
                            <li class="accordion block @if($i==1) 'active-block' @endif">
                                <div class="acc-btn @if($i==1) 'active' @endif">{{ $row->question }}
                                    <div class="icon fa fa-plus"></div>
                                </div>
                                <div class="acc-content @if($i==1) 'current' @endif">
                                    <div class="content">
                                        <div class="text">
                                            {!! nl2br($row->answer) !!}
                                        </div>
                                    </div>
                                </div>
                            </li>
                            @endforeach
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>
<!-- // Service Detail Section -->
@endsection