Commit 1b7d8a17 by Alfiro Pratama

Excel Export Daftar Proposal + Perintilan View Monev II

parent 4920d01e
...@@ -46,7 +46,7 @@ class DaftarProposalExport implements FromView ...@@ -46,7 +46,7 @@ class DaftarProposalExport implements FromView
$data = DaftarProposal::with(['rKelompokDetil', 'reviewerProposal1', 'reviewerProposal2']) $data = DaftarProposal::with(['rKelompokDetil', 'reviewerProposal1', 'reviewerProposal2'])
->select("*") ->select("*")
->selectRaw(" round((ambil_jumlah_penilaian_seleksi(reviewer_proposal_id_1) + ambil_jumlah_penilaian_seleksi(reviewer_proposal_id_2 )) / 2, 2) as rata ") ->selectRaw(" round((ambil_jumlah_penilaian_seleksi(reviewer_proposal_id_1) + ambil_jumlah_penilaian_seleksi(reviewer_proposal_id_2 )) / 2, 2) as rata ")
// ->whereRaw($statement) ->whereRaw($statement)
->get(); ->get();
// dd($statement); // dd($statement);
......
...@@ -53,6 +53,7 @@ ...@@ -53,6 +53,7 @@
</form> </form>
<br> <br>
@if(($jadwal->tanggal_mulai <= Carbon\Carbon::now()) && ($jadwal->tanggal_selesai >= Carbon\Carbon::now())) @if(($jadwal->tanggal_mulai <= Carbon\Carbon::now()) && ($jadwal->tanggal_selesai >= Carbon\Carbon::now()))
<div class="table-responsive">
<table id="datatable" class="table table-bordered dt-responsive" style="border-collapse: collapse; border-spacing: 0; width: 100%;"> <table id="datatable" class="table table-bordered dt-responsive" style="border-collapse: collapse; border-spacing: 0; width: 100%;">
<thead> <thead>
<tr> <tr>
...@@ -161,6 +162,7 @@ ...@@ -161,6 +162,7 @@
@endforeach @endforeach
</tbody> </tbody>
</table> </table>
</div>
@else @else
<div class="alert alert-success alert-dismissible fade show" role="alert"> <div class="alert alert-success alert-dismissible fade show" role="alert">
<strong>Informasi!</strong> Monev Internal II dilaksanakan pada : <strong>Tanggal {{ Carbon\Carbon::parse($jadwal->tanggal_mulai)->isoFormat('D MMMM Y'); }}</strong> sampai dengan <strong>Tanggal {{ Carbon\Carbon::parse($jadwal->tanggal_selesai)->isoFormat('D MMMM Y'); }}.</strong> <strong>Informasi!</strong> Monev Internal II dilaksanakan pada : <strong>Tanggal {{ Carbon\Carbon::parse($jadwal->tanggal_mulai)->isoFormat('D MMMM Y'); }}</strong> sampai dengan <strong>Tanggal {{ Carbon\Carbon::parse($jadwal->tanggal_selesai)->isoFormat('D MMMM Y'); }}.</strong>
......
...@@ -25,7 +25,6 @@ ...@@ -25,7 +25,6 @@
<div class="col-md-4"> <div class="col-md-4">
</div> </div>
</div> </div>
</div> </div>
<!-- end page title --> <!-- end page title -->
...@@ -47,14 +46,16 @@ ...@@ -47,14 +46,16 @@
@endforeach @endforeach
</select> </select>
</div> </div>
{{-- <a class="btn btn-primary" type="button" href="{{ route('mahasiswa.monev-anggaran') }}">Tambah</a> --}}
</div> </div>
</div> </div>
</div> </div>
</form> </form>
<br> <br>
@if(($jadwal->tanggal_mulai <= Carbon\Carbon::now()) && ($jadwal->tanggal_selesai >= Carbon\Carbon::now())) @if(($jadwal->tanggal_mulai <= Carbon\Carbon::now()) && ($jadwal->tanggal_selesai >= Carbon\Carbon::now()))
<div class="table-responsive">
<table id="datatable" class="table table-bordered dt-responsive nowrap" style="border-collapse: collapse; border-spacing: 0; width: 100%;"> <table id="datatable" class="table table-bordered dt-responsive nowrap" style="border-collapse: collapse; border-spacing: 0; width: 100%;">
<thead> <thead style="vertical-align: middle; text-align: center;">
<tr> <tr>
<th>No</th> <th>No</th>
<th>Kode Kelompok</th> <th>Kode Kelompok</th>
...@@ -63,9 +64,10 @@ ...@@ -63,9 +64,10 @@
<th>Kategori PMW</th> <th>Kategori PMW</th>
<th>Judul Proposal</th> <th>Judul Proposal</th>
<th width="10%">Catatan Harian (Logbook)</th> <th width="10%">Catatan Harian (Logbook)</th>
<th width="10%">Laporan Kemajuan</th>
<th width="8%">Laporan Akhir</th> <th width="8%">Laporan Akhir</th>
<th width="10%">Luaran</th> <th width="10%">Produk Akhir</th>
<th width="10%">Bukti Penggunaan Anggaran</th>
{{-- <th width="10%">Luaran</th> --}}
<th>Aksi</th> <th>Aksi</th>
</tr> </tr>
</thead> </thead>
...@@ -73,39 +75,42 @@ ...@@ -73,39 +75,42 @@
@foreach ($proposal as $item) @foreach ($proposal as $item)
@php $token = Str::random(30); @endphp @php $token = Str::random(30); @endphp
<tr id="row-{{ $token }}"> <tr id="row-{{ $token }}">
<td>{{ $loop->iteration }}</td> <td align="center">{{ $loop->iteration }}</td>
<td>{{ $item->rProposal->rKelompok->kode }}</td> <td align="center">{{ $item->rProposal->rKelompok->kode }}</td>
<td>{{ $item->rProposal->rKelompok->rBiodata->name }} <br> {{ $item->rProposal->rKelompok->rBiodata->noidentitas }} <br> {{ $item->rProposal->rKelompok->rBiodata->fakultas }} <br> {{ $item->rProposal->rKelompok->rBiodata->prodi }}</td> <td>{{ $item->rProposal->rKelompok->rBiodata->name }} <br> {{ $item->rProposal->rKelompok->rBiodata->noidentitas }} <br> {{ $item->rProposal->rKelompok->rBiodata->fakultas }} <br> {{ $item->rProposal->rKelompok->rBiodata->prodi }}</td>
<td>{{ $item->rProposal->rKelompok->nama_dosen }} <br> {{ $item->rProposal->rKelompok->nidn_dosen }}</td> <td>{{ $item->rProposal->rKelompok->nama_dosen }} <br> {{ $item->rProposal->rKelompok->nidn_dosen }}</td>
<td>{{ $item->rProposal->rJenis->nama }}</td> <td align="center">{{ $item->rProposal->rJenis->nama }}</td>
<td>{{ $item->rProposal->judul }}</td> <td align="center">{{ $item->rProposal->judul }}</td>
<td> <td align="center">
@if(is_null($item->logbook_file)) @if(is_null($item->logbook_file))
<a href="{{ URL::to('mahasiswa/monev-revisi/'.encrypt($item->proposal_id.'__logbook__III')) }}" type="button" class="btn btn-warning btn-sm waves-effect waves-light"> <i class="fas fa-file-upload"></i> Upload</a> <a href="{{ URL::to('mahasiswa/monev-revisi/'.encrypt($item->proposal_id.'__logbook__II')) }}" type="button" class="btn btn-warning btn-sm waves-effect waves-light"> <i class="fas fa-file-upload"></i> Upload</a>
@else @else
<a href="https://statik.unesa.ac.id/simpmw/monev/III/logbook/{{ $item->logbook_file }}" target="_blank" title="Logbook" class="btn btn-info btn-sm waves-effect waves-light"> <i class="fas fa-search"></i> Lihat</a> <a href="https://statik.unesa.ac.id/simpmw/monev/II/logbook/{{ $item->logbook_file }}" target="_blank" title="Logbook" class="btn btn-info btn-sm waves-effect waves-light"> <i class="fas fa-search"></i> Lihat</a>
@endif @endif
</td> </td>
<td> <td align="center">
@if(is_null($item->laporan_kemajuan_file)) @if(is_null($item->laporan_akhir_file))
<a href="{{ URL::to('mahasiswa/monev-revisi/'.encrypt($item->proposal_id.'__kemajuan__III')) }}" type="button" class="btn btn-warning btn-sm waves-effect waves-light"> <i class="fas fa-file-upload"></i> Upload</a> <a href="{{ URL::to('mahasiswa/monev-revisi/'.encrypt($item->proposal_id.'__akhir__II')) }}" type="button" class="btn btn-warning btn-sm waves-effect waves-light"> <i class="fas fa-file-upload"></i> Upload</a>
@else @else
<a href="https://statik.unesa.ac.id/simpmw/monev/III/kemajuan/{{ $item->kemajuan_file }}" target="_blank" title="Laporan Kemajuan" class="btn btn-info btn-sm waves-effect waves-light"> <i class="fas fa-search"></i> Lihat</a> <a href="https://statik.unesa.ac.id/simpmw/monev/II/akhir/{{ $item->akhir_file }}" target="_blank" title="Laporan Akhir" class="btn btn-info btn-sm waves-effect waves-light"> <i class="fas fa-search"></i> Lihat</a>
@endif @endif
</td> </td>
<td> <td align="center">
@if(is_null($item->laporan_akhir_file)) @if(is_null($item->produk_url))
<a href="{{ URL::to('mahasiswa/monev-revisi/'.encrypt($item->proposal_id.'__akhir__III')) }}" type="button" class="btn btn-warning btn-sm waves-effect waves-light"> <i class="fas fa-file-upload"></i> Upload</a> <a href="{{ URL::to('mahasiswa/monev-revisi/'.encrypt($item->proposal_id.'__produk__II')) }}" type="button" class="btn btn-warning btn-sm waves-effect waves-light"> <i class="fas fa-file-upload"></i> Upload</a>
@else @else
<a href="https://statik.unesa.ac.id/simpmw/monev/III/akhir/{{ $item->akhir_file }}" target="_blank" title="Laporan Akhir" class="btn btn-info btn-sm waves-effect waves-light"> <i class="fas fa-search"></i> Lihat</a> <a href="{{ $item->produk_url }}" target="_blank" title="Video Produk Akhir" class="btn btn-info btn-sm waves-effect waves-light"> <i class="fas fa-search"></i> Lihat</a>
@endif @endif
</td> </td>
<td> <td align="center">
<a href="{{ URL::to('mahasiswa/luaran/'.encrypt($item->rProposal->proposal_id)) }}" type="button" class="btn btn-success btn-sm waves-effect waves-light"> <i class="fas fa-newspaper"></i> Luaran</a> <a href="{{ URL::to('mahasiswa/monev/II/anggaran/'.encrypt($item->id)) }}" type="button" class="btn btn-warning btn-sm waves-effect waves-light"><i class="fas fa-file-upload"></i> Upload</a>
</td> </td>
{{-- <td align="center">
<a href="{{ URL::to('mahasiswa/luaran/'.encrypt($item->rProposal->proposal_id)) }}" type="button" class="btn btn-success btn-sm waves-effect waves-light"><i class="fas fa-newspaper"></i> Luaran</a>
</td> --}}
<td align="center"> <td align="center">
<button data-bs-toggle="modal" data-bs-target="{{ '#lihat'.$item->id }}" class="btn btn-success btn-sm"> <i class="fas fa-search"></i> Hasil Penilaian</button> <button data-bs-toggle="modal" data-bs-target="{{ '#lihat'.$item->id }}" class="btn btn-success btn-sm form-control mb-2"><i class="fas fa-search"></i> Hasil Penilaian</button>
<a href="{{ URL::to('mahasiswa/monev-revisi/'.encrypt($item->id.'__proposal__III')) }}" type="button" class="btn btn-danger btn-sm waves-effect waves-light"> <i class="fas fa-file-upload"></i> Revisi</a> <a href="{{ URL::to('mahasiswa/monev-revisi/'.encrypt($item->proposal_id.'__proposal__II')) }}" type="button" class="btn btn-danger btn-sm waves-effect waves-light form-control" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Revisi Proposal"><i class="fas fa-file-upload"></i> Revisi</a>
<div id="{{ 'lihat'.$item->id }}" class="modal fade" tabindex="-1" role="dialog" <div id="{{ 'lihat'.$item->id }}" class="modal fade" tabindex="-1" role="dialog"
aria-labelledby="lihatLabel" aria-hidden="true"> aria-labelledby="lihatLabel" aria-hidden="true">
...@@ -130,10 +135,17 @@ ...@@ -130,10 +135,17 @@
<tr> <tr>
<th>Status</th> <th>Status</th>
<td colspan="2"> <td colspan="2">
@if(is_null($item->rProposal->status)) {{-- @if(is_null($item->rProposal->status))
<span class="badge bg-danger">Lolos Seleksi Internal</span> <span class="badge bg-danger">Lolos Seleksi Internal</span>
@else @else
<span class="badge bg-success">Tidak Lolos Seleksi Internal</span> <span class="badge bg-success">Tidak Lolos Seleksi Internal</span>
@endif --}}
@if(is_null($item->rProposal->status) || $item->rProposal->status == 0)
<span class="badge bg-info">Menunggu Reviewer</span>
@elseif($item->rProposal->status == 1)
<span class="badge bg-success">Lolos Seleksi Internal</span>
@else
<span class="badge bg-danger">Tidak Lolos Seleksi Internal</span>
@endif @endif
</td> </td>
</tr> </tr>
...@@ -172,22 +184,20 @@ ...@@ -172,22 +184,20 @@
@endforeach @endforeach
</tbody> </tbody>
</table> </table>
</div>
@else @else
<div class="alert alert-success alert-dismissible fade show" role="alert"> <div class="alert alert-success alert-dismissible fade show" role="alert">
<strong>Informasi!</strong> Monev Internal III dilaksanakan pada : <strong>Tanggal {{ Carbon\Carbon::parse($jadwal->tanggal_mulai)->isoFormat('D MMMM Y'); }}</strong> sampai dengan <strong>Tanggal {{ Carbon\Carbon::parse($jadwal->tanggal_selesai)->isoFormat('D MMMM Y'); }}.</strong> <strong>Informasi!</strong> Monev Internal II dilaksanakan pada : <strong>Tanggal {{ Carbon\Carbon::parse($jadwal->tanggal_mulai)->isoFormat('D MMMM Y'); }}</strong> sampai dengan <strong>Tanggal {{ Carbon\Carbon::parse($jadwal->tanggal_selesai)->isoFormat('D MMMM Y'); }}.</strong>
</div> </div>
@endif @endif
</div> </div>
</div> </div>
</div> <!-- end col --> </div> <!-- end col -->
</div> <!-- end row --> </div> <!-- end row -->
@endsection @endsection
@section('js') @section('js')
<script> <script>
function hapus(id, rowId){ function hapus(id, rowId){
Swal.fire({ Swal.fire({
title: 'Apakah anda yakin untuk menghapus Kelompok?', title: 'Apakah anda yakin untuk menghapus Kelompok?',
......
@php {{-- @php
header("Content-Type: application/vnd.ms-excel; charset=utf-8"); header("Content-Type: application/vnd.ms-excel; charset=utf-8");
header("Content-Disposition: attachment; filename=daftar-proposal-seleksi-internal.xls"); //File name extension was wrong header("Content-Disposition: attachment; filename=daftar-proposal-seleksi-internal.xls"); //File name extension was wrong
header("Expires: 0"); header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Cache-Control: private",false); header("Cache-Control: private",false);
@endphp @endphp --}}
{{-- <!DOCTYPE html>
<html>
<body> --}}
<table border="1"> <table border="1">
<thead> <thead>
<tr> <tr>
...@@ -69,3 +72,5 @@ ...@@ -69,3 +72,5 @@
@endforeach @endforeach
</tbody> </tbody>
</table> </table>
{{-- </body>
</html> --}}
\ No newline at end of file
...@@ -56,10 +56,10 @@ ...@@ -56,10 +56,10 @@
<label class="col-sm-3 col-form-label">Status : </label> <label class="col-sm-3 col-form-label">Status : </label>
<div class="col-sm-6"> <div class="col-sm-6">
<select class="form-select select2" name="reqStatus" id="reqStatus"> <select class="form-select select2" name="reqStatus" id="reqStatus">
<option value="">Semua</option> <option value="0">Semua</option>
<option value="0">Menunggu Persetujuan</option> <option value="1">Menunggu Persetujuan</option>
<option value="1">Lolos</option> <option value="2">Lolos</option>
<option value="2">Tidak Lolos</option> <option value="3">Tidak Lolos</option>
</select> </select>
</div> </div>
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment