Commit 1b7d8a17 by Alfiro Pratama

Excel Export Daftar Proposal + Perintilan View Monev II

parent 4920d01e
......@@ -46,7 +46,7 @@ class DaftarProposalExport implements FromView
$data = DaftarProposal::with(['rKelompokDetil', 'reviewerProposal1', 'reviewerProposal2'])
->select("*")
->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();
// dd($statement);
......
@php
{{-- @php
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("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Cache-Control: private",false);
@endphp
@endphp --}}
{{-- <!DOCTYPE html>
<html>
<body> --}}
<table border="1">
<thead>
<tr>
......@@ -69,3 +72,5 @@
@endforeach
</tbody>
</table>
{{-- </body>
</html> --}}
\ No newline at end of file
......@@ -56,10 +56,10 @@
<label class="col-sm-3 col-form-label">Status : </label>
<div class="col-sm-6">
<select class="form-select select2" name="reqStatus" id="reqStatus">
<option value="">Semua</option>
<option value="0">Menunggu Persetujuan</option>
<option value="1">Lolos</option>
<option value="2">Tidak Lolos</option>
<option value="0">Semua</option>
<option value="1">Menunggu Persetujuan</option>
<option value="2">Lolos</option>
<option value="3">Tidak Lolos</option>
</select>
</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