Commit ee952692 by novanbagus

perbaikan monev internal sesuai dengan jadwal

parent c25683fd
......@@ -16,6 +16,7 @@ use App\Models\Reviewer;
use App\Models\JenisMonev;
use Illuminate\Http\Request;
use App\Models\ReviewerMonev;
use App\Models\JadwalKegiatan;
use Illuminate\Support\Carbon;
use App\Models\ReviewerProposal;
use App\Models\ReviewerMonevDetil;
......@@ -42,8 +43,10 @@ class DaftarMonevController extends Controller
public function index($id)
{
$jenis_monev = JenisMonev::select('nama')->where('jenis_monev_id', Crypt::decrypt($id))->first();
$jadwal = JadwalKegiatan::where('periode_id', DaftarMonevController::periode_id)->where('nama',$jenis_monev->nama)->first();
$data = [
'id'=> $id
'id'=> $id,
'jadwal'=> $jadwal,
];
return view('backend.reviewer.monev.index', compact('data'))->withTitle($jenis_monev->nama);
}
......
......@@ -9,6 +9,9 @@
<h3>Dashboard</h3>
</div>
@endsection
@php
$jadwal = $data['jadwal'];
@endphp
@section('contents')
<!-- start page title -->
......@@ -31,6 +34,7 @@
<div class="col-12">
<div class="card">
<div class="card-body">
@if((($jadwal->tanggal_mulai <= Carbon\Carbon::now()) && ($jadwal->tanggal_selesai >= Carbon\Carbon::now())) || $jadwal->tanggal_mulai <= Carbon\Carbon::now())
<table id="example" class="table table-bordered dt-responsive nowrap" style="border-collapse: collapse; border-spacing: 0; width: 100%;">
<thead>
<tr>
......@@ -49,7 +53,11 @@
<tbody>
</tbody>
</table>
@else
<div class="alert alert-success alert-dismissible fade show" role="alert">
<strong>Informasi!</strong> {!! $title !!} dilaksanakan pada : <strong>Tanggal {{ Carbon\Carbon::parse($jadwal->tanggal_mulai)->isoFormat('D MMMM Y HH:mm:ss'); }}</strong> sampai dengan <strong>Tanggal {{ Carbon\Carbon::parse($jadwal->tanggal_selesai)->isoFormat('D MMMM Y HH:mm:ss'); }}.</strong>
</div>
@endif
</div>
</div>
</div> <!-- end col -->
......
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