|
|
|
@ -18,53 +18,42 @@
|
|
|
|
|
|
|
|
|
|
<!-- Nav Item - Alerts --> |
|
|
|
|
<li class="nav-item dropdown no-arrow mx-1"> |
|
|
|
|
@php |
|
|
|
|
$notification = \App\Models\asset_status::whereNull('enter_at') |
|
|
|
|
->whereDate('est_pengembalian', \Carbon\Carbon::today()) |
|
|
|
|
->get(); |
|
|
|
|
$totalNotification = $notification->count(); |
|
|
|
|
@endphp |
|
|
|
|
<a class="nav-link dropdown-toggle" href="#" id="alertsDropdown" role="button" data-toggle="dropdown" |
|
|
|
|
aria-haspopup="true" aria-expanded="false"> |
|
|
|
|
<i class="fas fa-bell fa-fw"></i> |
|
|
|
|
<!-- Counter - Alerts --> |
|
|
|
|
<span class="badge badge-danger badge-counter">3+</span> |
|
|
|
|
<span class="badge badge-danger badge-counter">{{ $totalNotification }}</span> |
|
|
|
|
</a> |
|
|
|
|
<!-- Dropdown - Alerts --> |
|
|
|
|
<div class="dropdown-list dropdown-menu dropdown-menu-right shadow animated--grow-in" |
|
|
|
|
aria-labelledby="alertsDropdown"> |
|
|
|
|
<h6 class="dropdown-header"> |
|
|
|
|
Alerts Center |
|
|
|
|
Notifikasi Siopas |
|
|
|
|
</h6> |
|
|
|
|
<a class="dropdown-item d-flex align-items-center" href="#"> |
|
|
|
|
<div class="mr-3"> |
|
|
|
|
<div class="icon-circle bg-primary"> |
|
|
|
|
<i class="fas fa-download text-white"></i> |
|
|
|
|
@foreach ($notification as $data_notification) |
|
|
|
|
<a class="dropdown-item d-flex align-items-center" |
|
|
|
|
href="{{ route('dashboard.pengembalian.edit', $data_notification->id) }}"> |
|
|
|
|
<div class="mr-3"> |
|
|
|
|
<div class="icon-circle bg-primary"> |
|
|
|
|
<i class="fas fa-download text-white"></i> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div> |
|
|
|
|
<div class="small text-gray-500">December 12, 2019</div> |
|
|
|
|
<span class="font-weight-bold">A new monthly report is ready to |
|
|
|
|
download!</span> |
|
|
|
|
</div> |
|
|
|
|
</a> |
|
|
|
|
<a class="dropdown-item d-flex align-items-center" href="#"> |
|
|
|
|
<div class="mr-3"> |
|
|
|
|
<div class="icon-circle bg-success"> |
|
|
|
|
<i class="fas fa-upload text-white"></i> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div> |
|
|
|
|
<div class="small text-gray-500">December 7, 2019</div> |
|
|
|
|
$290.29 has been deposited into your account! |
|
|
|
|
</div> |
|
|
|
|
</a> |
|
|
|
|
<a class="dropdown-item d-flex align-items-center" href="#"> |
|
|
|
|
<div class="mr-3"> |
|
|
|
|
<div class="icon-circle bg-warning"> |
|
|
|
|
<i class="fas fa-exclamation-triangle text-white"></i> |
|
|
|
|
<div> |
|
|
|
|
<div class="small text-gray-500"> |
|
|
|
|
{{ \Carbon\Carbon::parse($data_notification->exit_at)->format('F j, Y') }}</div> |
|
|
|
|
<span class="font-weight-bold">Peti dengan kode |
|
|
|
|
{{ $data_notification->peti->fix_lot }} berhasil di pinjam</span> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div> |
|
|
|
|
<div class="small text-gray-500">December 2, 2019</div> |
|
|
|
|
Spending Alert: We've noticed unusually high spending for your account. |
|
|
|
|
</div> |
|
|
|
|
</a> |
|
|
|
|
<a class="dropdown-item text-center small text-gray-500" href="#">Show All |
|
|
|
|
</a> |
|
|
|
|
@endforeach |
|
|
|
|
<a class="dropdown-item text-center small text-gray-500" |
|
|
|
|
href="{{ route('dashboard.navbarList.notification') }}">Show All |
|
|
|
|
Alerts</a> |
|
|
|
|
</div> |
|
|
|
|
</li> |
|
|
|
|