update
parent
c5bd04bcc4
commit
86ed7dfda4
|
|
@ -14,8 +14,8 @@ return new class extends Migration
|
||||||
Schema::create('ms_setting', function (Blueprint $table) {
|
Schema::create('ms_setting', function (Blueprint $table) {
|
||||||
$table->id('MsSettingId');
|
$table->id('MsSettingId');
|
||||||
$table->string('type')->nullable();
|
$table->string('type')->nullable();
|
||||||
$table->date('start_date')->nullable();
|
$table->timestampTz('start_date')->nullable();
|
||||||
$table->date('end_date')->nullable();
|
$table->timestampTz('end_date')->nullable();
|
||||||
$table->text('deskripsi')->nullable();
|
$table->text('deskripsi')->nullable();
|
||||||
$table->integer('status')->default(0);
|
$table->integer('status')->default(0);
|
||||||
$table->timestampsTz();
|
$table->timestampsTz();
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ class InsertSettingSeeder extends Seeder
|
||||||
'type' => 'pengumuman',
|
'type' => 'pengumuman',
|
||||||
],[
|
],[
|
||||||
'type' => 'pengumuman',
|
'type' => 'pengumuman',
|
||||||
'end_date' => '2026-06-22 11:00',
|
'start_date' => '2026-06-22 11:00',
|
||||||
'deskripsi' => 'Tahap pengusulan Calon Sekolah Adiwiyata Provinsi DKI Jakarta telah ditutup. Saat ini sedang berlangsung penilaian oleh Tim Penilai Provinsi. Hasil penilaian dan informasi selanjutnya akan diumumkan melalui SIDIA.',
|
'deskripsi' => 'Tahap pengusulan Calon Sekolah Adiwiyata Provinsi DKI Jakarta telah ditutup. Saat ini sedang berlangsung penilaian oleh Tim Penilai Provinsi. Hasil penilaian dan informasi selanjutnya akan diumumkan melalui SIDIA.',
|
||||||
'status' => '1',
|
'status' => '1',
|
||||||
]);
|
]);
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,15 @@
|
||||||
|
<?php
|
||||||
|
$setting = Setting::where('type','pengumuman')->first();
|
||||||
|
use Carbon\Carbon;
|
||||||
|
$target = Carbon::create(
|
||||||
|
date('Y',strtotime($setting->start_date)),
|
||||||
|
date('m',strtotime($setting->start_date)),
|
||||||
|
date('d',strtotime($setting->start_date)),
|
||||||
|
date('h',strtotime($setting->start_date)),
|
||||||
|
date('i',strtotime($setting->start_date)),
|
||||||
|
date('s',strtotime($setting->start_date)));
|
||||||
|
?>
|
||||||
|
@if(now()->gte($target))
|
||||||
<div class="col-md-12 mb-2">
|
<div class="col-md-12 mb-2">
|
||||||
<div class="card bg-danger-light">
|
<div class="card bg-danger-light">
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
|
|
@ -6,3 +18,4 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@endif
|
||||||
Loading…
Reference in New Issue