@extends('layouts.app') @section('title', 'View Data Sheet') @section('headSource') @endsection @section('content')

{{$record->name}} Task Sheet

{{$record->name}}

@if (/*checkPermission('editSheet',Auth::user()->role) || */Auth::user()->role=='SuperAdmin' || $record->coordinator_id == auth()->user()->id) @endif

Tasks

@if (checkPermission('addTask',Auth::user()->role) || Auth::user()->role=='SuperAdmin') $record->id])}}" class="btn btn-primary btn-sm"> Add new task @endif
{{----}} @foreach($record->tasks as $task) @php if ($task->is_new) { $notesArr = json_decode($task->progress_note); $progressNote = $notesArr ? $notesArr[0] : 'N/A'; } else $progressNote = $task->progress_note; @endphp {{----}} @endforeach
Sr Title Progress NoteTotal StatusesStatus Created At Action
{{$loop->iteration}} {{$task->title}} {{substr($progressNote, 0, 50)}}{{$task->answers->count()}} {!! ($task->status == 1)? 'Active': 'Inactive' !!} {{ Carbon\Carbon::parse($record->created_at)->format('d M, Y h:i A')}}
@if (checkPermission('editTask',Auth::user()->role) || Auth::user()->role=='SuperAdmin' || $record->coordinator_id == auth()->user()->id) $task->id])}}" class="btn btn-primary shadow sharp mr-1"> Edit @endif @if (checkPermission('deleteTask',Auth::user()->role) || Auth::user()->role=='SuperAdmin' || $record->coordinator_id == auth()->user()->id) $task->id])}}" class="deletedBtn btn btn-danger shadow sharp"> Delete @endif

Categories

@if(Auth::user()->role=='SuperAdmin' || $record->coordinator_id == auth()->user()->id)

Assign New Categories

@endif

Assigned Categories

@if(Auth::user()->role=='SuperAdmin' || $record->coordinator_id == auth()->user()->id) @endif @foreach($record->categories as $item) @if(Auth::user()->role=='SuperAdmin' || $record->coordinator_id == auth()->user()->id) @endif @endforeach
Sr TitleAction
{{$loop->iteration}} {{$item->title}} $item->pivot->id]) }}" class="deletedBtn btn btn-danger mr-1 shadow sharp"> Remove
@endsection @section('footerSource') @endsection