<?php
    $page 	= Request::segment(4);
	$title	= "Create";
	
	if($page == "edit") {
		$title = "Edit";
	}
?>


<?php $__env->startSection('title'); ?> Requisition | <?php echo e($title); ?> <?php $__env->stopSection(); ?>

<?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">
				<?php if($page == "edit") { ?>					
					<label style="font-size:20px; font-weight:400;">RF No: </label>&nbsp;&nbsp;<label class="rf_no" style="font-size:20px; font-weight:600;"></label>
				<?php } ?>				
                </div>

                <div class="d-flex align-items-center justify-content-between flex-wrap flex-sm-nowrap">
                    <a href="#" class="btn btn-primary font-weight-bolder btnAddNew" data-toggle="modal" data-target="#add_newReqItem"><i class="la la-plus"></i>Add</a>
                </div>
            </div>
            <div id="kt_repeater_2">
                <div class="form-group row mb-0">
                    <div class="col-sm-12">
                        <table class="table table-bordered table_rf_new_item new">
                            <tr>
                                <th style="width:5%;">#</th>
                                <th style="width:41%;">Item Name & Description</th>
                                <th style="width:9%;">Unit</th>
                                <th style="width:10%;">Qty</th>
                                
                                <th style="width:30%;">Remarks </th>
                                <th style="width:5%;">Action</th>
                            </tr>
                            <tbody>
                                
                            </tbody>
                            
                        </table>
                    </div>
                </div>
                
            </div>

            <div class="row">
                <div class="col-sm-12">
                    <p class="mb-0">Notes:</p>
                    <ol class="notes-list">
                        <li>Request forms done by site clerical personnel will be needed project manager's approval.</li>
                        <li>Request forms done by project manager will be auto-approved and sent to HQ.</li>
                    </ol>
                </div>
            </div>

            <div class="row">
                <div class="col-lg-12 text-center">
                    <a href="#" class="btn btn-primary font-weight-bolder btnProceed">Proceed</a>
                    <a class="btn btn-light-primary font-weight-bolder">Reset</a>
                </div>
            </div>
            
        </div>

    </div>
</div>
<!-- Modal PO Details Update -->
<div class="modal fade" id="add_newReqItem" tabindex="-1" role="dialog" aria-labelledby="add_newReqItem" 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 New Requisition</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 class="row">
                    <div class="col-sm-12">
                        <div class="form-group row">
                            <div class="col-lg-8 col-md-9 col-sm-12">
                                <input class="form-control" type="text" name="search" id="SearchItem">
                            </div>
                            <div class="col-lg-4 col-md-9 col-sm-12">
                                <a href="#" class="btn font-weight-bold btn-light-primary btnSearchItem">Search</a>
                            </div>
                        </div>
                        
                        <div id="ListSearch"></div>
                    </div>
                </div>

            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-primary font-weight-bold btnConfirm">Add</button>
                <button type="button" class="btn btn-light-primary font-weight-bold" data-dismiss="modal">Close</button>
            </div>
        </div>
    </div>
</div>

    
<?php $__env->stopSection(); ?>

<?php $__env->startSection('custom_js'); ?>
<script src="<?php echo e(asset('js/requisition.js')); ?>"></script>
<script src="<?php echo e(asset('js/pages/crud/forms/widgets/form-repeater.js')); ?>"></script>
<script src="<?php echo e(asset('js/pages/crud/forms/widgets/bootstrap-datepicker.js')); ?>"></script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/superweb/public_html/demo.superweb.my/inventory/resources/views/requisition/create.blade.php ENDPATH**/ ?>