@extends('front.layouts.master')

@section('seo_title', $global_other_page_items->page_pricing_seo_title)
@section('seo_meta_description', $global_other_page_items->page_pricing_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">{{ $global_other_page_items->page_pricing_title }}</h1>
            <ul class="page-breadcrumb">
                <li><a href="{{ route('home') }}">{{ __('Home') }}</a></li>
                <li>{{ $global_other_page_items->page_pricing_title }}</li>
            </ul>
        </div>
    </div>
</section>
<!-- // Banner Section -->

<!-- Pricing Section -->
<section class="pricing-section">
    <div class="bg"></div>
    <div class="auto-container">
        <div class="row">
            @foreach($pricing_plans as $row)
            <div class="pricing-block @if($row->is_popular == 'Yes') 'tagged' @endif col-lg-4 col-md-6 col-sm-12">
                <div class="inner-box">
                    <div class="title-box">
                        <h3 class="title">{{ $row->plan_name }}</h3>
                        <div class="text">{!! nl2br($row->description) !!}</div>
                    </div>
                    <h2 class="price"><sup>{{ $global_setting->currency_symbol }}</sup>{{ $row->price }}<sub>/{{ $row->period }}</sub></h2>
                    <h6 class="sub-title">{{ __('All Basic Services Include') }}</h6>
                    <ul class="features">  
                        @php
                            $options = explode(',', $row->options);
                        @endphp    
                        @foreach($options as $option)
                        <li>{{ $option }}</li>
                        @endforeach  
                    </ul>
                    <a href="{{ $row->button_url }}" class="theme-btn btn-style-one"><span class="btn-title">{{ $row->button_text }}</span></a>
                </div>
            </div>
            @endforeach
        </div>
    </div>
</section>
<!-- // Pricing Section -->

@endsection