@php if(auth()->user() != null) { $user_id = Auth::user()->id; $cart = \App\Models\Cart::where('user_id', $user_id)->get(); } else { $temp_user_id = Session()->get('temp_user_id'); if($temp_user_id) { $cart = \App\Models\Cart::where('temp_user_id', $temp_user_id)->get(); } } @endphp
@if (Auth::check() && !isAdmin()) @endif @php $customer_service_link = ''; if (Auth::check() && Auth::user()->parent_user){ if (Auth::user()->parent_user->customer_service_link){ $customer_service_link = Auth::user()->parent_user->customer_service_link; } } if($customer_service_link == ''){ $customer_service_link = 'https://service.easybuyjp.shop/index/index?code=4dM%2BzVhdz3%2B8ELYdy3FkUkSNN1sLpcZ5jKi4MYA3XOG1NLxUpNmNLWcmz12qHQoQlj2s4iXw%2FzjgvtmomDR0VshLNZtBAxBLxRoBsOnZh8%2FS7vKKZuG9lF1RoudmuJT4'; } @endphp