<?php $__env->startSection('content'); ?>
<form>
<div class="side-title">
    <div class="row">
        <div class="col-lg-6">
            <h3><?php echo e($title); ?></h3>
        </div>










    </div>
</div>

<!-- ------------ data table ------------- -->
<table class="table table-hover table-bordered">
    <thead>
        <tr>
            <th scope="col"> #




            </th>
            <th scope="col"><?php echo e(__('documentationRequests.type')); ?></th>
            <th scope="col"><?php echo e(__('documentationRequests.status')); ?></th>
            <th scope="col"><?php echo e(__('documentationRequests.documentation_date')); ?></th>
            <th scope="col"><?php echo e(__('documentationRequests.documentation_time')); ?></th>
            <th scope="col" colspan="2"><?php echo e(__('dashboard.created_at')); ?></th>
            <th scope="col"><?php echo e(__('dashboard.processes')); ?></th>
        </tr>
    </thead>

    <tbody class="response">
        <tr class="search_filter_form">
            <th scope="row"></th>
            <th scope="row">
                <select name="type" class="form-control">
                    <option value=""><?php echo e(__('documentationRequests.type')); ?></option>
                    <option value="inside_office"><?php echo e(__('documentationRequests.inside_office')); ?></option>
                    <option value="outside_office"><?php echo e(__('documentationRequests.outside_office')); ?></option>
                </select>
            </th>
            <th scope="row">
                <select name="documentation_status" class="form-control">
                    <option value=""><?php echo e(__('documentationRequests.status')); ?></option>
                    <option value="being_documented"><?php echo e(__('documentationRequests.being_documented')); ?></option>
                    <option value="documented"><?php echo e(__('documentationRequests.documented')); ?></option>
                </select>
            </th>
            <td>
                <input type="text" placeholder="<?php echo e(__('documentationRequests.documentation_date')); ?>" name="consulting_date" value="<?php echo e($request->consulting_date ?? ''); ?>" class="date_from form-control">
            </td>
            <td>
                <input type="time" placeholder="<?php echo e(__('documentationRequests.documentation_time')); ?>" name="consulting_time" value="<?php echo e($request->consulting_time ?? ''); ?>" class="form-control">
            </td>
            <td>
                <input type="text" placeholder="<?php echo e(__('dashboard.date_from')); ?>" name="date_from" value="<?php echo e($request->date_from ?? ''); ?>" class="date_from form-control">
            </td>
            <td>
                <input type="text" placeholder="<?php echo e(__('dashboard.date_to')); ?>" name="date_to" value="<?php echo e($request->date_to ?? ''); ?>" class="date_to form-control">
            </td>
            <th scope="col"><button type="button" class="butn color small search"><span><i class="fas fa-search"></i></span></button></th>
        </tr>
    </tbody>


</table>
<!-- ------------ sidemenu links ------------- -->
</form>
<?php $__env->stopSection(); ?>



<script>
/**
 * Importat to handle ajax requests for filters, deletes, trash and any proccess done on the table's data
 */
var dataTable={
    route: '<?php echo e(route("documentationRequests.grid")); ?>'
}
</script>
<?php $__env->startSection('inner_js'); ?>
    <script>

        let confirmationMessage = "<?php echo e(__('documentationRequests.confirmation_message')); ?>";
        $(document).ready(function () {
            $(document).on('click', '.active_documentation' , async function (e) {
                e.preventDefault();
                let url = $(this).data('href'),
                    method = 'get';

                if(!confirm(confirmationMessage)){
                    return false;
                }
                const response=await ajax({
                    url,
                    dataType: 'json',
                    method,
                });
                if (response.message) {
                    $(this).parents('td').parents('tr').remove();
                    toasterSuccess(response.message);
                    // $(this).children('i').toggleClass('fa-check text-success fa-times text-danger')

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

<?php echo $__env->make('admin.layouts.container', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\wamp64\www\legal\resources\views/admin/documentation_requests/index.blade.php ENDPATH**/ ?>