out of stock notification

This commit is contained in:
denisdulici
2017-11-21 23:37:15 +03:00
parent aee5be5b01
commit 83d9fc703c
9 changed files with 127 additions and 0 deletions

View File

@@ -8,6 +8,7 @@ return [
'counter' => '{0} You have no notification|{1} You have :count notification|[2,*] You have :count notifications',
'overdue_invoices' => '{1} :count overdue invoice|[2,*] :count overdue invoices',
'upcoming_bills' => '{1} :count upcoming bill|[2,*] :count upcoming bills',
'items_stock' => '{1} :count item out of stock|[2,*] :count items out of stock',
'view_all' => 'View All'
],

View File

@@ -7,4 +7,9 @@ return [
'purchase_price' => 'Purchase Price',
'sku' => 'SKU',
'notification' => [
'message' => 'You are receiving this email because the :name is running out of stock.',
'button' => 'View Now',
],
];

View File

@@ -116,6 +116,13 @@
</a>
</li>
@endif
@if (count($items))
<li>
<a href="{{ url('auth/users/' . $user->id . '/read-items') }}">
<i class="fa fa-cubes text-red"></i> {{ trans_choice('header.notifications.items_stock', count($items), ['count' => count($items)]) }}
</a>
</li>
@endif
</ul>
</li>
<li class="footer"><a href="#">{{ trans('header.notifications.view_all') }}</a></li>