@php use App\User; use App\Plan; use App\BusinessCard; use Carbon\Carbon; // Card details $business_card = BusinessCard::where('card_id', Request::segment(3))->first(); // Fetch the user plan $plan = User::where('id', Auth::user()->id) ->where('status', 1) ->first(); $planData = json_decode($plan->plan_details, true); if ($planData) { // Fetch the updated plan details $plan_details = json_decode($plan->plan_details, true); } @endphp {{ __('Basic Details') }} {{ __('Categories') }} {{ __('Products') }} {{ __('Orders') }} {{ __('SEO') }} {{ __('Business Hours') }} {{-- Advanced Settings --}} @if ($plan_details['advanced_settings'] == 1) {{ __('Popups') }} {{ __('Advanced Settings') }} @endif {{-- Policies --}} {{ __('Policies') }} {{ __('Settings') }}