@php use App\Enums\BillingCycle; use App\Models\SubscriptionPlan; $zpLocale = $locale ?? app()->getLocale(); $zpEyebrow = ! empty($data['subheading'][$zpLocale]) ? $data['subheading'][$zpLocale] : \App\Support\ZilitpayPremiumText::get('plans_eyebrow'); $zpHeading = ! empty($data['heading'][$zpLocale]) ? $data['heading'][$zpLocale] : \App\Support\ZilitpayPremiumText::get('plans_title'); $zpDescription = ! empty($data['description'][$zpLocale]) ? $data['description'][$zpLocale] : \App\Support\ZilitpayPremiumText::get('plans_description'); $zpPlans = SubscriptionPlan::query() ->where('status', true) ->orderBy('sort_order') ->orderBy('id') ->with(['features', 'prices']) ->get(); $zpCurrencyCode = siteCurrency('code'); @endphp

{{ $zpEyebrow }}

{{ $zpHeading }}

{{ $zpDescription }}

@if($zpPlans->isEmpty())

{{ \App\Support\ZilitpayPremiumText::get('plans_empty_title') }}

{{ \App\Support\ZilitpayPremiumText::get('plans_empty_description') }}

@else
@foreach($zpPlans as $zpPlan) @endforeach
@endif