{{ __('title.discussion') }}

@foreach( $topics as $topicable ) @php if($topicable instanceof \App\Models\TopicableWorkstation) { $id = $topicable->topicable_id; $name = $topicable->topicable->topic->name; $workstation_id = $topicable->workstation_id; $workstation_name = $topicable->workstation->name; $base_topicable = $topicable->topicable; } else { $id = $topicable->id; $name = $topicable->topic->name; $workstation_id = 0; $workstation_name = ""; $base_topicable = $topicable; } @endphp
@endforeach
@foreach( $topics as $topicable ) @php if($topicable instanceof \App\Models\TopicableWorkstation) { $id = $topicable->topicable_id; $name = $topicable->topicable->topic->name; $workstation_id = $topicable->workstation_id; $workstation_name = $topicable->workstation->name; $base_topicable = $topicable->topicable; } else { $id = $topicable->id; $name = $topicable->topic->name; $workstation_id = 0; $workstation_name = ""; $base_topicable = $topicable; } @endphp
@include('checklist::topics.cases', ['cases' => $topicable->cases])

@endforeach