New notification page..

This commit is contained in:
Cüneyt Şentürk
2021-06-19 18:16:09 +03:00
parent 856e10a2dd
commit 4687185f4a
34 changed files with 2652 additions and 43 deletions

View File

@ -127,11 +127,87 @@
@endif
<div class="list-group list-group-flush">
@stack('notification_exports_completed_start')
@if (!empty($exports['completed']) && count($exports['completed']))
<a href="{{ route('notifications.index') . '#exports' }}" class="list-group-item list-group-item-action">
<div class="row align-items-center">
<div class="col-auto">
<i class="fas fa-file-export"></i>
</div>
<div class="col ml--2">
<div class="d-flex justify-content-between align-items-center">
<h4 class="mb-0 text-sm">{{ trans_choice('header.notifications.exports.completed', count($exports['completed']), ['count' => count($exports['completed'])]) }}</h4>
</div>
</div>
</div>
</a>
@endif
@stack('notification_exports_completed_end')
@stack('notification_exports_failed_start')
@if (!empty($exports['failed']) && count($exports['failed']))
<a href="{{ route('notifications.index') . '#exports' }}" class="list-group-item list-group-item-action">
<div class="row align-items-center">
<div class="col-auto">
<i class="fas fa-file-export"></i>
</div>
<div class="col ml--2">
<div class="d-flex justify-content-between align-items-center">
<h4 class="mb-0 text-sm">{{ trans_choice('header.notifications.exports.failed', count($exports['failed']), ['count' => count($exports['failed'])]) }}</h4>
</div>
</div>
</div>
</a>
@endif
@stack('notification_exports_failed_end')
@stack('notification_imports_completed_start')
@if (!empty($imports['completed']) && count($imports['completed']))
<a href="{{ route('notifications.index') . '#imports' }}" class="list-group-item list-group-item-action">
<div class="row align-items-center">
<div class="col-auto">
<i class="fas fa-file-import"></i>
</div>
<div class="col ml--2">
<div class="d-flex justify-content-between align-items-center">
<h4 class="mb-0 text-sm">{{ trans_choice('header.notifications.imports.completed', count($imports['completed']), ['count' => count($imports['completed'])]) }}</h4>
</div>
</div>
</div>
</a>
@endif
@stack('notification_imports_completed_end')
@stack('notification_imports_failed_start')
@if (!empty($imports['failed']) && count($imports['failed']))
<a href="{{ route('notifications.index') . '#imports' }}" class="list-group-item list-group-item-action">
<div class="row align-items-center">
<div class="col-auto">
<i class="fas fa-file-import"></i>
</div>
<div class="col ml--2">
<div class="d-flex justify-content-between align-items-center">
<h4 class="mb-0 text-sm">{{ trans_choice('header.notifications.imports.failed', count($imports['failed']), ['count' => count($imports['failed'])]) }}</h4>
</div>
</div>
</div>
</a>
@endif
@stack('notification_imports_failed_end')
@stack('notification_bills_start')
@can('read-purchases-bills')
@if (count($bills))
<a href="{{ route('users.read.bills', $user->id) }}" class="list-group-item list-group-item-action">
<a href="{{ route('notifications.index') . '#reminder-bills' }}" class="list-group-item list-group-item-action">
<div class="row align-items-center">
<div class="col-auto">
<i class="fa fa-shopping-cart"></i>
@ -152,7 +228,7 @@
@can('read-sales-invoices')
@if (count($invoices))
<a href="{{ route('users.read.invoices', $user->id) }}" class="list-group-item list-group-item-action">
<a href="{{ route('notifications.index') . '#reminder-invoices' }}" class="list-group-item list-group-item-action">
<div class="row align-items-center">
<div class="col-auto">
<i class="fa fa-money-bill"></i>
@ -171,7 +247,7 @@
</div>
@if ($notifications)
<a href="#" class="dropdown-item text-center text-primary font-weight-bold py-3">{{ trans('header.notifications.view_all') }}</a>
<a href="{{ route('notifications.index') }}" class="dropdown-item text-center text-primary font-weight-bold py-3">{{ trans('header.notifications.view_all') }}</a>
@else
<a class="dropdown-item text-center text-primary font-weight-bold py-3">{{ trans_choice('header.notifications.counter', $notifications, ['count' => $notifications]) }}</a>
@endif