@php $adminColor = Modules\Appearance\Entities\AdminColor::where('is_active',1)->first(); if(Auth::user()->role->type == "superadmin"){ $notifications = Modules\OrderManage\Entities\CustomerNotification::where('read_status',0)->where(function($query){ $query->whereNotNull('seller_id') ->orWhere('customer_id',Auth::id()); })->latest()->get(); }else{ $notifications= Modules\OrderManage\Entities\CustomerNotification::where('read_status',0) ->where(function($query){ $query->where('seller_id',Auth::id()) ->orWhere('customer_id',Auth::id()); })->latest()->get(); } if($adminColor->background_type == "image"){ $background = "url(".showImage($adminColor->background_image).") no-repeat center"; }else{ $background = $adminColor->background_color; } if($adminColor->color_mode == "solid"){ $gradient1 = $adminColor->solid_color; $gradient2 = $adminColor->solid_color; $gradient3 = $adminColor->solid_color; }else{ $gradient1 = $adminColor->gradient_color_one; $gradient2 = $adminColor->gradient_color_two; $gradient3 = $adminColor->gradient_color_three; } @endphp @include('backEnd.partials._header')