@php $vendorId = $vendor_id; $current_package = App\Http\Helpers\VendorPermissionHelper::packagePermission($vendorId); if (!empty($current_package) && !empty($current_package->features)) { $permissions = json_decode($current_package->features, true); } else { $permissions = null; } $vendor_id = $vendor_id; if ($vendor_id != 0) { $dowgraded = App\Http\Helpers\VendorPermissionHelper::packagesDowngraded($vendor_id); $listingCanAdd = packageTotalListing($vendor_id) - vendorTotalListing($vendor_id); } @endphp @if ($current_package != '[]') @endif