@if(\Illuminate\Support\Facades\Session::has('boutique_admin')) @php ; \Illuminate\Support\Facades\Session::put('boutique',\Illuminate\Support\Facades\Session::get('boutique_admin')); $user=\Illuminate\Support\Facades\Auth::user()->slug; $almostmarketer = \Illuminate\Support\Facades\DB::table('marketer_shops')->where('marketer_slug', Auth::user()->slug)->where('shop_slug',\Illuminate\Support\Facades\Session::get('boutique')['slug'])->where('marketer_accept',true)->where('status',true)->count(); $user_boutique_slug=\Illuminate\Support\Facades\Session::get('boutique')['user_slug']; @endphp @if($user!=$user_boutique_slug) @if($almostmarketer<=0) @endif @endif @endif