diff --git a/resources/views/penilai/components/print-out-rap.blade.php b/resources/views/penilai/components/print-out-rap.blade.php index 5f201e5..e968d62 100644 --- a/resources/views/penilai/components/print-out-rap.blade.php +++ b/resources/views/penilai/components/print-out-rap.blade.php @@ -282,18 +282,18 @@

DESKRIPSI DEVELOPER

- + - + + @isset($forminspeksi['lainnya_developer']) @foreach ($forminspeksi['lainnya_developer'] as $item) @endforeach @@ -302,42 +302,36 @@

KONDISI, LINGKUNGAN DAN PROGRESS PEMBANGUNAN

{{ $forminspeksi['pengalaman_developer'] ?? '' }} - {!! nl2br(e($forminspeksi['pengalaman_developer'] ?? 'Data tidak tersedia')) !!}
{{ $forminspeksi['developer_anggota'] ?? '' }}{!! nl2br(e($forminspeksi['developer_anggota'] ?? 'Data tidak tersedia')) !!}
- {{ $item }} + {!! nl2br(e($item)) !!}
- + - + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - @isset($forminspeksi['lainnya_kondisi']) @foreach ($forminspeksi['lainnya_kondisi'] as $item) @endforeach @@ -372,7 +366,7 @@ @foreach ($forminspeksi['jumlah_unit'] as $item) @endforeach @@ -384,7 +378,7 @@ @foreach ($forminspeksi['batas_batas_perumahan'] as $item) @endforeach @@ -396,7 +390,7 @@ @foreach ($forminspeksi['fasus_fasum'] as $item) @endforeach @@ -408,7 +402,7 @@ @foreach ($forminspeksi['progres_penjualan'] as $item) @endforeach @@ -420,7 +414,7 @@ @foreach ($forminspeksi['harga_unit'] as $item) @endforeach @@ -432,7 +426,7 @@ @foreach ($forminspeksi['target_market'] as $item) @endforeach @@ -444,7 +438,7 @@ @foreach ($forminspeksi['kerjasama_dengan_bank'] as $item) @endforeach @@ -512,9 +506,17 @@ $imagePathPenilai = storage_path( 'app/public/signatures/' . $penilaiUser->id . '/' . $penilaiUser->sign, ); + $soUser = User::where('id', $senior_officer->id)->first(); $imagePathSo = storage_path('app/public/signatures/' . $soUser->id . '/' . $soUser->sign); + $imagePathEO = storage_path( + 'app/public/signatures/' . + User::role('EO Appraisal')->first()->id . + '/' . + User::role('EO Appraisal')->first()->sign, + ); + $imagePathDD = storage_path( 'app/public/signatures/' . User::role('DD Appraisal')->first()->id . @@ -523,23 +525,32 @@ ); @endphp - - - - - + @if ($permohonan->approval_so != null) + + @endif + @if ($permohonan->approval_eo != null) + + @endif + @if ($permohonan->approval_dd != null) + + @endif @@ -547,19 +558,32 @@ - + @if ($permohonan->approval_so != null) + + + @endif + @if ($permohonan->approval_eo != null) + + @endif + + @if ($permohonan->approval_dd != null) + + @endif
{{ $forminspeksi['kapan_mulai_dibangun'] ?? '' }} - {!! nl2br(e($forminspeksi['kapan_mulai_dibangun'] ?? 'Data tidak tersedia')) !!}
{{ $forminspeksi['kondisi_perumahan'] ?? '' }}{!! nl2br(e($forminspeksi['kondisi_perumahan'] ?? 'Data tidak tersedia')) !!}
{!! nl2br(e($forminspeksi['progres_pembangunan'] ?? 'Data tidak tersedia')) !!}
{!! nl2br(e($forminspeksi['kontraktor'] ?? 'Data tidak tersedia')) !!}
{!! nl2br(e($forminspeksi['lingkungan_sekitar'] ?? 'Data tidak tersedia')) !!}
{!! nl2br(e($forminspeksi['komplek_disekitar'] ?? 'Data tidak tersedia')) !!}
{!! nl2br(e($forminspeksi['pusat_keramaian'] ?? 'Data tidak tersedia')) !!}
{!! nl2br(e($forminspeksi['transportasi_umum'] ?? 'Data tidak tersedia')) !!}
- {{ $forminspeksi['progres_pembangunan'] ?? '' }} - -
- {{ $forminspeksi['kontraktor'] ?? '' }} -
{{ $forminspeksi['lingkungan_sekitar'] ?? '' }}
{{ $forminspeksi['komplek_disekitar'] ?? '' }}
{{ $forminspeksi['pusat_keramaian'] ?? '' }}
{{ $forminspeksi['transportasi_umum'] ?? '' }}
- {{ $item }} + {!! nl2br(e($item)) !!}
- {{ $item }} + {!! nl2br(e($item)) !!}
- {{ $item }} + {!! nl2br(e($item)) !!}
- {{ $item }} + {!! nl2br(e($item)) !!}
- {{ $item }} + {!! nl2br(e($item)) !!}
- {{ $item }} + {!! nl2br(e($item)) !!}
- {{ $item }} + {!! nl2br(e($item)) !!}
- {{ $item }} + {!! nl2br(e($item)) !!}
- @if (file_exists($imagePathDD)) - {{ $imagePathDD }} - @endif - - @if (file_exists($imagePathSo)) - {{ $imagePathSo }} - @endif - + @if (file_exists($imagePathPenilai)) {{ $imagePathPenilai }} @endif + @if (file_exists($imagePathSo)) + {{ $imagePathSo }} + @endif + + @if (file_exists($imagePathEO)) + {{ $imagePathEO }} + @endif + + @if (file_exists($imagePathDD)) + {{ $imagePathDD }} + @endif +
{{ $penilai->userPenilaiTeam->name ?? '' }}
{{ ucwords(strtolower('PENILAI')) }}
- @if ($permohonan->approval_eo != null) - {{ $senior_officer->name ?? '' }} -
{{ ucwords(strtolower('SENIOR OFFICER')) }} - @endif -
+ {{ $senior_officer->name ?? '' }}
+ + {{ ucwords(strtolower('SENIOR OFFICER')) }} + -
- @if ($permohonan->approval_dd != null) - {{ User::role('DD Appraisal')->first()->name ?? '' }} -
{{ ucwords(strtolower('DEPUTY DIRECTOR')) }} - @endif -
+ {{ User::role('EO Appraisal')->first()->name ?? '' }}
+ + {{ ucwords(strtolower('EXECUTIVE OFFICER')) }} + +
+ {{ User::role('DD Appraisal')->first()->name ?? '' }}
+ + {{ ucwords(strtolower('DEPUTY DIRECTOR')) }} + +
diff --git a/resources/views/penilaian/otorisator/show.blade.php b/resources/views/penilaian/otorisator/show.blade.php index b442693..52fa692 100644 --- a/resources/views/penilaian/otorisator/show.blade.php +++ b/resources/views/penilaian/otorisator/show.blade.php @@ -95,7 +95,7 @@ @endif - @if (in_array($permohonan->nilai_plafond_id, [1, 4]) && $permohonan->approval_dd != null) + @if (in_array($permohonan->nilai_plafond_id, [1,2, 4]) && $permohonan->approval_dd != null) Disetujui Oleh (DD) {{ getUser($permohonan->approval_dd)->name ?? 'N/A' }} @@ -151,7 +151,7 @@ @if (Auth::user()->hasAnyRole(['administrator', 'DD Appraisal']) && $permohonan->approval_eo && $permohonan->approval_dd == null && - in_array($permohonan->nilai_plafond_id, [1, 4])) + in_array($permohonan->nilai_plafond_id, [1, 2, 4]))