main
Ilham Wara Nugroho 2026-06-15 12:46:55 +07:00
parent 2e04501e83
commit 20d2a73127
2 changed files with 6 additions and 22 deletions

View File

@ -64,7 +64,7 @@ class SampahBelumTerkelolaController extends Controller
foreach ($data->get() as $key => $row) { foreach ($data->get() as $key => $row) {
$action = ''; $action = '';
$action .= '<a href="'.url('sampah/update/'.encode_id($row->SampahBelumTerkelolaId)).'" class="btn text-white btn-primary btn-sm">Edit</a>'; $action .= '<a href="'.url('sampah-belum-terkelola/update/'.encode_id($row->SampahBelumTerkelolaId)).'" class="btn text-white btn-primary btn-sm">Edit</a>';
$sekolah = ''; $sekolah = '';

View File

@ -97,39 +97,23 @@
</div> </div>
</div> </div>
</div> </div>
<div class="col-md-12 mb-3"> <div class="col-md-12 mb-3">
<div class="form-group"> <div class="form-group">
<label class="col-xl-12 form-label">Mitra Minyak Jelantah</label> <label class="col-xl-12 form-label">Sampah Residu</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 {{ $item->mitra == 'Rumah Sosial Kutub' ? 'selected' : '' }} value="Rumah Sosial Kutub">Rumah Sosial Kutub</option>
<option {{ $item->mitra == 'T-Care' ? 'selected' : '' }} value="T-Care">T-Care</option>
<option {{ $item->mitra == 'TUKR' ? 'selected' : '' }} 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-12 mb-3">
<div class="form-group">
<label class="col-xl-12 form-label">Minyak Jelantah</label>
<div class="col-12 pr-1"> <div class="col-12 pr-1">
<div class="input-group"> <div class="input-group">
<input type="text" name="minyak_jelantah" value="{{ @$item->minyak_jelantah }}" class="form-control numberInput @error('minyak_jelantah') is-invalid @enderror" placeholder="Masukan Jumlah Minyak Jelantah"> <input type="text" name="residu" value="{{ @$item->residu }}" class="form-control numberInput @error('residu') is-invalid @enderror" placeholder="Masukan Jumlah Sampah Residu" required>
<div class="input-group-append"> <div class="input-group-append">
<button class="btn btn-default waves-effect waves-themed" type="button">L</button> <button class="btn btn-default waves-effect waves-themed" type="button">Kg</button>
</div> </div>
</div> </div>
@error('minyak_jelantah') @error('residu')
<span class="invalid-feedback" style="display: block!important;"><strong>{{$message}}</strong></span> <span class="invalid-feedback" style="display: block!important;"><strong>{{$message}}</strong></span>
@enderror @enderror
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>