@php use App\Models\Admin\Settings; use App\Models\Admin\CreatorVideos; use App\Models\Frontend\Notification; use App\Models\User\UserAuth; use App\Libraries\FileSystem; use Illuminate\Http\Request; $favicon = Settings::get('favicon'); $logo = Settings::get('logo'); $companyName = Settings::get('company_name'); $users = UserAuth::getRow($where = ['users.id' => UserAuth::getLoginId()]); @endphp
@if(UserAuth::isLogin()) @php $request = Request(); $notifications = Notification::getAll([],$where = ['notifications.to_id' => UserAuth::getLoginId()],"notifications.id desc",50); $unreadNotifications = Notification::getAll([],$where = ['notifications.to_id' => UserAuth::getLoginId(),'notifications.read' => 0],"notifications.id desc",50); @endphp @else @endif
@php $requestMethod = request()->route() ? explode("\\",request()->route()->getActionName()) : ""; @endphp @if(isset($requestMethod[4]) && $requestMethod[4] == 'CustomerDashboard') @elseif(isset($requestMethod[4]) && $requestMethod[4] == 'CreatorDashboard') @else @endif