@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) @php $isEnabled = in_array($moduleName, $packageAllModules); $showLimit = false; $limitValue = null; $limitLabel = ''; // Check if this module should show limit count if ($isEnabled) { if ($moduleName === 'Menu Item') { $showLimit = true; $limitValue = $package->menu_items_limit; $limitLabel = __('modules.package.menuItemsLimit'); } elseif ($moduleName === 'Order') { $showLimit = true; $limitValue = $package->order_limit; $limitLabel = __('modules.package.orderLimit'); } elseif ($moduleName === 'Staff') { $showLimit = true; $limitValue = $package->staff_limit; $limitLabel = __('modules.package.staffLimit'); } } @endphp
  • @if ($isEnabled) @else @endif
    {{ __('permissions.modules.'.$moduleName) }} @if ($showLimit && $limitValue !== null) @if ($limitValue == -1) ({{ __('modules.billing.unlimited') }}) @else @if ($moduleName === 'Order') ({{ number_format($limitValue) }} {{ __('modules.billing.perDay') }}) @else ({{ number_format($limitValue) }} {{ __('modules.billing.perPlan') }}) @endif @endif @endif
  • @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 || $stripeSettings->xendit_status == 1 || $stripeSettings->paddle_status == 1) @push('scripts') @script @endscript @endpush @endif @endif