{{ __('Task Infomation') }}
@if (isset($task)) @else @endif
@if (isset($task)) @else @endif
@if (isset($task)) @else @endif
@php if(isset($task)){ $add_anlss_btn = \App\Models\TaskAnalysis::where('branch_id', session('branch_id'))->where('task_id', $task->id)->where('done', 0)->count(); } @endphp @if(isset($task)) @if($add_anlss_btn == 1 ) @else @endif @else @endif {{-- TEMPLATE ANALYSIS FORM --}}
@include('admin.task.template._analysis_form')
@isset($task->task_analysis) @foreach ($task->task_analysis as $analysis)

Analysis

@csrf {{-- @method('put') --}}
@php $selected_users = []; foreach ($analysis->task_analysis_users as $tau) { $selected_users[] = $tau->user->id; } @endphp
    @if (isset($analysis->attachments)) @foreach ($analysis->attachments as $attach)
  • {{ $attach['file_name'] }} @endforeach @endif
{{ __('Comment') }}
@php $count_comments = 0; @endphp @if (isset($analysis->comments)) @foreach ($analysis->comments as $comment) @php $count_comments++; @endphp @endforeach @endif
{{ __('Comment') }}
@endforeach @else

Analysis

@csrf
    @if (isset($attachments)) @foreach ($attachments as $attach)
  • {{ $attach['file_name'] }} @endforeach @endif
{{ __('Comment') }}
@php $count_comments = 0; @endphp @if (isset($task) && isset($task_comment)) @foreach ($task_comment as $comment) @php $count_comments++; @endphp @endforeach @endif
{{ __('Comment') }}
@endisset