
<?php $__env->startSection('content'); ?>
<!-- Nav tabs -->
<ul class="nav nav-tabs nav-tabs-custom nav-justified" role="tablist">
    <li class="nav-item">
        <a class="nav-link active" data-toggle="tab" href="#new-transfer" role="tab">
            <span class="d-block d-sm-none"><i class="fas fa-home"></i></span>
            <span class="d-none d-sm-block"> <?php echo e(__('messages.new_transfer')); ?></span> 
        </a>
    </li>
    <li class="nav-item">
        <a class="nav-link" data-toggle="tab" href="#view-all" role="tab">
            <span class="d-block d-sm-none"><i class="far fa-user"></i></span>
            <span class="d-none d-sm-block"> <?php echo e(__('messages.view_all')); ?></span> 
        </a>
    </li>
</ul>
<!-- Tab panes -->
<div class="tab-content p-3 text-muted">
    <div class="tab-pane active" id="new-transfer" role="tabpanel">
        <div class="row">
            <div class="col-md-1">
                <p><span class="label label-info"> <?php echo e(__('messages.transfer')); ?> <?php echo e(__('messages.to')); ?> : </span></p>
            </div>
            <?php $__currentLoopData = $branches; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $br): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <div class="col-md-1">
                    <input type="checkbox" class="trf_br_chk" value="<?php echo e($br->branch_id); ?>">
                    <?php echo e($br->branch_name); ?>

                </div>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

            <div class="col-md-2">
                <p><span class="label label-danger"> <?php echo e(__('messages.transfer')); ?> <?php echo e(__('messages.from')); ?> : </span></p>
            </div>
            <div class="col-md-1 text-left">
                <select id="select_from">
                    <option value="" selected> <?php echo e(__('messages.choose')); ?> </option>
                    <?php $__currentLoopData = $branches; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $br): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <option value="<?php echo e($br->branch_id); ?>"><?php echo e($br->branch_name); ?></option>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </select>
            </div>
            <div class="col-md-1">
                <select id="select_to">
                    <option value="" selected> <?php echo e(__('messages.choose')); ?> </option>
                    <option value="0"> <?php echo e(__('messages.admin')); ?> </option>

                </select>
            </div>
        </div>
        <div class="row">
            <div class="form-group col-md-3">
                <label><?php echo e(__('messages.name')); ?>/<?php echo e(__('messages.barcode')); ?></label>
                <input type="text" name="prd_stk" id="prd_stk" class="form-control"
                    placeholder="" />
            </div>
            <div class="form-group col-md-3">
                <label><?php echo e(__('messages.quantity')); ?> <span id="prd_stk_unit"></span></label>
                <input type="text" name="prd_stk_qty" id="prd_stk_qty" class="form-control isnumber"
                    placeholder="" />
            </div>
            <div class="form-group col-md-1">
                <label>&nbsp;</label>
                <button type="button" id="btn-add-prd-stk-atl" class="btn btn-block btn-primary"><i
                        class="fa fa-plus"></i> </button>
            </div>
            <div class="form-group col-md-2">
                <label>&nbsp;</label>
                <button type="button" id="btn-process-items" class="btn btn-block btn-danger"><i
                        class="fa fa-check"></i> <?php echo e(__('messages.process')); ?></button>
            </div>
            <div class="form-group col-md-2">
                <label>&nbsp;</label>
                <p id="req-msg" class="text-danger"></p>
            </div>
        </div>
        <div class="row">
            <div class="col-md-12">
                <table id="" class="table table-striped table-bordered dt-responsive nowrap sr"
                    cellspacing="0" width="100%">
                    <thead>
                        <tr>
                            <th>#</th>
                            <th><?php echo e(__('messages.name')); ?>-<?php echo e(__('messages.barcode')); ?></th>
                            <th><?php echo e(__('messages.quantity')); ?></th>
                            <th><?php echo e(__('messages.unit_price')); ?></th>
                            <th><?php echo e(__('messages.total_price')); ?></th>
                            <th><?php echo e(__('messages.remove')); ?></th>
                        </tr>
                    </thead>
                    <tbody id="prd_stk_tbody">

                    </tbody>
                    <tfoot>
                        <tr>
                            <th colspan="4"><?php echo e(__('messages.total')); ?></th>
                            <th id="sub_total"></th>
                            <th>&nbsp;</th>
                        </tr>
                    </tfoot>
                </table>
            </div>
        </div>
    </div>
    <div class="tab-pane" id="view-all" role="tabpanel">
        <div class="row">
            <div class="col-md-12">
                <table id="transferTable"
                    class="table table-striped table-bordered dt-responsive nowrap" style="width:100%;">
                    <thead>
                        <tr>
                            <th>#</th>
                            <th><?php echo e(__('messages.invoice')); ?> #</th>
                            <th><?php echo e(__('messages.branch')); ?> <?php echo e(__('messages.from')); ?></th>
                            <th><?php echo e(__('messages.branch')); ?> <?php echo e(__('messages.to')); ?></th>
                            <th><?php echo e(__('messages.total_items')); ?></th>
                            <th><?php echo e(__('messages.date/time')); ?> </th>
                            <th><?php echo e(__('messages.print')); ?></th>
                        </tr>
                    </thead>
                    <tbody>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>  


<div id="trf-details" class="modal fade" role="dialog">
    <div class="modal-dialog modal-lg">
        <!-- Modal content-->
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title"><?php echo e(__('messages.transfer')); ?></h5>
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
            </div>
            <div class="modal-body" id="trf-mbody">

            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal"><?php echo e(__('messages.close')); ?></button>
            </div>
        </div>
    </div>
</div>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('customjs'); ?>
    <script src="<?php echo e(asset('custom_js/transfer_scripts.js')); ?>"></script>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('admin.template.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/craftada/iftikhar.appssoul.com/resources/views/admin/stock_transfer.blade.php ENDPATH**/ ?>