<table id="dataTables" class="display table-responsive table-stripped" width="100%" cellspacing="0">
    <thead>
    <tr>
        <th>S/N</th>
        <th>Product Name</th>
        <th>Total Stock</th>
        <th>Reorder Level</th>
        <th>Expiry</th>
        <th>Action</th>
    </tr>
    </thead>

    <tbody>
    <?php $i = 0; ?>
    @foreach($inventories as $inventory)
        <tr>
            <td><?= ++$i; ?></td>
            <td>{!!$inventory->name!!}</td>
            <td>{!!$inventory->total_stock!!}</td>
            <td>{!!$inventory->reorder_level!!}</td>
            <td>{!!$inventory->expiry_date!!}</td>
            <td>
                <div class="btn-group">
                    <button type="button" class="btn btn-primary btn-raised">Action</button>
                    <button type="button" disabled class="btn btn-primary btn-raised dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                        <i class="zmdi zmdi-chevron-down right only"></i>
                    </button>
                    <ul class="dropdown-menu dropdown-menu-primary">
                        <li class="">
                            <a href="{{url('admin/product/'.$inventory->id.'/edit')}}">Edit</a>
                        </li>
                        <li>

                            <a href="{{url('admin/product/'.$inventory->id.'/delete')}}" id="delete-btn" onclick="return confirm('Are you sure you want to delete the product?')" data-action="{{'/product/'.$inventory->id.'/delete'}}">Delete</a>
                        </li>

                        <li>
                            <a href="{{url('admin/product/'.$inventory->id)}}">Details</a>
                        </li>
                        <li role="separator" class="divider"></li>
                        <li>
                        </li>
                    </ul>
                </div>
            </td>
        </tr>
    @endforeach

    </tbody>
</table>
