[ Mini Kiebo ]
Server: Windows NT AKFAR_SERVER 10.0 build 26200 (Windows 10) AMD64
Path:
D:
/
xampp
/
htdocs
/
peminjaman
/
storage
/
framework
/
views
/
[
Home
]
File: 7c137c9076cb76c749a1ecb623cbf3c2.php
<?php $__env->startSection('title', 'Riwayat Peminjaman'); ?> <?php $__env->startSection('description', 'Halaman Daftar Riwayat Peminjaman'); ?> <?php $__env->startSection('content'); ?> <section class="row"> <div class="col-12"> <?php echo $__env->make('utilities.alert', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <div class="card"> <div class="card-header"> <h4 class="card-title"><?php echo $__env->yieldContent('title'); ?></h4> </div> <div class="card-body"> <div class="alert alert-info" role="alert"> Tabel di bawah adalah daftar riwayat peminjaman yang sudah dilakukan oleh Mahasiswa. </div> <?php if (isset($component)) { $__componentOriginalcdbe555d389dfdab6d96ab0e0eefa56d = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginalcdbe555d389dfdab6d96ab0e0eefa56d = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.filter-menu','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('filter-menu'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <div class="row"> <div class="col-md-6"> <div class="mb-3"> <div class="d-flex"> <div class="flex-fill"> <label for="date" class="form-label">Tanggal:</label> <div class="input-group"> <span class="input-group-text"> <div> <i class="bi bi-calendar-date-fill"></i> </div> </span> <input type="date" name="date" id="date" class="form-control" value="<?php echo e(request('date')); ?>" placeholder="Pilih tanggal.."> </div> </div> </div> </div> </div> <div class="col-md-6"> <div class="mb-3"> <label for="student_id" class="form-label">Mahasiswa:</label> <select name="student_id" id="student_id" class="form-select"> <option value="">Pilih mahasiswa..</option> <?php $__currentLoopData = $students; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $student): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($student->id); ?>" <?php if(request('student_id')==$student->id): echo 'selected'; endif; ?>><?php echo e($student->identification_number); ?> - <?php echo e($student->name); ?> </option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div> </div> </div> <div class="row"> <div class="col-md-6"> <div class="mb-3"> <label for="status" class="form-label">Status pengembalian:</label> <select name="status" id="status" class="form-select"> <option value="" <?php if(request('status')==='' ): echo 'selected'; endif; ?>>Pilih status pengembalian..</option> <option value="1" <?php if(request('status')==='1' ): echo 'selected'; endif; ?>>Sudah dikembalikan</option> <option value="0" <?php if(request('status')==='0' ): echo 'selected'; endif; ?>>Belum dikembalikan</option> </select> </div> </div> <div class="col-md-6"> <div class="mb-3"> <label for="validate" class="form-label">Status validasi:</label> <select name="validate" id="validate" class="form-select"> <option value="" <?php if(request('validate')==='' ): echo 'selected'; endif; ?>>Pilih status validasi..</option> <option value="1" <?php if(request('validate')==='1' ): echo 'selected'; endif; ?>>Sudah divalidasi</option> <option value="0" <?php if(request('validate')==='0' ): echo 'selected'; endif; ?>>Belum divalidasi</option> </select> </div> </div> </div> <div class="row"> <div class="col-md-6"> <div class="mb-3"> <label for="commodity_id" class="form-label">Komoditas:</label> <select name="commodity_id" id="commodity_id" class="form-select"> <option value="">Pilih komoditas..</option> <?php $__currentLoopData = $commodities; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $commodity): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($commodity->id); ?>" <?php if(request('commodity_id')==$commodity->id): echo 'selected'; endif; ?>><?php echo e($commodity->name); ?> </option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div> </div> </div> <?php $__env->slot('resetButtonURL', null, []); ?> <?php echo e(route('officers.borrowings-history.index')); ?> <?php $__env->endSlot(); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginalcdbe555d389dfdab6d96ab0e0eefa56d)): ?> <?php $attributes = $__attributesOriginalcdbe555d389dfdab6d96ab0e0eefa56d; ?> <?php unset($__attributesOriginalcdbe555d389dfdab6d96ab0e0eefa56d); ?> <?php endif; ?> <?php if (isset($__componentOriginalcdbe555d389dfdab6d96ab0e0eefa56d)): ?> <?php $component = $__componentOriginalcdbe555d389dfdab6d96ab0e0eefa56d; ?> <?php unset($__componentOriginalcdbe555d389dfdab6d96ab0e0eefa56d); ?> <?php endif; ?> <div class="table-responsive"> <table class="table datatable"> <thead> <tr> <th scope="col">#</th> <th scope="col">Nama Mahasiswa</th> <th scope="col">Komoditas</th> <th scope="col">Tanggal</th> <th scope="col">Jam Pinjam</th> <th scope="col">Jam Kembali</th> <th scope="col">Petugas</th> <th scope="col">Aksi</th> </tr> </thead> <tbody> <?php $__currentLoopData = $borrowings; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $borrowing): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <th scope="row"><?php echo e($loop->iteration); ?></th> <th> <span class="badge text-bg-primary" data-bs-toggle="tooltip" data-bs-placement="top" data-bs-title="<?php echo e($borrowing->student->identification_number); ?>"><?php echo e($borrowing->student->name); ?></span> </th> <td><?php echo e($borrowing->commodity->name); ?></td> <td><?php echo e($borrowing->getDateFormatted()); ?></td> <td> <span class="badge text-bg-secondary"> <i class="bi bi-clock-fill"></i> <?php echo e($borrowing->time_start); ?> </span> </td> <td> <?php if($borrowing->time_end === NULL): ?> <span class="badge text-bg-info" data-bs-toggle="tooltip" data-bs-placement="top" data-bs-title="Sedang dipinjam"> <i class="bi bi-clock"></i></span> <?php else: ?> <span class="badge text-bg-secondary"> <i class="bi bi-clock-fill"></i> <?php echo e($borrowing->time_end); ?> </span> <?php endif; ?> </td> <td> <?php if($borrowing->officer_id !== NULL): ?> <span class="badge text-bg-success" data-bs-toggle="tooltip" data-bs-placement="top" data-bs-title="Sudah divalidasi oleh <?php echo e($borrowing->officer->name); ?>"> <i class="bi bi-check-circle"></i> </span> <?php else: ?> <span class="badge text-bg-warning" data-bs-toggle="tooltip" data-bs-placement="top" data-bs-title="Belum divalidasi oleh petugas!"> <i class="bi bi-exclamation-circle"></i> </span> <?php endif; ?> </td> <td> <div class="btn-group gap-1"> <?php if($borrowing->time_end !== NULL && $borrowing->officer_id === NULL): ?> <form action="<?php echo e(route('officers.borrowings.validate', $borrowing)); ?>"> <button type="submit" class="btn btn-sm btn-info btn-validate" data-bs-toggle="tooltip" data-bs-placement="top" data-bs-title="Validasi"> <i class="bi bi-person-lines-fill"></i> </button> </form> <?php endif; ?> <button type="button" class="btn btn-sm btn-success showBorrowingButton" data-bs-toggle="modal" data-id="<?php echo e($borrowing->id); ?>" data-bs-target="#detailBorrowingModal"> <i class="bi bi-eye-fill"></i> </button> </div> </td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </tbody> </table> </div> </div> </div> </div> </section> <?php $__env->stopSection(); ?> <?php $__env->startPush('modal'); ?> <?php echo $__env->make('officer.borrowing.history.modal.show', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <?php $__env->stopPush(); ?> <?php $__env->startPush('script'); ?> <?php echo $__env->make('officer.borrowing.script', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <?php $__env->stopPush(); ?> <?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp\htdocs\peminjaman\resources\views/officer/borrowing/history/index.blade.php ENDPATH**/ ?>