diff --git a/resources/views/surveyor/components/tanah.blade.php b/resources/views/surveyor/components/tanah.blade.php index 85d4366..6fc9531 100644 --- a/resources/views/surveyor/components/tanah.blade.php +++ b/resources/views/surveyor/components/tanah.blade.php @@ -63,10 +63,14 @@ @foreach ($permohonan->debiture->documents as $item) @php $luas = $item->detail; + if(is_array($luas)){ $details = json_decode($luas[0]->details, true); $hadap_mata_angin = isset($details['hadap_mata_angin']) ? $details['hadap_mata_angin'] : 'N/A'; + } else { + $luas_tanah = 'N/A'; + } @endphp