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

@ -20,6 +20,7 @@ class Header
$bills = [];
$invoices = [];
$items = [];
$notifications = 0;
$company = null;
@ -47,6 +48,10 @@ class Header
$invoices[$data['invoice_id']] = $data['amount'];
$notifications++;
break;
case 'App\Notifications\Item\Item':
$items[$data['item_id']] = $data['name'];
$notifications++;
break;
}
}
@ -57,6 +62,7 @@ class Header
'notifications' => $notifications,
'bills' => $bills,
'invoices' => $invoices,
'items' => $items,
'company' => $company,
'updates' => $updates,
]);