Commit dfe1a845 by Siti Aisah

fix tarik saku

parent b702422a
...@@ -16,14 +16,12 @@ class SakuController extends Controller ...@@ -16,14 +16,12 @@ class SakuController extends Controller
{ {
public function index() { public function index() {
$pengusul = DB::table('bantuan_pengusul')->get(); $penelaah = DB::table('tr_penelaah')->get();
$kategori = DB::table('ms_kategori')->orderBy('kode_kategori','asc')->get();
$data = [ $data = [
'pengusul' => $pengusul, 'penelaah' => $penelaah
'kategori' => $kategori
]; ];
return view('transaksi.index', $data); return view('saku.index', $data);
} }
} }
...@@ -61,7 +61,7 @@ public function store(Request $request){ ...@@ -61,7 +61,7 @@ public function store(Request $request){
Pengajuan::query()->create($transaksi); Pengajuan::query()->create($transaksi);
$hasil = DB::table('tr_pengajuan')->where('id_pengajuan',$request->idpengajuan)->get(); $hasil = DB::table('tr_pengajuan')->where('id_pengajuan',$request->idpengajuan)->first();
$reviewer = DB::table('bantuan_penelaah')->where('id_pengajuan',$request->idpengajuan)->get(); $reviewer = DB::table('bantuan_penelaah')->where('id_pengajuan',$request->idpengajuan)->get();
...@@ -76,6 +76,7 @@ public function store(Request $request){ ...@@ -76,6 +76,7 @@ public function store(Request $request){
]; ];
Penelaah::query()->create($saku); Penelaah::query()->create($saku);
} }
DB::commit(); DB::commit();
......
@extends('layouts.master')
@section('content')
<div class="row">
<div class="col-md-12">
<div class="card">
<div class="card-header">
<h4 class="card-title">Daftar Reviewer</h4>
</div>
<div class="card-body">
<div class="card-text">
<div class="row">
<div class="col-md-8">
{{-- @livewire('admin.masters.registrasi.add-registrasi-component') --}}
</div>
<div class="col-md-4 text-right">
{{-- <div class="row">
<label class="col-sm-3 col-form-label"></label>
<label class="col-sm-3 col-form-label">Cari : </label>
<div class="col-sm-6">
<input type="text" class="form-control align-right" placeholder="Search" wire:model="keyword">
</div>
</div> --}}
</div>
</div>
</div>
</div>
<div class="table-responsive mb-4">
<table id="zero-config" class="table table-hover" style="width:100%">
<thead>
<tr>
<th>No. Pengajuan</th>
<th style="text-align: left">File SK</th>
<th style="text-align: left">Nama</th>
<th style="text-align: left">Judul</th>
<th style="text-align: left">Tahun</th>
<th style="text-align: left">Klasifikasi</th>
<th style="text-align: left">File EC</th>
<th style="text-align: left">Kategori</th>
</tr>
</thead>
<tbody>
@foreach($penelaah as $item)
@php
$pengajuan = DB::table('tr_pengajuan')->where('id',$item->id_pengajuan)->first();
@endphp
<tr>
<td>{{ $pengajuan->id_pengajuan }}</td>
<td style="text-align: left">SURAT</td>
<td style="text-align: left">{{ $item->nama }}</td>
<td style="text-align: left">{{ $pengajuan->judul }}</td>
<td style="text-align: left">{{ $pengajuan->tahun }}</td>
<td style="text-align: left">{{ $pengajuan->klasifikasi }}</td>
<td style="text-align: left">FILE EC</td>
@php
$kategori = DB::table('ms_kategori')->where('id',$pengajuan->id_kategori)->first();
@endphp
<td style="text-align: left">{{ $kategori->nama_kategori }}</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
</div>
@push('js')
@endpush
@stop
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