assignees) { $decoded = json_decode($task->assignees, true); $selectedAssignees = is_array($decoded) ? $decoded : []; } } ?> @extends('app') @section('content')
{{isset($task) ? "ویرایش وظیفه" : "ایجاد وظیفه جدید"}}
@csrf @if(isset($task)) @endif
@php $existingStart = isset($task) && !empty($task->start_date) ? $task->start_date : null; $defaultStartGregorian = $existingStart ? \App\Support\JalaliHelper::toGregorianDate($existingStart) : now()->format('Y-m-d'); @endphp
@endsection