@php use App\Models\SubscriptionPlan; $user = Auth::user(); $plans = SubscriptionPlan::where('billing_provider', Auth::user()?->billing_provider ?? config('saashovel.BILLING_PROVIDER'))->get()->keyBy('tier')->toArray(); $subTier = \App\Models\SubscriptionPlan::where('plan_id', $user->subscriptionsNP()->latest()->first()?->nowpayments_plan)->first()?->name; @endphp @can('access premium features') @endcan @can('access basic features') @endcan