@foreach ($currencies as $currency) @endforeach
@foreach ($packages as $package)
$package->is_recommended, 'border-gray-200 dark:border-gray-700' => ! $package->is_recommended ])> @if ($package->is_recommended)
@lang('modules.billing.popular')
@endif

{{ $package->package_name }}

@if ($package->is_free) @lang('modules.billing.free') @else {{ global_currency_format($package->package_type === App\Enums\packageType::LIFETIME ? $package->price : ($isAnnual ? $package->annual_price : $package->monthly_price), $package->currency_id) }} @endif
@if ($package->package_type === App\Enums\packageType::DEFAULT)
@lang('modules.package.defaultPlan')
@elseif ($package->package_type === App\Enums\packageType::LIFETIME) @lang('modules.billing.lifetimeAccess') @elseif (!$package->is_free) @lang('modules.billing.billed') {{ $isAnnual ? __('modules.billing.annually') : __('modules.billing.monthly') }} @endif

@lang('landing.features')

@php $packageAllModules = array_merge( $package->modules->pluck('name')->toArray(), $package->additional_features ? json_decode($package->additional_features, true) : [] ); @endphp
    @foreach ($AllModulesWithFeature as $moduleName)
  • @if (in_array($moduleName, $packageAllModules)) @else @endif {{ __('permissions.modules.'.$moduleName) }}
  • @endforeach
@if ($package->is_free || $paymentActive || ($package->id == $restaurant->package_id && $restaurant->package_type == ($isAnnual ? 'annual' : 'monthly')) || $package->package_type == App\Enums\PackageType::DEFAULT)
@if($package->id == $restaurant->package_id && ($restaurant->package_type == ($isAnnual ? 'annual' : 'monthly') || !in_array($restaurant->package_type, ['annual', 'monthly']))) @else @endif
@else
@lang('modules.billing.noPaymentOptionEnable')
@endif
@endforeach
@if($free) @lang('modules.billing.choosePlan') @else @lang('modules.billing.choosePaymentMethod') @endif @if(!$free)
@switch($show) @case('payment-method') @include('plans.payment-methods') @break @case('authorize') @include('plans.authorize-payment-method-form') @break @default

@lang('modules.billing.noPaymentMethodSelected')

@endswitch
@else
@lang($selectedPlan->packageType === App\Enums\PackageType::DEFAULT ? 'modules.package.choseDefaultPlan' : 'modules.package.choseFreePlan')
@endif
@lang('app.cancel') @if($offlineMethodId) @lang($show === 'authorize' ? 'app.save' : 'app.select') @endif
@if(!$free) @if($stripeSettings->razorpay_status == 1 || $stripeSettings->stripe_status == 1 || $stripeSettings->flutterwave_status == 1 || $stripeSettings->paypal_status == 1 || $stripeSettings->payfast_status == 1 || $stripeSettings->paystack_status == 1) @push('scripts') @script @endscript @endpush @endif @endif