
<?php $__env->startSection('css-part'); ?>
<link rel="stylesheet" href="<?php echo e(asset('assets/css/general.panel.css')); ?>">
<link rel="stylesheet" href="<?php echo e(asset('assets/css/jalalidatepicker.min.css')); ?>">
<style>
    .step-table {
        border: 1px solid #000000;
        width: 100%;
    }

    .step-table th {
        padding: 5px 8px;
        background-color: #5560ad;
        border: 1px solid #000000;
        color: #ffffff;
        text-align: center;
    }

    .step-table td {
        padding: 5px 8px;
        border: 1px solid #000000;
        text-align: center;
    }
</style>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('js-part'); ?>
<script src="<?php echo e(asset('assets/js/jalalidatepicker.min.js')); ?>"></script>
<script src="<?php echo e(asset('assets/js/general.panel.js')); ?>"></script>
<script src="<?php echo e(asset('assets/js/works.admin.js')); ?>"></script>
<script>
    $(document).ready(function() {
        jalaliDatepicker.startWatch({
            minDate: "attr",
            maxDate: "attr",
            minTime: "attr",
            maxTime: "attr",
            time: false,
            date: true,
            hasSecond: true,
            hideAfterChange: false,
            autoHide: true,
            showTodayBtn: true,
            showEmptyBtn: true,
            topSpace: 10,
            bottomSpace: 30,
            overflowSpace: -10,
            dayRendering(opt, input) {
                return {
                    isHollyDay: opt.day == 1,
                };
            },
        });
    });
</script>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('panel'); ?>
<?php echo $__env->make('layouts.header.header', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php echo $__env->make('layouts.nav.nav', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('container'); ?>
<div class="container">
    <?php echo $__env->make('layouts.notification.success', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    <?php echo $__env->make('layouts.notification.error', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>

    <h2 class=" text-center mt-3">پنل مدیریت</h2>
    <form action="" method="get">
        <div class="row">
            <div class="col-12 col-md-4 col-lg-3 mt-3">
                <label for="userId" class="mb-2">کد کاربر</label>
                <input type="text" class=" form-control" name="userId" id="userId" value="<?php echo e(request('userId')); ?>">
            </div>
            <div class="col-12 col-md-4 col-lg-3  mt-3">
                <label for="step" class="mb-2">وضعیت سفارش</label>
                <select name="step" id="step" class="form-control">
                    <option value="0" <?php echo e(request('step') == 0 ? 'selected' : ''); ?> >انتخاب وضعیت</option>
                    <option value="1" <?php echo e(request('step') == 1 ? 'selected' : ''); ?>>درخواست جدید</option>
                    <option value="2" <?php echo e(request('step') == 2 ? 'selected' : ''); ?>>در انتظار تایید قرارداد</option>
                    <option value="3" <?php echo e(request('step') == 3 ? 'selected' : ''); ?>>تایید قرارداد</option>
                    <option value="4" <?php echo e(request('step') == 4 ? 'selected' : ''); ?>>در انتظار تحویل</option>
                    <option value="5" <?php echo e(request('step') == 5 ? 'selected' : ''); ?>>تایید تحویل راننده</option>
                    <option value="6" <?php echo e(request('step') == 6 ? 'selected' : ''); ?>>تایید دریافت مرکز فراوری</option>
                    <option value="7" <?php echo e(request('step') == 7 ? 'selected' : ''); ?>>تایید دریافت کلاله توسط سرتیم</option>
                    <option value="8" <?php echo e(request('step') == 8 ? 'selected' : ''); ?>>تایید اتمام توسط کارگر</option>
                    <option value="9" <?php echo e(request('step') == 9 ? 'selected' : ''); ?>>تایید توسط سرتیم و ارسال به واحد خشک کن</option>
                    <option value="10" <?php echo e(request('step') == 10 ? 'selected' : ''); ?>>دریافت توسط خشک کن</option>
                    <option value="11" <?php echo e(request('step') == 11 ? 'selected' : ''); ?>>اتمام خشک کردن</option>
                    <option value="12" <?php echo e(request('step') == 12 ? 'selected' : ''); ?>>تایید دریافت توسط واحد بسته بندی</option>
                    <option value="13" <?php echo e(request('step') == 13 ? 'selected' : ''); ?>>اتمام بسته بندی</option>
                    <option value="-1" <?php echo e(request('step') == -1 ? 'selected' : ''); ?>>مغایرت دار</option>
                    <option value="-100" <?php echo e(request('step') == -100 ? 'selected' : ''); ?>>لغو شده</option>
                </select>
            </div>
            <div class="col-12 col-md-4 col-lg-3  mt-3">
                <label for="first_name" class="mb-2">نام کاربر</label>
                <input type="text" class="form-control" name="first_name" id="first_name" value="<?php echo e(request('first_name')); ?>">
            </div>
            <div class="col-12 col-md-4 col-lg-3 mt-3">
                <label for="last_name" class="mb-2">نام خانوادگی کاربر</label>
                <input type="text" class="form-control" name="last_name" id="last_name" value="<?php echo e(request('last_name')); ?>">
            </div>
            <div class="col-12 col-md-4 col-lg-3 mt-3">
                <label for="phone" class="mb-2">شماره موبایل</label>
                <input type="text" class=" form-control" name="phone" id="phone" value="<?php echo e(request('phone')); ?>">
            </div>
            <div class="col-12 col-md-4 col-lg-3 mt-3">
                <label for="role" class="mb-2">نقش کاربر</label>
                <select name="role" id="role" class="form-control">
                    <option value="0">انتخاب نقش</option>
                    <option value="transporter" <?php echo e(request('role') == 'transporter' ? 'selected' : ""); ?>>راننده</option>
                    <option value="factory_receiver" <?php echo e(request('role') == 'factory_receiver' ? 'selected' : ""); ?>>مرکز فراوری</option>
                    <option value="contractor" <?php echo e(request('role') == 'contractor' ? 'selected' : ""); ?>>امور قرارداد</option>
                    <option value="chief_worker" <?php echo e(request('role') == 'chief_worker' ? 'selected' : ""); ?>>سرتیم</option>
                    <option value="worker" <?php echo e(request('role') == 'worker' ? 'selected' : ""); ?>>کارگر</option>
                    <option value="dryer" <?php echo e(request('role') == 'dryer' ? 'selected' : ""); ?>>خشک کن</option>
                    <option value="packager" <?php echo e(request('role') == 'packager' ? 'selected' : ""); ?>>بسته بندی</option>
                </select>
            </div>
            <div class="col-12 col-md-4 col-lg-3 mt-3">
                <label for="melli_code" class="mb-2">کد ملی</label>
                <input type="text" class=" form-control" name="melli_code" id="melli_code" value="<?php echo e(request('melli_code')); ?>">
            </div>
            <div class="col-12 col-md-4 col-lg-3 mt-3">
                <label for="from" class="mb-2">از تاریخ</label>
                <input type="text" class=" form-control" name="from" id="from" data-jdp value="<?php echo e(request('from')); ?>">
            </div>
            <div class="col-12 col-md-4 col-lg-3 mt-3">
                <label for="to" class="mb-2">به تاریخ</label>
                <input type="text" class=" form-control" name="to" id="to" data-jdp value="<?php echo e(request('to')); ?>">
            </div>
            <div class="col-12 col-md-4 col-lg-3 mt-3">
                <label for="dateInterval" class="mb-2">بازه زمانی</label>
                <select class=" form-control" name="dateInterval" id="dateInterval">
                    <option value="0">انتخاب بازه زمانی</option>
                    <option value="1" <?php echo e(request('dateInterval') == 1 ? 'selected' : ''); ?>>1 هفته</option>
                    <option value="2" <?php echo e(request('dateInterval') == 2 ? 'selected' : ''); ?>>1 ماهه</option>
                    <option value="3" <?php echo e(request('dateInterval') == 3 ? 'selected' : ''); ?>>3 ماهه</option>
                    <option value="4" <?php echo e(request('dateInterval') == 4 ? 'selected' : ''); ?>>6 ماهه</option>
                    <option value="5" <?php echo e(request('dateInterval') == 5 ? 'selected' : ''); ?>>یکساله</option>
                </select>
            </div>
            <div class="col-12 col-md-4 col-lg-3 mt-3 d-flex align-items-end">
                <button type="submit" class="btn btn-primary">فیلتر</button>
            </div>
            <?php if(request('userId') || request('step') || request('first_name') || request('last_name')  || request('phone') || request('role') || request('melli_code') || request('from') || request('to')): ?>
            <div class="col-12 col-md-4 col-lg-3 mt-3 d-flex align-items-end">
                <a href="<?php echo e(request()->url()); ?>" class="btn btn-outline-secondary">حذف فیلتر</a>
            </div>
            <?php endif; ?>

        </div>
    </form>

    <?php if(request('userId') || request('step') || request('first_name') || request('last_name')  || request('phone') || request('role') || request('melli_code') || request('from') || request('to')): ?>
    <?php echo $__env->make('Admin.list.stat', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    <?php echo $__env->make('Admin.list.priceuser', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    <?php echo $__env->make('Admin.list.requests', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    <?php endif; ?> 
</div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.index', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home1/zarborji/public_html/resources/views/Admin/worker.blade.php ENDPATH**/ ?>