update
parent
e66496b4e2
commit
f04bc45e3f
|
|
@ -77,6 +77,7 @@ class SampahController extends Controller
|
|||
'sekolah' => $sekolah,
|
||||
'bulan' => monthtString($row->bulan),
|
||||
'organik' => $row->organik,
|
||||
'mitra' => $row->mitra,
|
||||
'sampah_anorganik' => $row->sampah_anorganik,
|
||||
'b3' => $row->b3,
|
||||
'minyak_jelantah' => $row->minyak_jelantah,
|
||||
|
|
@ -103,6 +104,7 @@ class SampahController extends Controller
|
|||
'tahun' => date('Y'),
|
||||
'ms_sekolah_id' => session('sekolah_id'),
|
||||
'bulan' => $request->bulan,
|
||||
'mitra' => $request->mitra,
|
||||
'organik' => $request->organik,
|
||||
'sampah_anorganik' => $request->anorganik,
|
||||
'b3' => $request->b3,
|
||||
|
|
|
|||
|
|
@ -0,0 +1,28 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::table('sampah_terkelola', function (Blueprint $table) {
|
||||
$table->string('mitra')->nullable();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('sampah_terkelola', function (Blueprint $table) {
|
||||
//
|
||||
});
|
||||
}
|
||||
};
|
||||
|
|
@ -165,7 +165,7 @@
|
|||
<div class="grid lg:grid-cols-3 gap-12 items-center">
|
||||
<div class="lg:col-span-1">
|
||||
<h3 class="text-3xl font-extrabold text-slate-900 mb-6">Sebaran Sekolah Adiwiyata</h3>
|
||||
<p class="text-slate-600 mb-8">Peta interaktif distribusi sekolah peraih penghargaan Adiwiyata di 5 Wilayah Kota Administrasi dan 1 Kabupaten Administrasi DKI Jakarta.</p>
|
||||
<p class="text-slate-600 mb-8">Distribusi sekolah peraih penghargaan Adiwiyata di 5 Wilayah Kota Administrasi dan 1 Kabupaten Administrasi DKI Jakarta.</p>
|
||||
<div class="space-y-4">
|
||||
<div class="flex justify-between items-center p-4 bg-white rounded-2xl shadow-sm">
|
||||
<span class="text-sm font-semibold text-slate-700">Jakarta Timur</span>
|
||||
|
|
|
|||
|
|
@ -51,6 +51,7 @@
|
|||
@if(session('group_alias') != 'sekolah')
|
||||
<th data-field="sekolah">Sekolah</th>
|
||||
@endif
|
||||
<th data-field="mitra">Mitra</th>
|
||||
<th data-field="tahun">Tahun</th>
|
||||
<th data-field="bulan">Bulan</th>
|
||||
<th data-field="organik">Organik (Kg)</th>
|
||||
|
|
@ -81,6 +82,22 @@
|
|||
{{ csrf_field() }}
|
||||
<div class="modal-body">
|
||||
<div class="row">
|
||||
<div class="col-md-6 mb-2">
|
||||
<div class="form-group">
|
||||
<label class="col-xl-12 form-label">Mitra</label>
|
||||
<div class="col-12 pr-1">
|
||||
<select name="mitra" class="form-control is-required @error('mitra') is-invalid @enderror" id="">
|
||||
<option value="">-- Pilih Mitra --</option>
|
||||
<option value="Rumah Sosial Kutub">Rumah Sosial Kutub</option>
|
||||
<option value="T-Care">T-Care</option>
|
||||
<option value="TUKR">TUKR</option>
|
||||
</select>
|
||||
@error('mitra')
|
||||
<span class="invalid-feedback" style="display: block!important;"><strong>{{$message}}</strong></span>
|
||||
@enderror
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6 mb-2">
|
||||
<div class="form-group">
|
||||
<label class="col-xl-12 form-label">Tahun</label>
|
||||
|
|
|
|||
Loading…
Reference in New Issue