@foreach ($formData as $formLabel => $fields) @if ($fields) @php $showSection = false; foreach ($fields as $field) { if ($field['visibility'] === true) { $showSection = true; break; } } @endphp
@endif @endforeach
@if ($sublistView != '1') @php $groupedSublists = []; foreach ($formSublists as $sublist) { $row = $sublist['row']; if (!isset($groupedSublists[$row])) { $groupedSublists[$row] = []; } $groupedSublists[$row][] = $sublist; } @endphp
@foreach ($groupedSublists as $row => $sublists)
@foreach ($sublists as $sublist) @php // Assuming width is given in number of columns $colSpan = $sublist['width']; @endphp {{-- /********************** UPDATE HERE *********************/ --}}

{{ $sublist['label'] }}

{{--

{{ $sublist['label'] }}

--}} @if($sublist['label'] != 'Documents' && $sublist['label'] != 'Gantt' && $sublist['label'] != 'Comments') {{-- {{ dd($sublist['recordtype']) }} @if (!auth()->user()->hasPermissionForRecordType('can_view', $sublist['recordtype'])) { --}} {{-- @endif --}} @endif @if($sublist['label'] == 'Comments')
@endif @if($sublist['label'] == 'Documents') @endif @if($sublist['label'] == 'Gantt')
@endif
@endforeach
@endforeach
@else @if ($formSublists || $recordType == '-1') @if($recordType == '-1' && !$formview)
@if($formSublists) @foreach ($formSublists as $index => $sublist)
{{ $sublist['label'] }}
@endforeach @endif
@else @endif @endif @endif
Edit
@prepend('dhtmlxgantt') @endprepend {{-- --}}