<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta name="csrf-token" content="<?php echo e(csrf_token()); ?>">
  <title>Нарушением.Нет</title>
  <link href="<?php echo e(asset('public/assets/css/auth.css')); ?>" rel="stylesheet">
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet"
    integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
  <link rel="stylesheet" href="resources\css\styles.css">
  <link rel="stylesheet" href="resources\css\styleрrofile.css">
</head>

<body>
  <div class="container">
    <form action="<?php echo e(Route('out')); ?>" method="GET" style="height :345px;">
      <div class="sidebar rounded-start"
        style="height:100%; display: flex; justify-content: center; flex-wrap: wrap; align-content: flex-start; flex-direction: column; align-items: center;">
        <p>
          <button class=" btn btn-outline-success border-0 rounded-pill" type="button" data-bs-toggle="collapse"
            data-bs-target="#collapseOne" aria-expanded="true" aria-controls="collapseOne">
            Личный кабинет
          </button>
        </p>
        <?php if(auth()->user()->role != 'admin'): ?>
        <p>
          <button class="btn btn-outline-success border-0 rounded-pill" type="button" data-bs-toggle="collapse"
            data-bs-target="#collapseTwo" aria-expanded="true" aria-controls="collapseTwo">
            Создать заявление
          </button>
        </p>
        <p>
          <button class="btn btn-outline-success border-0 rounded-pill" type="button" data-bs-toggle="collapse"
            data-bs-target="#collapseThree" aria-expanded="true" aria-controls="collapseThree">
            Заявления
          </button>
        </p>
        <?php else: ?>
        <p>
          <button class="btn btn-outline-success border-0 rounded-pill" type="button" data-bs-toggle="collapse"
            data-bs-target="#collapseFour" aria-expanded="true" aria-controls="collapseFour">
            Новые заявления
          </button>
        </p>
        <p>
          <button class="btn btn-outline-success border-0 rounded-pill" type="button" data-bs-toggle="collapse"
            data-bs-target="#collapseFive" aria-expanded="true" aria-controls="collapseFive">
            Принятые заявления
          </button>
        </p>
        <p>
          <button class="btn btn-outline-success border-0 rounded-pill" type="button" data-bs-toggle="collapse"
            data-bs-target="#collapseSix" aria-expanded="true" aria-controls="collapseSix">
            Отклоненные заявления
          </button>
        </p>
        <?php endif; ?>
        <button class="border-0 rounded-pill" type="sumbit">Выход</button>
      </div>
    </form>
    <div class="accordion" id="accordionExample">
      <div class="accordion-item border-0 rounded-pill">

        <div id="collapseOne" class="accordion-collapse collapse-horizontal collapse show"
          data-bs-parent="#accordionExample" aria-expanded="true" style="position:absolute; height: 345px;">
          <div class="accordion-body">

            <div class="wrapper" style="left: 547px; height: 345px;">
              <div class="left">
                <img src="https://static.tildacdn.com/tild6230-3831-4433-a538-666561376432/free-icon-avatar-266.png"
                  alt="user" width="100">
                <h4>Привет, <?php echo e(auth()->user()->name); ?>!</h4>
                <?php if(auth()->user()->role == 'admin'): ?>
                <p>
                <h5>Администратор</h5>
                </p>
                <?php endif; ?>
              </div>
              <div class="right">
                <div class="info">
                  <h3>Личный кабинет</h3>
                  <div class="info_data">
                    <div class="data">
                      <h4>Email</h4>
                      <p><?php echo e(auth()->user()->email); ?></p>
                    </div>
                    <div class="data">
                      <h4>Phone</h4>
                      <p><?php echo e(auth()->user()->numberphone); ?></p>
                    </div>
                  </div>
                </div>

              </div>
            </div>
          </div>
        </div>
      </div>
      <div class="accordion-item border-0 rounded-pill">
        <div id="collapseTwo" class="accordion-collapse collapse collapse-horizontal" aria-expanded="false"
          data-bs-parent="#accordionExample" style="position:absolute; height: 345px;">
          <div class="accordion-body">
            <div class="wrapper" style="left: 547px; height: 345px;">
              <form class="right" style="width:100%;" method="POST" action="<?php echo e(Route('addstate')); ?>">
                <?php echo csrf_field(); ?>
                <div class="info">
                  <h3>Создать заявление</h3>
                  <div class="info_data">
                    <div class="input-group mb-3 data">
                      <h4>Введите номер авто</h4>
                      <p>
                        <input type="text" class="form-control" maxlength="100" aria-label="Sizing example input"
                          placeholder="Номер автомоблия..." aria-describedby="inputGroup-sizing-default"
                          style="width:900px;" name="RegistrNumber">
                      </p>
                    </div>
                  </div>
                </div>

                <div class="projects">
                  <h3>Опишите вашу проблему</h3>
                  <div class="projects_data">
                    <div class="data" style="width:900px;">
                      <div class="input-group mb-3" style="display: -webkit-box;">
                        <input type="text" class="form-control" maxlength="150" placeholder="Описание..."
                          aria-label="Recipient's username" aria-describedby="button-addon2" style="width:88%" name="comment">
                        <button class="btn btn-outline-success" type="submit" id="button-addon2"
                          style="width:105px">Отправить</button>
                      </div>
                    </div>
                  </div>
                </div>
              </form>
            </div>
          </div>
        </div>
      </div>
      <div class="accordion-item border-0 rounded-pill">
      <div id="collapseThree" class="accordion-collapse collapse collapse-horizontal" aria-expanded="false"
      data-bs-parent="#accordionExample" style="position: absolute; min-height: 196px; max-height: 100%;">
          <div class="accordion-body">
            <div class="wrapper" style="left: 547px;">
              <div class="right" style="width:100%;">
                <div class="info">
                  <h3>Заявления</h3>
                  <div class="info_data">
                    <div>
                      <table class="table">
                        <thead>
                          <tr>
                            <th scope="col">#</th>
                            <th scope="col">Номер машины</th>
                            <th scope="col">Дата и время</th>
                            <th scope="col">Статус</th>
                          </tr>
                          <?php $__currentLoopData = $mystates; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$mystate): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                          <tr>
                            <th scope="row"><?php echo e($key+1); ?></th>
                            <td><?php echo e($mystate->RegistrNumber); ?></td>
                            <td><?php echo e($mystate->comment); ?></td>
                            <td><?php echo e($mystate->created_at); ?></td>
                            <td><?php echo e($mystate->status); ?></td>
                          </tr>
                          <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </thead>
                      </table>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <div class="accordion-item border-0 rounded-pill">
        <div id="collapseFour" class="accordion-collapse collapse collapse-horizontal" aria-expanded="false"
          data-bs-parent="#accordionExample" style="position:absolute; min-height: 196px; max-height: 100%;">
          <div class="accordion-body">
            <div class="wrapper" style="left: 547px;">
              <div class="right" style="width:100%;">
                <div class="info">
                  <h3>Новые заявления</h3>
                  <div class="info_data">
                    <div>
                      <table class="table">
                        <thead>
                          <tr>
                            <th scope="col">#</th>
                            <th scope="col">Номер машины</th>
                            <th scope="col">Описание</th>
                            <th scope="col">Дата и время</th>
                            <th scope="col">Статус</th>
                          </tr>
                          <?php $__currentLoopData = $pstates; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$pstate): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                          <tr>
                            <th scope="row"><?php echo e($key+1); ?></th>
                            <td><?php echo e($pstate->RegistrNumber); ?></td>
                            <td><?php echo e($pstate->comment); ?></td>
                            <td><?php echo e($pstate->created_at); ?></td>
                            <td><?php echo e($pstate->status); ?></td>
                            <td>
                            <a href="<?php echo e(Route('true', $pstate->id)); ?>"><button>OK</button></a>
                            </td>
                            <td>
                              <a href="<?php echo e(Route('false', $pstate->id)); ?>"><button>X</button></a>
                            </td>
                          </tr>
                          <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </thead>
                      </table>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <div class="accordion-item border-0 rounded-pill">
        <div id="collapseFive" class="accordion-collapse collapse collapse-horizontal" aria-expanded="false"
          data-bs-parent="#accordionExample" style="position:absolute; min-height: 196px; max-height: 100%;">
          <div class="accordion-body">
            <div class="wrapper" style="left: 547px;">
              <div class="right" style="width:100%;">
                <div class="info">
                  <h3>Принятые заявления</h3>
                  <div class="info_data">
                    <div>
                      <table class="table">
                        <thead>
                          <tr>
                            <th scope="col">#</th>
                            <th scope="col">Номер машины</th>
                            <th scope="col">Описание</th>
                            <th scope="col">Дата и время</th>
                            <th scope="col">Статус</th>
                          </tr>
                          <?php $__currentLoopData = $astates; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$astate): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                          <tr>
                            <th scope="row"><?php echo e($key+1); ?></th>
                            <td><?php echo e($astate->RegistrNumber); ?></td>
                            <td><?php echo e($astate->comment); ?></td>
                            <td><?php echo e($astate->created_at); ?></td>
                            <td><?php echo e($astate->status); ?></td>
                          </tr>
                          <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </thead>
                      </table>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <div class="accordion-item border-0 rounded-pill">
        <div id="collapseSix" class="accordion-collapse collapse collapse-horizontal" aria-expanded="false"
          data-bs-parent="#accordionExample" style="position:absolute; min-height: 196px; max-height: 100%;">
          <div class="accordion-body">
            <div class="wrapper" style="left: 547px;">
              <div class="right" style="width:100%;">
                <div class="info">
                  <h3>Отклоненные заявления</h3>
                  <div class="info_data">
                    <div>
                      <table class="table">
                        <thead>
                          <tr>
                            <th scope="col">#</th>
                            <th scope="col">Номер машины</th>
                            <th scope="col">Описание</th>
                            <th scope="col">Дата и время</th>
                            <th scope="col">Статус</th>
                          </tr>
                          <?php $__currentLoopData = $dstates; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$dstate): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                          <tr>
                            <th scope="row"><?php echo e($key+1); ?></th>
                            <td><?php echo e($dstate->RegistrNumber); ?></td>
                            <td><?php echo e($dstate->comment); ?></td>
                            <td><?php echo e($dstate->created_at); ?></td>
                            <td><?php echo e($dstate->status); ?></td>
                          </tr>
                          <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </thead>
                      </table>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>

    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"
      integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous">
    </script>


</body>

</html><?php /**PATH C:\xampp\htdocs\narushnet\resources\views/homepage.blade.php ENDPATH**/ ?>