{{-- * LaraClassifier - Classified Ads Web Application * Copyright (c) BeDigit. All Rights Reserved * * Website: https://laraclassifier.com * Author: Mayeul Akpovi (BeDigit - https://bedigit.com) * * LICENSE * ------- * This software is furnished under a license and may be used and copied * only in accordance with the terms of such license and with the inclusion * of the above copyright notice. If you Purchased from CodeCanyon, * Please read the full License from here - https://codecanyon.net/licenses/standard --}} @extends('layouts.master') @php $promoPackages ??= []; $promoPackagesErrorMessage ??= ''; $subsPackages ??= []; $subsPackagesErrorMessage ??= ''; $isAllTypesOfPackageExist = (!empty($promoPackages) && !empty($subsPackages)); $isAllTypesOfPackageNotExist = (empty($promoPackages) && empty($subsPackages)); $errorMessage = t('no_packages_found'); // Get the active tab $defaultPackageType = config('settings.listing_form.default_package_type'); $packageType = request()->query('type', $defaultPackageType); // Get the active tab (by checking if its packages exist) $packageType = ($packageType == 'promotion' && !empty($promoPackages)) ? 'promotion' : 'subscription'; $packageType = ($packageType == 'subscription' && !empty($subsPackages)) ? 'subscription' : 'promotion'; // Set the active tab classes $promoLinkClass = ($packageType == 'promotion') ? 'active' : ''; $subsLinkClass = ($packageType == 'subscription') ? 'active' : ''; $promoContentClass = !empty($promoLinkClass) ? 'show ' . $promoLinkClass : ''; $subsContentClass = !empty($subsLinkClass) ? 'show ' . $subsLinkClass : ''; @endphp @section('content') @includeFirst([config('larapen.core.customizedViewPath') . 'common.spacer', 'common.spacer'])

{{ t('Pricing') }}


@if (!$isAllTypesOfPackageNotExist) @if ($isAllTypesOfPackageExist) @endif
@if (!empty($promoPackages))
@include('pages.pricing.promo-packages', [ 'packages' => $promoPackages, 'message' => $promoPackagesErrorMessage ])
@endif @if (!empty($subsPackages))
@include('pages.pricing.subs-packages', [ 'packages' => $subsPackages, 'message' => $subsPackagesErrorMessage ])
@endif
@else
{{ $errorMessage ?? null }}
@endif
@endsection @section('after_styles') @endsection @section('after_scripts') @endsection