Commit bc7867ef by Alfiro Pratama

perintilan form proposal

parent f468b942
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
</form> </form>
<br> <br>
<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 style="text-align: center; vertical-align: middle;">
<tr> <tr>
<th>No</th> <th>No</th>
<th>Kode Kelompok</th> <th>Kode Kelompok</th>
...@@ -62,6 +62,7 @@ ...@@ -62,6 +62,7 @@
{{-- <th>Identitas Dosen Pembimbing</th> --}} {{-- <th>Identitas Dosen Pembimbing</th> --}}
<th>Kategori PMW</th> <th>Kategori PMW</th>
<th>Judul Proposal</th> <th>Judul Proposal</th>
<th>Usulan Dana</th>
<th>Status</th> <th>Status</th>
<th>Aksi</th> <th>Aksi</th>
</tr> </tr>
...@@ -70,12 +71,19 @@ ...@@ -70,12 +71,19 @@
@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 style="text-align: center;">{{ $loop->iteration }}.</td>
<td>{{ $item->rKelompok->kode }}</td> <td style="text-align: center;">{{ $item->rKelompok->kode }}</td>
<td>{{ $item->rKelompok->rBiodata->name }} <br> {{ $item->rKelompok->rBiodata->noidentitas }} <br> {{ $item->rKelompok->rBiodata->fakultas }} <br> {{ $item->rKelompok->rBiodata->prodi }}</td> <td>{{ $item->rKelompok->rBiodata->name }} <br> {{ $item->rKelompok->rBiodata->noidentitas }} <br> {{ $item->rKelompok->rBiodata->fakultas }} <br> {{ $item->rKelompok->rBiodata->prodi }}</td>
{{-- <td>{{ $item->rKelompok->nama_dosen }} <br> {{ $item->rKelompok->nidn_dosen }}</td> --}} {{-- <td>{{ $item->rKelompok->nama_dosen }} <br> {{ $item->rKelompok->nidn_dosen }}</td> --}}
<td>{{ $item->rJenis->nama }}</td> <td style="text-align: center;">{{ $item->rJenis->nama }}</td>
<td>{{ $item->judul }}</td> <td style="text-align: center;">{{ $item->judul }}</td>
<td style="text-align: center;">
@if(substr(number_format($item->usulan_dana, 2, ',', '.'), -3) === ',00')
Rp{{ substr(number_format($item->usulan_dana, 2, ',', '.'), 0, -3) }},-
@else
Rp{{ number_format($item->usulan_dana, 2, ',', '.') }}
@endif
</td>
<td> <td>
@if(is_null($item->upload_dokumen)) @if(is_null($item->upload_dokumen))
<span class="badge bg-danger">Belum Upload Proposal</span> <br> <span class="badge bg-danger">Belum Upload Proposal</span> <br>
...@@ -280,10 +288,22 @@ function setuju(id, rowId){ ...@@ -280,10 +288,22 @@ function setuju(id, rowId){
open: function() { open: function() {
// Sembunyikan modal lama saat Magnific Popup dibuka // Sembunyikan modal lama saat Magnific Popup dibuka
$('#lihatDetail').modal('hide'); $('#lihatDetail').modal('hide');
var iframe = this.content.find('iframe');
if (iframe.length > 0) {
var videoSrc = iframe.attr('src');
iframe.attr('src', videoSrc + '&autoplay=1'); // Tambahkan autoplay=1 ke URL video
}
}, },
close: function() { close: function() {
// Tampilkan kembali modal setelah Magnific Popup ditutup // Tampilkan kembali modal setelah Magnific Popup ditutup
$('#lihatDetail').modal('show'); $('#lihatDetail').modal('show');
var iframe = this.content.find('iframe');
if (iframe.length > 0) {
var videoSrc = iframe.attr('src');
iframe.attr('src', videoSrc.replace('&autoplay=1', '')); // Hapus autoplay=1 dari URL video
}
} }
} }
}); });
......
...@@ -55,13 +55,14 @@ ...@@ -55,13 +55,14 @@
</form> </form>
<br> <br>
<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 style="text-align: center; vertical-align: middle;">
<tr> <tr>
<th>No</th> <th>No</th>
<th>Kode Kelompok</th> <th>Kode Kelompok</th>
<th>Identitas Ketua</th> <th>Identitas Ketua</th>
<th>Kategori PMW</th> <th>Kategori PMW</th>
<th>Judul Proposal</th> <th>Judul Proposal</th>
<th>Usulan Dana</th>
<th>Status</th> <th>Status</th>
<th>Aksi</th> <th>Aksi</th>
</tr> </tr>
...@@ -70,12 +71,19 @@ ...@@ -70,12 +71,19 @@
@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 style="text-align: center;">{{ $loop->iteration }}.</td>
<td>{{ $item->rKelompok->kode }}</td> <td style="text-align: center;">{{ $item->rKelompok->kode }}</td>
<td>{{ $item->rKelompok->rBiodata->name }} <br> {{ $item->rKelompok->rBiodata->noidentitas }} <br> {{ $item->rKelompok->rBiodata->fakultas }} <br> {{ $item->rKelompok->rBiodata->prodi }}</td> <td>{{ $item->rKelompok->rBiodata->name }} <br> {{ $item->rKelompok->rBiodata->noidentitas }} <br> {{ $item->rKelompok->rBiodata->fakultas }} <br> {{ $item->rKelompok->rBiodata->prodi }}</td>
<td>{{ $item->rJenis->nama }}</td> <td style="text-align: center;">{{ $item->rJenis->nama }}</td>
<td>{{ $item->judul }}</td> <td style="text-align: center;">{{ $item->judul }}</td>
<td> <td style="text-align: center;">
@if(substr(number_format($item->usulan_dana, 2, ',', '.'), -3) === ',00')
Rp{{ substr(number_format($item->usulan_dana, 2, ',', '.'), 0, -3) }},-
@else
Rp{{ number_format($item->usulan_dana, 2, ',', '.') }}
@endif
</td>
<td style="text-align: center;">
@if(is_null($item->rDaftarPro->status_final) || $item->rDaftarPro->status_final == 0) @if(is_null($item->rDaftarPro->status_final) || $item->rDaftarPro->status_final == 0)
<span class="badge bg-info">Menunggu Reviewer</span> <span class="badge bg-info">Menunggu Reviewer</span>
@elseif($item->rDaftarPro->status_final == 1) @elseif($item->rDaftarPro->status_final == 1)
...@@ -84,11 +92,9 @@ ...@@ -84,11 +92,9 @@
<span class="badge bg-danger">Tidak Lolos Seleksi Internal</span> <span class="badge bg-danger">Tidak Lolos Seleksi Internal</span>
@endif @endif
</td> </td>
<td> <td style="text-align: center;">
<a data-toggle="tooltip" data-id="{{ $item->proposal_id }}" data-original-title="Lihat" class="btn btn-info btn-sm lihatDet"><i class="far fa-eye"></i> Lihat</a> <a data-toggle="tooltip" data-id="{{ $item->proposal_id }}" data-original-title="Lihat" class="btn btn-info btn-sm lihatDet"><i class="far fa-eye"></i> Lihat</a>
</div> </div>
</td> </td>
</tr> </tr>
@endforeach @endforeach
......
...@@ -88,13 +88,12 @@ ...@@ -88,13 +88,12 @@
<div class="col-sm-10 col-lg-10"> <div class="col-sm-10 col-lg-10">
<div class="input-group"> <div class="input-group">
<span class="input-group-text">Rp</span> <span class="input-group-text">Rp</span>
<input class="form-control" type="text" id="usulan_dana" name="usulan_dana" value="{{ old('usulan_dana') }}" placeholder="Dana yang ingin diajukan (cth: 12345678 atau 123456.78)" required onkeypress="return isNumberKey(event)" onkeyup="formatRupiah(this)"> <input class="form-control" type="text" id="usulan_dana" name="usulan_dana" value="{{ old('usulan_dana') }}" placeholder="Dana yang ingin diajukan (cth: 950000 atau 950000.50 tanda (.) hanya untuk nominal desimal)" required onkeypress="return isNumberKey(event)" onkeyup="formatRupiah(this)">
</div> </div>
<small id="invalidInput" class="text-danger" style="display: none;">Harap masukkan angka atau desimal (contoh: 12345678 atau 123456.78)</small> <small id="invalidInput" class="text-danger" style="display: none;">Harap masukkan angka atau desimal (contoh: 950000 atau 950000.50)</small>
<small id="dotWarning" style="display: none; color: red;">Simbol titik (.) tidak boleh diinputkan lebih dari 1</small> <small id="dotWarning" style="display: none; color: red;">Simbol titik (.) tidak boleh diinputkan lebih dari 1</small>
</div> </div>
</div> </div>
</div>
<div class="mb-0 d-flex justify-content-end"> <div class="mb-0 d-flex justify-content-end">
<div> <div>
<button type="submit" class="btn btn-primary waves-effect waves-light me-1"> Submit </button> <button type="submit" class="btn btn-primary waves-effect waves-light me-1"> Submit </button>
......
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
</form> </form>
<br> <br>
<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="text-align: center; vertical-align: middle;">
<tr> <tr>
<th>No</th> <th>No</th>
<th>Kode Kelompok</th> <th>Kode Kelompok</th>
...@@ -63,6 +63,7 @@ ...@@ -63,6 +63,7 @@
<th>Identitas Dosen Pembimbing</th> <th>Identitas Dosen Pembimbing</th>
<th>Kategori PMW</th> <th>Kategori PMW</th>
<th>Judul Proposal</th> <th>Judul Proposal</th>
<th>Usulan Anggaran</th>
<th>Status</th> <th>Status</th>
<th>Aksi</th> <th>Aksi</th>
</tr> </tr>
...@@ -71,13 +72,20 @@ ...@@ -71,13 +72,20 @@
@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 style="text-align: center;">{{ $loop->iteration }}.</td>
<td>{{ $item->rKelompok->kode }}</td> <td style="text-align: center;">{{ $item->rKelompok->kode }}</td>
<td>{{ $item->rKelompok->rBiodata->name }} <br> {{ $item->rKelompok->rBiodata->noidentitas }} <br> {{ $item->rKelompok->rBiodata->fakultas }} <br> {{ $item->rKelompok->rBiodata->prodi }}</td> <td>{{ $item->rKelompok->rBiodata->name }} <br> {{ $item->rKelompok->rBiodata->noidentitas }} <br> {{ $item->rKelompok->rBiodata->fakultas }} <br> {{ $item->rKelompok->rBiodata->prodi }}</td>
<td>{{ $item->rKelompok->nama_dosen }} <br> {{ $item->rKelompok->nidn_dosen }}</td> <td>{{ $item->rKelompok->nama_dosen }} <br> {{ $item->rKelompok->nidn_dosen }}</td>
<td>{{ $item->rJenis->nama }}</td> <td style="text-align: center;">{{ $item->rJenis->nama }}</td>
<td>{{ $item->judul }}</td> <td style="text-align: center;">{{ $item->judul }}</td>
<td> <td style="text-align: center;">
@if(substr(number_format($item->usulan_dana, 2, ',', '.'), -3) === ',00')
Rp{{ substr(number_format($item->usulan_dana, 2, ',', '.'), 0, -3) }},-
@else
Rp{{ number_format($item->usulan_dana, 2, ',', '.') }}
@endif
</td>
<td style="text-align: center;">
@if(is_null($item->rDaftarPro->status_final) || $item->rDaftarPro->status_final == 0) @if(is_null($item->rDaftarPro->status_final) || $item->rDaftarPro->status_final == 0)
<span class="badge bg-info">Menunggu Reviewer</span> <span class="badge bg-info">Menunggu Reviewer</span>
@elseif($item->rDaftarPro->status_final == 1) @elseif($item->rDaftarPro->status_final == 1)
...@@ -86,11 +94,8 @@ ...@@ -86,11 +94,8 @@
<span class="badge bg-danger">Tidak Lolos Seleksi Internal</span> <span class="badge bg-danger">Tidak Lolos Seleksi Internal</span>
@endif @endif
</td> </td>
<td> <td style="text-align: center;">
<a data-toggle="tooltip" data-id="{{ $item->proposal_id }}" data-original-title="Lihat" class="btn btn-info btn-sm lihatDet"><i class="far fa-eye"></i> Lihat</a> <a data-toggle="tooltip" data-id="{{ $item->proposal_id }}" data-original-title="Lihat" class="btn btn-info btn-sm lihatDet"><i class="far fa-eye"></i> Lihat</a>
</div>
</td> </td>
</tr> </tr>
@endforeach @endforeach
...@@ -116,7 +121,6 @@ ...@@ -116,7 +121,6 @@
<tbody> <tbody>
</tbody> </tbody>
</table> </table>
</div> </div>
</p> </p>
......
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