<div id="headerbar">
    <h1><?php echo trans('item_lookups'); ?></h1>

    <div class="pull-right">
        <a class="btn btn-sm btn-primary" href="<?php echo site_url('item_lookups/form'); ?>">
            <i class="fa fa-plus"></i> <?php echo trans('new'); ?></a>
    </div>

    <div class="pull-right">
        <?php echo pager(site_url('item_lookups/index'), 'mdl_item_lookups'); ?>
    </div>

</div>

<div id="content" class="table-content">

    <?php echo $this->layout->load_view('layout/alerts'); ?>

    <div class="table-responsive">
        <table class="table table-striped">

            <thead>
            <tr>
                <th><?php echo trans('item_name'); ?></th>
                <th><?php echo trans('description'); ?></th>
                <th><?php echo trans('price'); ?></th>
                <th><?php echo trans('options'); ?></th>
            </tr>
            </thead>

            <tbody>
            <?php foreach ($item_lookups as $item_lookup) { ?>
                <tr>
                    <td><?php echo $item_lookup->item_name; ?></td>
                    <td><?php echo $item_lookup->item_description; ?></td>
                    <td><?php echo format_currency($item_lookup->item_price); ?></td>
                    <td>
                        <div class="options btn-group">
                            <a class="btn btn-default btn-sm dropdown-toggle"
                               data-toggle="dropdown" href="#">
                                <i class="fa fa-cog"></i>
                                <?php echo trans('options'); ?>
                            </a>
                            <ul class="dropdown-menu">
                                <li>
                                    <a href="<?php echo site_url('item_lookups/form/' . $item_lookup->item_lookup_id); ?>">
                                        <i class="fa fa-edit fa-margin"></i>
                                        <?php echo trans('edit'); ?>
                                    </a>
                                </li>
                                <li>
                                    <a href="<?php echo site_url('item_lookups/delete/' . $item_lookup->item_lookup_id); ?>"
                                       onclick="return confirm('<?php echo trans('delete_record_warning'); ?>');">
                                        <i class="fa fa-trash-o fa-margin"></i>
                                        <?php echo trans('delete'); ?>
                                    </a>
                                </li>
                            </ul>
                        </div>
                    </td>
                </tr>
            <?php } ?>
            </tbody>

        </table>
    </div>
</div>