

<?php $__env->startSection('title'); ?> Material <?php $__env->stopSection(); ?>

<?php
    $type = Request::segment(3);
?>

<?php $__env->startSection('content'); ?>
<div class="content d-flex flex-column flex-column-fluid" id="kt_content">
    <div class="d-flex flex-column-fluid pb-20">
        <div class="container">
            <div class="d-flex align-items-stretch justify-content-between mb-2">
                <div class="d-flex align-items-center justify-content-between flex-wrap flex-sm-nowrap mr-15">
                    
                </div>

                <div class="d-flex align-items-center justify-content-between flex-wrap flex-sm-nowrap">
                    <a href="<?php echo e(url('admin/material/'.$type.'/create')); ?>" class="btn btn-primary font-weight-bolder"><i class="la la-plus"></i>Add</a>
                </div>
            </div>

            <div class="row">
                <div class="col-sm-12">
                    <!-- Datatable (JS in datatable-custom.js) -->
                    <table class="table table-bordered mt-15 table_material_settings table-hover" id="hq_material_settings">
                        <thead>
                            <tr>
                                <th>#</th>
                                <th>Item Description</th>
                                <th>Status</th>
                                <th>Action</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr>
                                <td>1</td>
                                <td>Item 1 description asdad asd as asd ad</td>
                                <td>Ok</td>
                                <td></td>
                            </tr>
                            <tr>
                                <td>2</td>
                                <td>Item 2 description asdad asd as asd ad</td>
                                <td>Ok</td>
                                <td></td>
                            </tr>
                            <tr>
                                <td>3</td>
                                <td>Item 3 description asdad asd as asd ad</td>
                                <td>Ok</td>
                                <td></td>
                            </tr>
                            <tr>
                                <td>4</td>
                                <td>Item 4 description asdad asd as asd ad</td>
                                <td>Ok</td>
                                <td></td>
                            </tr>
                            <tr>
                                <td>5</td>
                                <td>Item 5 description asdad asd as asd ad</td>
                                <td>Ok</td>
                                <td></td>
                            </tr>
                            <tr>
                                <td>6</td>
                                <td>Item 6 description asdad asd as asd ad</td>
                                <td>Ok</td>
                                <td></td>
                            </tr>
                            <tr>
                                <td>7</td>
                                <td>Item 7 description asdad asd as asd ad</td>
                                <td>Void</td>
                                <td></td>
                            </tr>
                            <tr>
                                <td>8</td>
                                <td>Item 8 description asdad asd as asd ad</td>
                                <td>Void</td>
                                <td></td>
                            </tr>
                            <tr>
                                <td>9</td>
                                <td>Item 9 description asdad asd as asd ad</td>
                                <td>Ok</td>
                                <td></td>
                            </tr>
                            <tr>
                                <td>10</td>
                                <td>Item 10 description asdad asd as asd ad</td>
                                <td>Ok</td>
                                <td></td>
                            </tr>
                            <tr>
                                <td>11</td>
                                <td>Item 11 description asdad asd as asd ad</td>
                                <td>Ok</td>
                                <td></td>
                            </tr>
                            <tr>
                                <td>12</td>
                                <td>Item 12 description asdad asd as asd ad</td>
                                <td>Ok</td>
                                <td></td>
                            </tr>
                        </tbody>
                    </table>
                    
                </div>

                <!-- <div class="col-sm-12 mt-5">
                    <a href="" class="btn btn-primary font-weight-bold" data-toggle="modal" data-target="#add_Item">Add Item</a>
                </div> -->
            </div>


            <!-- Modal Edit User -->
            <div class="modal fade" id="edit_Item" tabindex="-1" role="dialog" aria-labelledby="edit_Item" aria-hidden="true">
                <div class="modal-dialog modal-dialog-centered modal-xl" role="document">
                    <div class="modal-content">
                        <div class="modal-body">
                            <div class="row">
                                <div class="col-sm-12 text-center">
                                    <i class="fas fa-exclamation-circle text-danger font-size-h1"></i>
                                    <p class="font-size-h3 mt-3">Are you sure to update the item?</p>
                                    <h3>Item 1 description asdad asd as asd ad</h3>
                                    <form>
                                        <table class="table table_editUser table-bordered">
                                            <tr>
                                                <th>Item Description</th>
                                                <th>Status</th>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <input class="form-control" type="text" value="New item description">
                                                </td>
                                                <td>
                                                    <select class="form-control selectpicker" data-size="3">
                                                        <option>Ok</option>
                                                        <option>Void</option>
                                                    </select>
                                                </td>
                                            </tr>
                                        </table>
                                    </form>
                                </div>
                            </div>

                        </div>
                        <div class="modal-footer">
                            <button type="button" class="btn btn-light-success font-weight-bold">Confirm</button>
                            <button type="button" class="btn btn-light-primary font-weight-bold" data-dismiss="modal">Cancel</button>
                        </div>
                    </div>
                </div>
            </div>

            <!-- Modal Add User -->
            <div class="modal fade" id="add_Item" tabindex="-1" role="dialog" aria-labelledby="add_Item" aria-hidden="true">
                <div class="modal-dialog modal-dialog-centered modal-xl" role="document">
                    <div class="modal-content">
                        <div class="modal-header">
                            <h5 class="modal-title">Add User</h5>
                            <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                                <i aria-hidden="true" class="ki ki-close"></i>
                            </button>
                        </div>
                        <div class="modal-body">
                            <div id="kt_repeater_1">
                                <div class="form-group row mb-0">
                                    <div class="col-sm-12">
                                        <table class="table table-bordered table_add_material">
                                            <tr>
                                                <th>Item Description</th>
                                                <th>Unit</th>
                                                <th>Action</th>
                                            </tr>
                                            <tbody data-repeater-list="">
                                                <tr data-repeater-item="">
                                                    <td><input type="text" class="form-control" placeholder="Fill in Item Description" /></td>
                                                    <td>
                                                        <select class="form-control selectpicker" data-size="3">
                                                            <option selected disabled>Select Unit</option>
                                                            <option>M3</option>
                                                            <option>Nos</option>
                                                            <option>Kg</option>
                                                        </select>
                                                    </td>
                                                    <td>
                                                        <a href="javascript:;" data-repeater-delete=""
                                                            class="btn btn-sm font-weight-bolder btn-light-danger">
                                                            <i class="fas fa-trash-alt"></i>
                                                        </a>
                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </div>
                                </div>
                                <div class="form-group row">
                                    <div class="col-sm-12">
                                        <a href="javascript:;" data-repeater-create="" class="btn btn-sm font-weight-bolder btn-light-primary">
                                            <i class="la la-plus"></i>Add
                                        </a>
                                    </div>
                                </div>
                            </div>


                        </div>
                        <div class="modal-footer">
                            <button type="button" class="btn btn-light-success font-weight-bold">Confirm</button>
                            <button type="button" class="btn btn-light-primary font-weight-bold" data-dismiss="modal">Cancel</button>
                        </div>
                    </div>
                </div>
            </div>

        </div>
    </div>
</div>    
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH D:\laravel\inventory\resources\views/material/index.blade.php ENDPATH**/ ?>