@extends('vendors.layout') @php $vendorId = Auth::guard('vendor')->user()->id; if ($vendorId) { $current_package = App\Http\Helpers\VendorPermissionHelper::packagePermission($vendorId); $listingCanAdd = packageTotalListing($vendorId) - vendorTotalListing($vendorId); if (!empty($current_package) && !empty($current_package->features)) { $permissions = json_decode($current_package->features, true); } } $requiredPermissions = ['Messenger', 'WhatsApp', 'Telegram', 'Tawk.To']; $intersection = array_intersect($permissions, $requiredPermissions); $count = count($intersection); @endphp @section('content')