/home/kueuepay/public_html/resources/views/frontend/section/choice-us.blade.php
@php
    $app_local  = get_default_language_code();
    $default    = App\Constants\LanguageConst::NOT_REMOVABLE;
    $slug       = Illuminate\Support\Str::slug(App\Constants\SiteSectionConst::CHOOSE_US_SECTION);
    $choose_us  = App\Models\Admin\SiteSections::getData($slug)->first();
@endphp
<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Why Choice Us Section
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
<section class="why-choice-us-section pt-80">
    <div class="container">
        <div class="section-tag">
            <span class="d-flex align-items-center">
                <p>{{ $choose_us->value->language->$app_local->title ?? $choose_us->value->language->$default->title ?? '' }}</p> <i class="las la-cog"></i>
            </span>
            <div class="section-element">
                <img src="{{ asset('public/frontend') }}/images/element/section-element.webp">
            </div>
        </div>
        <div class="row">
            <div class="col-xl-8 col-lg-10"> 
                <div class="section-title mb-40">
                    <h2 class="title">{{ $choose_us->value->language->$app_local->heading ?? $choose_us->value->language->$default->heading ?? '' }}</h2>
                    <p class="sub-title">{{ $choose_us->value->language->$app_local->sub_heading ?? $choose_us->value->language->$default->sub_heading ?? '' }}
                    </p>
                </div>
            </div>
        </div>
        <div class="choice-us-wrapper mb-30-none">
            @php
                $step = 1;
            @endphp
            @foreach ($choose_us->value->items ?? [] as $item)
                <div class="choice-us-card mb-30">
                    <div class="card-number">
                        <span>{{ $step++ }}</span>
                    </div>
                    <div class="card-details-wrapper">
                        <div class="content">
                            <h3 class="title">{{ $item->language->$app_local->item_title ?? $item->language->$default->item_title ?? '' }}</h3>
                            <p>{{ $item->language->$app_local->item_heading ?? $item->language->$default->item_heading ?? '' }}</p>
                        </div>
                        <div class="icon">
                            <i class="{{ $item->icon  }}"></i>
                        </div>
                    </div>
                </div>
            @endforeach
        </div>
    </div>
</section>

<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Best Practice

Best Practices

To ensure a smooth integration process and optimal performance, follow these best practices:

  1. Use secure HTTPS connections for all API requests.
  2. Implement robust error handling to handle potential issues gracefully.
  3. Regularly update your integration to stay current with any API changes or enhancements.