@php $user = Auth::user(); $userId = $user->id; $user->userType->name=='Administrador' ? $isAdmin = true : $isAdmin = false; @endphp @if($data['data']->count() > 0) 🔒 Formulario GDPR - {{ $data['data']->first()->header->name }} Guardar Sin Cambios... @php $currentGroup = null; $currentType = null; @endphp @foreach($data['data'] as $form) @php if(!$isAdmin && $userId != $form->colaborator){ continue; } if($form->header->type == 'Revisión' && $form->apply != 1){ continue; } $currentItem = $form->item; // Reset item when group changes @endphp @if($currentGroup !== $form->groupItem->name) @php $currentGroup = $form->groupItem->name; $currentType = null; // Reset type when group changes @endphp {{ __('gdpr.fields.' . $form->groupItem->name) }} @endif @if($currentType !== $form->typeItem->name) @php $currentType = $form->typeItem->name; @endphp {{ __('gdpr.fields.' . $form->typeItem->name) }} @endif {{ __('gdpr.fields.' . $form->item) }} @if($form->header->type == 'Apertura') @switch($form->apply) @case(-1) Seleccione.. No Aplica Aplica @break @case(0) No Aplica Aplica @break @case(1) Aplica No Aplica @break @endswitch @endif @if($isAdmin && 1 == 0) @if($form->colaborator > 0) {{ $form->colaboratort->name }} @endif Sin Colaborador.. @foreach($data['colab'] as $colab) {{ $colab->name }} @endforeach @endif @if($form->itemTemplate->valoration > 0) @if($form->typeRisk != null) {{ $form->typeRisk->name }} @endif Riesgo Muy Bajo Riesgo Bajo Riesgo Medio Riesgo Alto Riesgo Extremo @endif @if($form->header->type != 'Apertura') {{ $form->mitigation->name ?? 'No Hubo Mitigación' }} @endif @if($form->header->type == 'Apertura' && $form->apply == 1) lightbulb @endif header->type != 'Apertura') @readonly(true) @endif rows="5" name="suggestions" id="suggestions" data-sigla="{{ $form->sigla }}" class="area-suggestions {{ $form->sigla }} suggestions-{{ $form->sigla }} " placeholder="Sugerencias..." style="padding-left: 40px;">{{ $form->suggestions ?? '' }} @if($form->header->type != 'Apertura') lightbulb {{ $form->actions ?? '' }} @endif @endforeach @else No se encontraron formularios GDPR para esta auditoría. @endif