| # | Title | Malaysian safeguard text | Score | Status | Action |
|---|---|---|---|---|---|
| {{ ($safeguard->firstItem() - 1) + $loop->iteration }} | {{ $row->title }} | {{ $row->principle }} | @php $score = $row->marks; $scoreBadge = match(true) { ($score === null || $score === '') => 'bg-gray-100 text-gray-500', $score == 1 => 'bg-green-100 text-green-700', $score == 0 => 'bg-amber-100 text-amber-700', default => 'bg-indigo-100 text-indigo-700', }; @endphp {{ ($score === null || $score === '') ? '-' : $score }} | @php $status = $row->status ?? ''; $badge = match($status) { 'active', 'Respected' => 'bg-green-100 text-green-700', 'inactive' => 'bg-red-100 text-red-700', 'Respected With Possible Improvements' => 'bg-amber-100 text-amber-700', default => 'bg-gray-100 text-gray-500', }; @endphp {{ $status ?: '-' }} |
@can('safeguard-edit')
Edit
@endcan
@can('safeguard-delete')
@endcan
|
| No safeguard records found. | |||||