@extends('layouts.admin') @php $permissions = Auth::user()->getPermission($project->id); $client_keyword = Auth::user()->getGuard() == 'client' ? 'client.' : ''; // $logo=\App\Models\Utility::get_file('users-avatar/'); $logo = \App\Models\Utility::get_file('avatars/'); $logo_tasks = \App\Models\Utility::get_file('tasks/'); @endphp @push('css-page') @endpush @section('page-title') {{ __('Task Board') }} @endsection @section('links') @if (\Auth::guard('client')->check()) @else @endif @if (\Auth::guard('client')->check()) @else @endif @endsection @section('action-button') @if ( (isset($permissions) && in_array('create task', $permissions)) || ($currentWorkspace && $currentWorkspace->permission == 'Owner')) @endif @endsection @section('content')
@if ($project && $currentWorkspace)
@foreach ($stages as $stage)

{{ $stage->name }}

@foreach ($stage->tasks as $task)
@if ($task->priority == 'Low')
{{ $task->priority }}
@elseif($task->priority == 'Medium')
{{ $task->priority }}
@elseif($task->priority == 'High')
{{ $task->priority }}
@endif
@if ($currentWorkspace->permission == 'Owner' || isset($permissions)) @endif
{{ \App\Models\Utility::dateFormat($task->start_date) }}
{{ \App\Models\Utility::dateFormat($task->due_date) }}
  • {{ $task->taskCompleteSubTaskCount() }}/{{ $task->taskTotalSubTaskCount() }}
@if ($users = $task->users()) @foreach ($users as $key => $user) @if ($key < 3) imageavatar) src="{{ asset($logo . $user->avatar) }}" @else avatar="{{ $user->name }}" @endif> @endif @endforeach @if (count($users) > 3) image @endif @endif
@endforeach
@endforeach
@else

404

{{ __('Page Not Found') }}
@endif
@endsection @if ($project && $currentWorkspace) @push('scripts') @endpush @endif