<?php $__env->startSection('maincontent'); ?>
    <div class="container-fluid pt-4 px-4">

        <div class="pagetitle row">
            <div class="col-6">
                <h1><a href="<?php echo e(url('/admindashboard')); ?>">Dashboard</a></h1>
                <nav>
                    <ol class="breadcrumb">
                        <li class="breadcrumb-item"><a href="<?php echo e(url('/admindashboard')); ?>">Home</a></li>
                        <li class="breadcrumb-item active">Barcode</li>
                    </ol>
                </nav>
            </div>
        </div><!-- End Page Title -->

        <div class="row">
            <div class="col-md-2"></div>
            <div class="col-md-8 p-4 m-2" style="background: white">
                <div class="card">
                    <div class="card-header text-center">
                        QTY: <span style="font-weight:bold;"><?php echo e(App\Models\Order::where('deliveryDate',date('Y-m-d'))->where('status','Shipped')->get()->count()); ?></span>  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <h6 class="mt-2">Please scan your invoice barcode and process it for Shipment</h4>
                    </div>
                    <div class="card-body pb-4 pt-4" style="    text-align: -webkit-center;">
                        <br>
                        <form id="invoiceForm" method="POST" action="<?php echo e(url('admin/change-status')); ?>" class="pb-4 pt-4">
                            <?php echo csrf_field(); ?>
                            <?php if(Session::get('unknownparcel')): ?>
                                <img src="<?php echo e(asset('public/icon/warning.jpg')); ?>" alt="" style="width:200px;padding:0px">
                                <h4 style="text-align: center;color: red !important;font-size: 18px;width: 265px;">Opps! Unknown percel we can not identify this please reset and process again.</h4>
                            <?php elseif(Session::get('repeatparcel')): ?>
                                <img src="<?php echo e(asset('public/icon/warning.jpg')); ?>" alt="" style="width:200px;padding:0px">
                                <h4 style="text-align: center;color: red !important;font-size: 18px;width: 265px;">Opps! Repeat parcel. This parcel is already in shipment. Please reset and process again</h4>
                            <?php else: ?>
                                <label for="invoiceID" style="float: left;">Scan Your Barcode</label>
                                <div class="form-group container1">
                                    <div>
                                        <input type="text" class="form-control mb-2" name="invoiceID" id="invoiceID"
                                        onchange="this.form.submit()" placeholder="Please Scan Your Barcode" required>
                                    </div>
                                </div>
                            <?php endif; ?>

                            <br>
                            <br>
                        </form>
                    </div>
                    <div class="card-footer text-end">
                            <a href="<?php echo e(url('admin/refresh-barcode')); ?>" id="orderbybarcode" class="btn btn-primary">Refresh</a>
                    </div>
                </div>
            </div>
            <div class="col-md-2"></div>
        </div>

    </div>

    <script>

        $(document).ready(function() {
            $('#invoiceID').focus();


        });
    </script>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('backend.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/mayabot1/jaframart.com/resources/views/admin/content/findorder/findfrom.blade.php ENDPATH**/ ?>