Merge pull request #22 from arieeefajar/fix/assessment-form

fix(assessment-form): assessment-form page
This commit is contained in:
Arie Fajar Bachtiar 2025-03-13 12:47:45 +07:00 committed by GitHub
commit 0fd839855e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 4 additions and 4 deletions

View File

@ -15,7 +15,7 @@ class AssesmentFormController extends Controller
{
public function index()
{
$lands = Land::select('id', 'land_name')->whereNotIn('id', function ($query) {
$lands = Land::select('id', 'owner')->whereNotIn('id', function ($query) {
$query->select('land_id')->from('evaluation');
})->orderBy('created_at', 'desc')->get();
$indicators = Indicator::select('id', 'name')->whereIn('id', function ($query) {

View File

@ -38,7 +38,7 @@
<select name="land" class="form-control" id="lahan-field" required>
<option value="" selected disabled>Pilih Lahan</option>
@foreach ($lands as $land)
<option value="{{ $land->id }}">{{ $land->land_name }}</option>
<option value="{{ $land->id }}">{{ $land->owner }}</option>
@endforeach
</select>
<div class="invalid-feedback">

View File

@ -75,7 +75,7 @@
<a href="javascript:void(0);"
class="fw-medium link-primary">#VZ2101</a>
</td>
<td class="customer_name">{{ $evaluation->land->land_name }}</td>
<td class="customer_name">{{ $evaluation->land->owner }}</td>
<td class="status">
<span>{{ number_format($evaluation->cf_value, 4) * 100 }}%</span>
</td>

View File

@ -75,7 +75,7 @@
<a href="javascript:void(0);"
class="fw-medium link-primary">#VZ2101</a>
</td>
<td class="customer_name">{{ $evaluation->land->land_name }}</td>
<td class="customer_name">{{ $evaluation->land->owner }}</td>
<td class="status">
<span>{{ number_format($evaluation->cf_value, 2) * 100 }}%</span>
</td>