<div>
    <div class="page-content">
        <nav class="page-breadcrumb">
            <div class="d-flex justify-content-between align-items-center">
                <ol class="breadcrumb breadcrumb-opname pb-3 ">
                    <li class="breadcrumb-item">
                        <a livewire:navigate href="/"><?php echo e(__('Main')); ?></a>
                    </li>
                    <li class="breadcrumb-item active" aria-current="page">
                        <?php echo e(__('Compare SO')); ?>

                    </li>
                    <li class="breadcrumb-item active" aria-current="page">
                        <?php echo e(__('Input')); ?>

                    </li>
                </ol>

                <div>
                    <!--[if BLOCK]><![endif]--><?php if($isloading): ?>
                    <button wire:click="firstClick" type="button" class="custom-button1 btn-sm ml-4" disabled>
                        <span id="loadingSpinner2" class="spinner-border spinner-border-sm" role="status" aria-hidden="true"></span>
                        <span id="innerSpan">Loading . . .</span>
                    </button>
                    <?php else: ?>
                    <button wire:click="firstClick" type="button" class="custom-button1 btn-sm ml-4 rounded-3 fs-6 px-4 mt-3"><?php echo e(__('Import')); ?></button>
                    <?php endif; ?> <!--[if ENDBLOCK]><![endif]-->
                </div>
            </div>
        </nav>

        <div class="row">
            <div class="col-md-12" style="padding-top: 2rem">
                <div class="card p-lg-4 rounded-5 opname col-sm-12 col-md-12 col-lg-12 col-xl-12">
                    <div class="card-body" style="font-weight: bolder; font-size: medium;">
                        <div class="d-flex flex-column flex-md-row align-items-center justify-content-between small mb-3">
                            <h6 class="card-title compare-so"><?php echo e(__('Compare SO Input')); ?></h6>
                        </div>

                        <form class="">
                            <div class="mb-4">
                                <label for="soType" class="form-label"><?php echo e(__('Opname Type')); ?></label>
                                <select wire:model="type" class="form-select form-select-md  opname-input" id="soType" name="soType">
                                    <option value="Global"><?php echo e(__('Global')); ?></option>
                                    <option value="Partial"><?php echo e(__('Partial')); ?></option>
                                </select>
                            </div>

                            <div class="mb-4">
                                <label for="compareDate" class="form-label"><?php echo e(__('Stock Date')); ?></label>
                                <input wire:model="period" type="date" class="form-control form-control-md " id="compareDate" name="compareDate" data-toggle="datepicker">
                            </div>

                            <div class="">
                                <label for="importFile" class="form-label"><?php echo e(__('Import File Opname *.csv')); ?>

                                </label>
                                <a wire:click="downloadTemplate" class="text-decoration-none badge bg-primary top-0 end-0" style="cursor: pointer;">Example</a>
                                <input wire:model="file" type="file" class="form-control  <?php $__errorArgs = ['file'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?> form-control-md" id="importFile" name="importFile" accept=".csv">
                                <!--[if BLOCK]><![endif]--><?php $__errorArgs = ['file'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                <span class="text-danger"><?php echo e($message); ?></span>
                                <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?> <!--[if ENDBLOCK]><![endif]-->
                            </div>
                            
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <script>
        $(document).ready(function() {
            $.fn.dataTable.ext.errMode = 'none';
            $('#table').DataTable({
                "bDestroy": true
            });
        });

        document.addEventListener('livewire:navigated', () => {
            $(document).ready(function() {
                $.fn.dataTable.ext.errMode = 'none';
                $('#table').DataTable({
                    "bDestroy": true
                });
            });
        });
    </script>

    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
</div><?php /**PATH C:\laragon\www\rybc\resources\views/livewire/pos/opname/opname-input.blade.php ENDPATH**/ ?>