@{
    ViewBag.Title = "Inventory";
}

<div ng-controller="InventoryListController as vm">
    <h1 class="page-header">
        <i class="fa fa-cubes"></i> @ViewBag.Title
    </h1>
    <h4>Current inventory</h4>
    <div class="pull-left">
        <a class="btn btn-default" href="" ng-click="vm.add()"><i class="fa fa-plus-circle"></i> Arrival</a>
        <a class="btn btn-default" href="" ng-click="vm.distribute()"><i class="fa fa-share-square"></i> Distribute</a>
        <a class="btn btn-default" href="" ng-click="vm.export()"><i class="fa fa-file-excel-o"></i> Export</a>
    </div>
    <div class="pull-right">
        <a class="btn btn-default" href="/InventoryType"><i class="fa fa-cube"></i> Commodity Types</a>
    </div>

    <inventory-list inventories="vm.inventories"></inventory-list>
</div>