update
This commit is contained in:
@@ -1,3 +1,14 @@
|
||||
@php
|
||||
$criticalNotificationCount = 0;
|
||||
$criticalNotificationItems = collect();
|
||||
if (Session::get('id') !== null) {
|
||||
$criticalNotificationCount = \App\CriticalValueSample::whereNull('followed_up_at')->count();
|
||||
$criticalNotificationItems = \App\CriticalValueSample::whereNull('followed_up_at')
|
||||
->orderBy('critical_set_at', 'asc')
|
||||
->limit(8)
|
||||
->get();
|
||||
}
|
||||
@endphp
|
||||
<header id="topnav">
|
||||
<div class="topbar-main">
|
||||
<div class="container-fluid">
|
||||
@@ -20,21 +31,40 @@
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
@if(Session::get('id') !== null)
|
||||
@if (isset($antrkrmsitu))
|
||||
<li class="dropdown notification-list">
|
||||
<a class="nav-link dropdown-toggle arrow-none waves-effect" data-toggle="dropdown" href="#" role="button"
|
||||
aria-haspopup="false" aria-expanded="false">
|
||||
<i class="fi-bell noti-icon"></i>
|
||||
<span class="badge badge-danger badge-pill noti-icon-badge">{{$antrkrmsitu}}</span>
|
||||
</a>
|
||||
<div class="dropdown-menu dropdown-menu-right dropdown-lg">
|
||||
<a href="checkout" class="dropdown-item text-center text-primary notify-item notify-all">
|
||||
Sync To INSITU <i class="fi-arrow-right"></i>
|
||||
</a>
|
||||
<li class="dropdown notification-list">
|
||||
<a class="nav-link dropdown-toggle arrow-none waves-effect" data-toggle="dropdown" href="#">
|
||||
<i class="fi-bell noti-icon" id="notification-bell-icon"></i>
|
||||
<span class="badge badge-danger badge-pill noti-icon-badge" id="notificationcount">{{ $criticalNotificationCount }}</span>
|
||||
</a>
|
||||
<div class="dropdown-menu dropdown-menu-right dropdown-lg" id="notifikasi-verifikasi-bell">
|
||||
<div class="dropdown-item noti-title">
|
||||
<h5 class="m-0">
|
||||
<span class="float-right">
|
||||
<a href="{{ route('criticalValueNotifications') }}" class="text-dark"><small>Lihat Semua</small></a>
|
||||
</span>
|
||||
Nilai Kritis
|
||||
</h5>
|
||||
</div>
|
||||
</li>
|
||||
@endif
|
||||
<div style="max-height: 320px; overflow-y: auto;">
|
||||
@if($criticalNotificationItems->isEmpty())
|
||||
<div class="dropdown-item text-muted">Tidak ada sample nilai kritis yang perlu dilaporkan.</div>
|
||||
@else
|
||||
@foreach($criticalNotificationItems as $criticalItem)
|
||||
<a href="{{ route('criticalValueNotificationOpen', $criticalItem->id) }}" class="dropdown-item notify-item">
|
||||
<div class="notify-icon bg-warning"><i class="fa fa-exclamation-triangle"></i></div>
|
||||
<p class="notify-details">
|
||||
{{ $criticalItem->nofoto ?? '-' }} - {{ $criticalItem->nmpasien ?? 'Tanpa Nama' }}
|
||||
<small class="text-muted">
|
||||
Set: {{ $criticalItem->critical_set_at ? \Carbon\Carbon::parse($criticalItem->critical_set_at)->format('d-m-Y H:i:s') : '-' }}
|
||||
</small>
|
||||
</p>
|
||||
</a>
|
||||
@endforeach
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
@if(Session::get('id') !== null)
|
||||
<li class="dropdown notification-list">
|
||||
<a class="nav-link dropdown-toggle waves-effect nav-user" data-toggle="dropdown" href="#" role="button"
|
||||
aria-haspopup="false" aria-expanded="false">
|
||||
|
||||
Reference in New Issue
Block a user