@can('dashboard')

Safeguard

@if($safeguard->count())
@foreach($safeguard as $s) @endforeach
@foreach($safeguard as $ss)

Malaysian safeguard text

{{ $ss->principle ?? '' }}

Score : {{ $ss->marks ?? '' }}

Score Text : {{ $ss->status ?? '' }}

@foreach($ss->indicatorSafeguard as $row) @foreach($row->address_verifier as $row1) @foreach($row1->address_respect_verifier as $row2) @endforeach @endforeach @endforeach
Indicator Code Address Indicator Address Verifier Indicator Code Respect Indicator Respect Verifier Respect Score
{{ $row->address_code ?? '' }} {{ $row->address_indicator ?? '' }}{{ $row1->address_verifier_description ?? '' }}
@foreach($row1->file_attachments as $file) @php if (!empty($file->file_attachment)) { $file_path = asset('storage/files/'.$file->file_attachment); $file_name = $file->file_name; } else { $file_path = $file->information_source; $file_name = $file->information_source; } @endphp @if(filter_var($file_path, FILTER_VALIDATE_URL) === FALSE)
**{{ $file_name }} @else {{ $file_name }}
@endif @endforeach
{{ $row1->respect_code ?? '-' }} {{ $row1->respect_indicator ?? '-' }}{{ $row2->respect_verifier_description ?? '-' }} {{ $row2->respect_score ?? '-' }}
@endforeach
@endif
@endcan