<table style="width: 100%; border-collapse: collapse; text-align: center;">
            @php
                use Modules\Usermanagement\Models\User;

                $penilaiUser = User::where('id', $penilai->userPenilaiTeam->id)->first();
                $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 .
                        '/' .
                        User::role('DD Appraisal')->first()->sign,
                );
            @endphp
            <tr>
                <td style=" padding: 4px;height: 50px">
                    @if (file_exists($imagePathPenilai))
                        <img src="{{ $imagePathPenilai }}" alt="{{ $imagePathPenilai }}" width="80px">
                    @endif
                </td>
                @if ($permohonan->approval_so != null)
                    <td style=" padding: 4px;height: 50px">
                        @if (file_exists($imagePathSo))
                            <img src="{{ $imagePathSo }}" alt="{{ $imagePathSo }}" width="80px">
                        @endif
                    </td>
                @endif
                @if ($permohonan->approval_eo != null)
                    <td style=" padding: 4px;height: 50px">
                        @if (file_exists($imagePathEO))
                            <img src="{{ $imagePathEO }}" alt="{{ $imagePathEO }}" width="80px">
                        @endif
                    </td>
                @endif
                @if ($permohonan->approval_dd != null)
                    <td style=" padding: 4px;height: 50px">
                        @if (file_exists($imagePathDD))
                            <img src="{{ $imagePathDD }}" alt="{{ $imagePathDD }}" width="80px">
                        @endif
                    </td>
                @endif
            </tr>
            <tr>
                <td style=" padding: 4px;">{{ $penilai->userPenilaiTeam->name ?? '' }}</br>
                    <span>
                        {{ ucwords(strtolower('PENILAI')) }}
                    </span>
                </br>
                    <span>
                        {{ isset($penilai->updated_at) ? formatTanggalIndonesia($penilai->updated_at) : '' }}
                    </span>
                </td>
                @if ($permohonan->approval_so != null)
                    <td style=" padding: 4px;">
                        {{ $senior_officer->name ?? '' }}</br>
                        <span>
                            {{ ucwords(strtolower('SENIOR OFFICER')) }}
                        </span>
                         </br>
                        <span>
                             {{ isset($permohonan->approval_so_at) ? formatTanggalIndonesia($permohonan->approval_so_at) : '' }}
                        </span>
                    </td>
                @endif

                @if ($permohonan->approval_eo != null)
                    <td style=" padding: 4px;">
                        {{ User::role('EO Appraisal')->first()->name ?? '' }}</br>
                        <span>
                            {{ ucwords(strtolower('EXECUTIVE OFFICER')) }}
                        </span>
                    </br>
                        <span>
                            {{ isset($permohonan->approval_eo_at) ? formatTanggalIndonesia($permohonan->approval_eo_at) : '' }}
                        </span>
                    </td>
                @endif
                @if ($permohonan->approval_dd != null)
                    <td style=" padding: 4px;">
                        {{ User::role('DD Appraisal')->first()->name ?? '' }}</br>
                        <span>
                            {{ ucwords(strtolower('DEPUTY DIRECTOR')) }}
                        </span>
                         </br>
                        <span>
                            {{
                                isset($permohonan->approval_dd_at) ?
                                formatTanggalIndonesia($permohonan->approval_dd_at) : '' }}
                        </span>
                    </td>
                @endif
            </tr>
        </table>
