
<?php $__env->startSection('content'); ?>
<!-- BEGIN: Content-->
<div class="app-content content ">
    <div class="content-overlay"></div>
    <div class="header-navbar-shadow"></div>
    <div class="content-wrapper container-xxl p-0">
        <div class="content-header row">
            <div class="content-header-left col-md-12 col-12 mb-2">
                <div class="row breadcrumbs-top">
                    <div class="col-12">
                        <h2 class="content-header-title float-start mb-0"><?php echo e(__('lang.admin_menu_orders')); ?></h2>
                        <div class="breadcrumb-wrapper">
                            <ol class="breadcrumb">
                                <li class="breadcrumb-item"><a href="<?php echo route('dashboard'); ?>"><?php echo e(__('lang.admin_menu_dashboard')); ?></a>
                                    </li>
                                <li class="breadcrumb-item active"><?php echo e(__('lang.admin_menu_orders_list')); ?></li>
                            </ol>
                        </div>
                    </div>
                </div>
            </div>
            <div class="content-header-right text-md-end col-md-12 col-12 d-md-block mb-2">
                <div class="dt-action-buttons text-end">
                    <form id="formData" method="get">
                        <div class="row">
                            <div class="form-group col-sm-4">
                                <select class="form-select" name="order_status_id" id="search_order_by_status">
                                    <option value=""><?php echo e(__('lang.admin_order_status')); ?></option>
                                    <?php $__currentLoopData = $filter['order_status']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $status): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <option value="<?php echo e($status->id); ?>" <?php if(isset($_GET['order_status_id'])): ?> <?php if($_GET['order_status_id']==$status->id): ?> selected <?php endif; ?> <?php endif; ?>><?php echo e($status->status); ?></option>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </select>
                            </div>
                            <div class="form-group col-sm-4">
                                <select class="form-select" name="user_id" id="search_order_by_user_id" style="width: -webkit-fill-available">
                                    <option value=""><?php echo e(__('lang.admin_select_user')); ?></option>
                                    <?php $__currentLoopData = $filter['user']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $user): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <option value="<?php echo e($user->id); ?>" <?php if(isset($_GET['user_id'])): ?> <?php if($_GET['user_id']==$user->id): ?> selected <?php endif; ?> <?php endif; ?>><?php echo e($user->phone); ?> <?php if($user->name!='' || $user->name!=null): ?>(<?php echo e($user->name); ?>)<?php endif; ?></option>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </select>
                            </div>
                            <div class="form-group col-sm-4">
                                <input type="submit" name="submit" value="<?php echo e(__('lang.admin_button_search')); ?>" id="submit" class="dt-button create-new btn btn-primary">
                                <a href="javascript:;" onclick="resetFilter()" class="btn btn-danger"><?php echo e(__('lang.admin_button_reset')); ?></a>
                                <!-- <a href="<?php echo e(url('admin/export')); ?>" class="btn btn-info"><i data-feather="download"></i></a> -->
                            </div>
                        </div>
                    </form>
                </div>
            </div>
            <?php echo $__env->make('orders.table', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
        </div>
    </div>
</div>
<!-- END: Content-->
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /Applications/MAMP/htdocs/hayawater/resources/views/orders/index.blade.php ENDPATH**/ ?>