fix(surveyor): perbaiikan save pembanding kendaraan
This commit is contained in:
@@ -1385,7 +1385,7 @@ class SurveyorController extends Controller
|
|||||||
$maxSize = getMaxFileSize('Foto');
|
$maxSize = getMaxFileSize('Foto');
|
||||||
$validator = $request->validate([
|
$validator = $request->validate([
|
||||||
'permohonan_id' => 'required|exists:permohonan,id',
|
'permohonan_id' => 'required|exists:permohonan,id',
|
||||||
'type' => 'required|string',
|
'type' => 'nullable|string',
|
||||||
'dokument_id' => 'required',
|
'dokument_id' => 'required',
|
||||||
'name_foto_objek' => 'nullable|string',
|
'name_foto_objek' => 'nullable|string',
|
||||||
'nomor_registrasi' => 'required|string',
|
'nomor_registrasi' => 'required|string',
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
</a>
|
</a>
|
||||||
@else
|
@else
|
||||||
<a href="{{ route('surveyor.show', ['id' => $permohonan->id]) }}" class="btn btn-xs btn-info">
|
<a href="{{ route('surveyor.show', ['id' => $permohonan->id]) }}" class="btn btn-xs btn-info">
|
||||||
<i class="ki-filled ki-exit-left"></i> Kembali
|
<i class="ki-filled ki-exit-left"></i> Back
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
@@ -136,11 +136,11 @@
|
|||||||
<td class="px-4 py-2">Tahun</td>
|
<td class="px-4 py-2">Tahun</td>
|
||||||
<td class="px-4 py-2">
|
<td class="px-4 py-2">
|
||||||
|
|
||||||
<input type="text" name="tahun" class="input number-format"
|
<input type="text" name="tahun" class="input "
|
||||||
value="{{ $inspectionData['tahun'] ?? '' }}">
|
value="{{ $inspectionData['tahun'] ?? '' }}">
|
||||||
</td>
|
</td>
|
||||||
<td class="px-4 py-2">
|
<td class="px-4 py-2">
|
||||||
<input type="text" name="tahun_pembanding[]" class="input number-format">
|
<input type="text" name="tahun_pembanding[]" class="input ">
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
@@ -372,13 +372,13 @@
|
|||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td class="px-4 py-2">Harga</td>
|
<td class="px-4 py-2">Harga Penawaran/ Transaksi(Rp)</td>
|
||||||
<td class="px-4 py-2">
|
<td class="px-4 py-2">
|
||||||
<input type="text" name="harga" class="input currency"
|
<input type="text" name="harga" class="input currency-format"
|
||||||
value="{{ $inspectionData['harga'] ?? '' }}">
|
value="{{ $inspectionData['asset']['harga'] ?? '' }}">
|
||||||
</td>
|
</td>
|
||||||
<td class="px-4 py-2">
|
<td class="px-4 py-2">
|
||||||
<input type="text" name="harga_pembanding[]" class="input currency">
|
<input type="text" name="harga_pembanding[]" class="input currency-format">
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
@@ -386,7 +386,7 @@
|
|||||||
<td class="px-4 py-2">
|
<td class="px-4 py-2">
|
||||||
<div class="input">
|
<div class="input">
|
||||||
<input type="text" name="diskon" class=" currency"
|
<input type="text" name="diskon" class=" currency"
|
||||||
value="{{ $inspectionData['diskon'] ?? '' }}">
|
value="{{ $inspectionData['asset']['diskon'] ?? '' }}">
|
||||||
<span class="btn btn-icon">
|
<span class="btn btn-icon">
|
||||||
<i class="ki-outline ki-percentage"></i>
|
<i class="ki-outline ki-percentage"></i>
|
||||||
</span>
|
</span>
|
||||||
@@ -404,7 +404,7 @@
|
|||||||
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr style="display: none;">
|
{{-- <tr style="display: none;">
|
||||||
<td class="px-4 py-2">Total</td>
|
<td class="px-4 py-2">Total</td>
|
||||||
<td class="px-4 py-2">
|
<td class="px-4 py-2">
|
||||||
<input type="text" name="total" class="input currency"
|
<input type="text" name="total" class="input currency"
|
||||||
@@ -413,16 +413,15 @@
|
|||||||
<td class="px-4 py-2">
|
<td class="px-4 py-2">
|
||||||
<input type="text" name="total_pembanding[]" class="input currency-format">
|
<input type="text" name="total_pembanding[]" class="input currency-format">
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr> --}}
|
||||||
<tr>
|
<tr>
|
||||||
<td class="px-4 py-2">Harga Setelah Diskon</td>
|
<td class="px-4 py-2">Harga Setelah Diskon</td>
|
||||||
<td class="px-4 py-2">
|
<td class="px-4 py-2">
|
||||||
<input type="text" name="harga_diskon" class="input currency-format" readonly
|
<input type="text" name="total" class="input currency-format" readonly
|
||||||
value="{{ $inspectionData['harga_diskon'] ?? '' }}">
|
value="{{ $inspectionData['asset']['total'] ?? '' }}">
|
||||||
</td>
|
</td>
|
||||||
<td class="px-4 py-2">
|
<td class="px-4 py-2">
|
||||||
<input type="text" name="harga_diskon_pembanding[]" readonly
|
<input type="text" name="total_pembanding[]" readonly class="input currency-format">
|
||||||
class="input currency-format">
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|||||||
Reference in New Issue
Block a user