fix(penilai): perbaikkan helper total luas tanah, bangunan, dan handle error key pembanding
This commit is contained in:
@@ -485,7 +485,7 @@ function calculateSLA($permohonan, $type)
|
|||||||
* @param int $jenisLegalitas
|
* @param int $jenisLegalitas
|
||||||
* @return int
|
* @return int
|
||||||
*/
|
*/
|
||||||
function calculateTotalLuas($detailsArray, $key, $jenisLegalitas, $defaultJenisLegalitas)
|
function calculateTotalLuas($detailsArray, $key, $jenisLegalitas, $defaultJenisLegalitas, $fallbackJenisLegalitas)
|
||||||
{
|
{
|
||||||
$total = 0;
|
$total = 0;
|
||||||
|
|
||||||
|
|||||||
@@ -52,7 +52,7 @@
|
|||||||
@endif
|
@endif
|
||||||
@if (Auth::user()->hasAnyRole(['senior-officer', 'EO Appraisal', 'DD Appraisal', 'administrator']))
|
@if (Auth::user()->hasAnyRole(['senior-officer', 'EO Appraisal', 'DD Appraisal', 'administrator']))
|
||||||
<a class="btn btn-info"
|
<a class="btn btn-info"
|
||||||
href="{{ route('penilai.lampiran') }}?permohonanId={{ request('permohonanId') }}&documentId={{ request('documentId') }}&inspeksiId={{ request('inspeksiId') }}&jaminanId={{ request('jaminanId') }}&statusLpj=1">
|
href="{{ route('penilai.lampiran') }}?permohonanId={{ $permohonan->id }}&documentId={{ request('documentId') }}&inspeksiId={{ request('inspeksiId') }}&jaminanId={{ request('jaminanId') }}&statusLpj=1">
|
||||||
Lampiran Foto dan Dokumen
|
Lampiran Foto dan Dokumen
|
||||||
</a>
|
</a>
|
||||||
<a href="{{ route('surveyor.print_out_inspeksi', ['permohonan_id' => $permohonan->id, 'dokument_id' => request('documentId'), 'jenis_jaminan_id' => request('jaminanId')]) }}" class="btn btn-light"
|
<a href="{{ route('surveyor.print_out_inspeksi', ['permohonan_id' => $permohonan->id, 'dokument_id' => request('documentId'), 'jenis_jaminan_id' => request('jaminanId')]) }}" class="btn btn-light"
|
||||||
|
|||||||
@@ -40,10 +40,10 @@
|
|||||||
@if ($key == 'luas_tanah' || $key == 'luas_bangunan')
|
@if ($key == 'luas_tanah' || $key == 'luas_bangunan')
|
||||||
{{ $data[$key] ?? '-' }} m²
|
{{ $data[$key] ?? '-' }} m²
|
||||||
@elseif($key == 'harga' || $key == 'total')
|
@elseif($key == 'harga' || $key == 'total')
|
||||||
{{ formatRupiah($data[$key]) ?? 0 }}
|
{{ isset($data[$key]) ? formatRupiah($data[$key]) : 0 }}
|
||||||
|
|
||||||
@elseif($key == 'tanggal')
|
@elseif($key == 'tanggal')
|
||||||
{{ formatTanggalIndonesia($data[$key]) ?? '-' }}
|
{{ isset($data[$key]) ? formatTanggalIndonesia($data[$key]) : '-' }}
|
||||||
@elseif($key == 'telepon')
|
@elseif($key == 'telepon')
|
||||||
{{ isset($data['telepon']) ? ubahNomorHp($data['telepon']) : '-' }}
|
{{ isset($data['telepon']) ? ubahNomorHp($data['telepon']) : '-' }}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user