Some checks failed
Run Action to Production / run pull to sync on target message (push) Failing after 1m7s
134 lines
5.0 KiB
PHP
134 lines
5.0 KiB
PHP
<!-- Extend Layout -->
|
|
@extends('layout.app')
|
|
<!-- Add Custom CSS -->
|
|
@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
|
|
<!-- Add Content Here -->
|
|
@section('content')
|
|
<!-- Include Sidebar -->
|
|
@include('layout.navbars.sidebar')
|
|
<div class="content-wrapper">
|
|
<!-- Main content -->
|
|
<section class="content-header">
|
|
<div class="container-fluid">
|
|
<div class="row mb-2">
|
|
<div class="col-sm-6">
|
|
<h1>Layanan Pengajuan Delegasi Lomba</h1>
|
|
</div>
|
|
<div class="col-sm-6">
|
|
<ol class="breadcrumb float-sm-right">
|
|
<li class="breadcrumb-item"><a href="{{ route('admin.dashboard') }}">Admin</a></li>
|
|
<li class="breadcrumb-item active">Layanan Pengajuan Delegasi Lomba</li>
|
|
</ol>
|
|
</div>
|
|
</div>
|
|
</div><!-- /.container-fluid -->
|
|
</section>
|
|
|
|
<section class="content">
|
|
<div class="card">
|
|
<!-- /.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
|
|
<table id="example1" class="table table-bordered table-striped">
|
|
<thead>
|
|
<tr>
|
|
<th>CaseID</th>
|
|
<th>Nama Mahasiswa</th>
|
|
<th>Nama Kompetisi</th>
|
|
<th>Tingkat Kompetisi</th>
|
|
<th>Dosen Pembimbing Lomba</th>
|
|
<th>Action</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach ($data as $datas)
|
|
<tr>
|
|
<td>{{ $datas->caseid }}</td>
|
|
<td>{{ $datas->nama }} </td>
|
|
<td>{{ $datas->nama_kompetisi }} </td>
|
|
<td>{{ $datas->tingkat_lomba }}</td>
|
|
<td>{{ $datas->dosen_pembimbing }}</td>
|
|
<td class="text-center ">
|
|
<a class="btn btn-info" href="{{ route('layanan-lomba.detail',['caseid'=>$datas->caseid]) }}">Detail</a>
|
|
@if($datas->status==NULL)
|
|
|<a class="btn btn-success" href="{{ route('layanan-lomba.detail',['caseid'=>$datas->caseid]) }}">Terima</a>
|
|
@endif
|
|
</td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
<tfoot>
|
|
<tr>
|
|
<th>CaseID</th>
|
|
<th>Nama Mahasiswa</th>
|
|
<th>Nama Kompetisi</th>
|
|
<th>Tingkat Kompetisi</th>
|
|
<th>Dosen Pembimbing Lomba</th>
|
|
<th>Action</th>
|
|
</tr>
|
|
</tfoot>
|
|
</table>
|
|
</div>
|
|
<!-- /.card-body -->
|
|
</div>
|
|
<!-- /.card -->
|
|
</section>
|
|
<!-- /.content -->
|
|
</div>
|
|
@endsection
|
|
|
|
<!-- Add Custom JS -->
|
|
@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({
|
|
"responsive": true, "lengthChange": false, "autoWidth": false,
|
|
"buttons": [{
|
|
// New button configuration
|
|
text: 'Tambah Data', // Replace with your desired button text
|
|
action: function ( e, dt, node, config ) {
|
|
// Perform your custom action here, e.g., open a new tab with the external link
|
|
window.open("{{ route('layanan-aduan.tambah')}}", '_blank');
|
|
}
|
|
},"csv", "excel", "pdf", "print", "colvis"]
|
|
}).buttons().container().appendTo('#example1_wrapper .col-md-6:eq(0)');
|
|
|
|
});
|
|
</script>
|
|
@endpush
|
|
|