pintu2/resources/views/monitoring/pemutihan.blade.php
fikyb b96cea3047
All checks were successful
Run Action to Production / run pull to sync on target message (push) Has been skipped
update monitoring
2024-05-21 11:40:24 +07:00

120 lines
4.6 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!-- Extend Layout -->
@extends('layout.app_guest',['title' => $title])
@push('css')
<link rel="stylesheet" href="{{asset('/')}}plugins/datatables-bs4/css/dataTables.bootstrap4.min.css">
<link rel="stylesheet" href="{{asset('/')}}plugins/datatables-responsive/css/responsive.bootstrap4.min.css">
<link rel="stylesheet" href="{{asset('/')}}plugins/datatables-buttons/css/buttons.bootstrap4.min.css">
@endpush
@section('content')
<!-- Main content -->
<section class="content">
<div class="container-fluid">
<!-- SELECT2 EXAMPLE -->
<div class="card card-default">
<div class="card-header">
<h3 class="card-title">{{$title}}</h3>
</div>
<!-- /.card-header -->
<div class="card-body">
@if ($errors->any())
<div class="alert alert-danger">
<ul>
@foreach ($errors->all() as $error )
<li>{{ $error }}</li>
@endforeach
</ul>
</div>
@endif
@if(session('success'))
<div class="alert alert-success">
<ul>
<li>{{ session('success') }}</li>
</ul>
</div>
@endif
@if(session('error'))
<div class="alert alert-danger">
<ul>
<li>{{ session('error') }}</li>
</ul>
</div>
@endif
<div class="alert alert-info alert-dismissible">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
<h5><i class="icon fas fa-info"></i> Perhatian!</h5>
<span>Data yang tampil disini adalah data Real time. Jika Belum melakukan pengisian maka data tidak akan muncul</span>
</div>
<table id="example1" class="table table-bordered table-striped">
<thead>
<tr>
<th>CaseID</th>
<th>Program Studi</th>
<th>Mata Kuliah</th>
<th>Dosen Pengampu</th>
<th>Ruang Kuliah</th>
<th>Tanggal</th>
<th>Status</th>
</tr>
</thead>
<tbody>
@foreach($data as $item)
<tr>
<td>{{$item->caseid}}</td>
<td>{{$item->program_studi}}</td>
<td>{{$item->mata_kuliah}}</td>
<td>{{$item->dosen_pengampu}}</td>
<td>{{$item->ruang_kelas}}</td>
<td>{{$item->tanggal_kelas}}</td>
<td>@if($item->status_operator === null)<span class="badge badge-warning">Diproses</span> @else <span class="badge badge-success">Selesai</span> @endif</td>
</tr>
@endforeach
</tbody>
<tfoot>
<tr>
<th>CaseID</th>
<th>Program Studi</th>
<th>Mata Kuliah</th>
<th>Dosen Pengampu</th>
<th>Ruang Kuliah</th>
<th>Tanggal</th>
<th>Status</th>
</tr>
</tfoot>
</table>
</div>
</div>
<!-- /.card -->
</div>
<!-- /.container-fluid -->
</section>
<!-- /.content -->
@endsection
@push('js')
<!-- DataTables & Plugins -->
<script src="{{asset('/')}}plugins/datatables/jquery.dataTables.min.js"></script>
<script src="{{asset('/')}}plugins/datatables-bs4/js/dataTables.bootstrap4.min.js"></script>
<script src="{{asset('/')}}plugins/datatables-responsive/js/dataTables.responsive.min.js"></script>
<script src="{{asset('/')}}plugins/datatables-responsive/js/responsive.bootstrap4.min.js"></script>
<script src="{{asset('/')}}plugins/datatables-buttons/js/dataTables.buttons.min.js"></script>
<script src="{{asset('/')}}plugins/datatables-buttons/js/buttons.bootstrap4.min.js"></script>
<script src="{{asset('/')}}plugins/jszip/jszip.min.js"></script>
<script src="{{asset('/')}}plugins/pdfmake/pdfmake.min.js"></script>
<script src="{{asset('/')}}plugins/pdfmake/vfs_fonts.js"></script>
<script src="{{asset('/')}}plugins/datatables-buttons/js/buttons.html5.min.js"></script>
<script src="{{asset('/')}}plugins/datatables-buttons/js/buttons.print.min.js"></script>
<script src="{{asset('/')}}plugins/datatables-buttons/js/buttons.colVis.min.js"></script>
<script>
$(function () {
$("#example1").DataTable({
"pageLength": 50,
"responsive": true, "lengthChange": false, "autoWidth": false,
order: [[5, 'desc']],
"buttons": ["csv", "excel", "pdf", "print", "colvis"]
}).buttons().container().appendTo('#example1_wrapper .col-md-6:eq(0)');
});
</script>
@endpush