@php use App\Models\MedicalNotifications; use App\Models\StudentBiodata; $MedicalNotificationsCount = 0; /*$userIDNotification = Auth::guard(config('constants.ADMIN_GUARD'))->check() ? Auth::guard(config('constants.ADMIN_GUARD'))->user()->id : Auth::guard(config('constants.STUDENT_GUARD'))->user()->id;*/ if (auth()->guard('admin')->check()) { $UserIDNotification = auth()->guard('admin')->user()->id; $UserRoleNotification = auth()->guard('admin')->user()->role; $UserDesignationNotification = auth()->guard('admin')->user()->designation; /*$MedicalNotifications = MedicalNotifications::where('read_status', 1);*/ $MedicalNotifications = MedicalNotifications::where('deleted', 0)->orderBy('id', 'desc'); $MedicalNotificationsCount = MedicalNotifications::where('read_status', 1) ->where('deleted', 0) ->orderBy('id', 'desc'); /* admin role */ if ($UserRoleNotification == 1) { $MedicalNotifications = $MedicalNotifications->where('created_by', '!=', null); $MedicalNotificationsCount = $MedicalNotificationsCount->where('created_by', '!=', null); } else { $MedicalNotifications = $MedicalNotifications->where('created_by', $UserIDNotification); $MedicalNotificationsCount = $MedicalNotificationsCount->where('created_by', $UserIDNotification); } $MedicalNotificationsCount = $MedicalNotificationsCount->count(); $MedicalNotifications = $MedicalNotifications->limit(800)->get()->toArray(); } @endphp Biopharma Child Preventive Health Services {{-- select2 css --}} -
@yield('content')
@include('admin.layouts.navbar')
@include('admin.layouts.footer') {{-- --}}