SVG; $todo = << SVG; $error = << SVG; $in_progress = << SVG; $done = << SVG; $cancelled = << SVG; $state = [ 1 => "$backlog",//backlog 2 => "$todo",//to do 3 => "$in_progress",// in progress 4 => "$done",//done ]; //$p_tasks = Pivot_Tasks::get(); ?> @extends('app') @section('style') @endsection @section('content')
@if($count > 0)
@if(!empty($assigneeFilterOptions))
@endif
@foreach(array_keys($tasks) as $stateKey) @endforeach
{{-- جداول هر وضعیت --}} @foreach($tasks as $stateKey => $stateTasks)
@if(count($stateTasks) > 0)
@foreach($stateTasks as $task) @php $stateIcon = match((int)$task->state) { 1 => $backlog, 2 => $todo, 3 => $in_progress, 4 => $done, default => '', }; @endphp
{!! $stateIcon !!}

{{ $task->title }}

@if($task->description)

{{ strip_tags($task->description) }}

@endif
اولویت
{{ $priorityLabels[$task->priority] ?? $task->priority }}
@if($isAdminLevel1)
نام اپ
{{ $task->appName->name_fa ?? '-' }}
@endif @if($stateKey === 'done')
زمان اجرا
{{ $task->total_duration ?? '00:00:00' }}
@else
مهلت
{{ \App\Support\JalaliHelper::format($task->target_date) }}
@endif @if(!empty($task->assignee_names))
مسئولین
{{ implode('، ', $task->assignee_names) }}
@endif
@endforeach
@else
هیچ وظیفه‌ای در این وضعیت وجود ندارد.
@endif
@endforeach
@else

وظیفه ای ندارید

@endif
{{-- START TASK DETAILS MODAL --}} @endsection @section('script') @endsection