<?php
/**
 * Created by PhpStorm.
 * User: Kajem
 * Date: 1/23/2018
 * Time: 2:49 AM
 */
include_once(dirname(dirname(__FILE__)) . '/classes/check.class.php');
include_once(dirname(dirname(__FILE__)) . '/admin/classes/functions.php');
protect("Admin");
$techGuys = getUsersByLevel(4);
$insurerGuys = getUsersByLevel(6);
$currentUser = getUserDetailsById($_SESSION['jigowatt']['user_id']);
$clients = getClients();
include_once('header.php');
?>

    <div class="container">
        <div class="row">
            <div class="col-md-12">
                <h2 class="text-uppercase">RAPPORT DES PIÈCES</h2>
                <div class="filterFields">
                    <div class="field date">
                        <label for="date">Dates</label><br/>
                        <input type="text" class="form-control" id="start_date" placeholder="Start date"/>
                        <input type="text" class="form-control" id="end_date" value="<?php echo date('m/d/Y'); ?>"
                               placeholder="End date"/>
                        <span class="clearfix"></span>
                    </div>
                    <div class="field">
                        <label for="clients">Commandé</label><br/>
                        <select class="form-control" id="ordered">
                            <option value="">--Choisir--</option>
                            <option value="Yes">Oui</option>
                            <option value="No">Non</option>
                        </select>
                    </div>

                    <div class="field">
                        <label for="clients">Reçu</label><br/>
                        <select class="form-control" id="received">
                            <option value="">--Choisir--</option>
                            <option value="Yes">Oui</option>
                            <option value="No">Non</option>
                        </select>
                    </div>

                    <div class="clearfix"></div>
                </div>
                <div class="table-responsive">
                    <table id="parts_report_dt" class="table table-striped table-bordered dt-responsive"
                           cellspacing="0">
                        <thead>
                        <tr>
                            <th>#Réclamation</th>
                            <th>Nom</th>
                            <th>Prénom</th>
                            <th>Pièce</th>
                            <th>Date</th>
                            <th>Commandé</th>
                            <th>Reçu</th>
                            <th></th>
                        </tr>
                        </thead>
                        <tfoot>
                        <tr>
                            <th>#Réclamation</th>
                            <th>Nom</th>
                            <th>Prénom</th>
                            <th>Pièce</th>
                            <th>Date</th>
                            <th>Commandé</th>
                            <th>Reçu</th>
                            <th></th>
                        </tr>
                        </tfoot>
                    </table>
                </div>
            </div>
        </div>

    </div>
    </div>
    <link href="./assets/css/reports.css?aaaff1" rel="stylesheet">
<?php include_once('footer.php'); ?>