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'); $defaultStartJalali = $existingStart ? \App\Support\JalaliHelper::format($existingStart, 'Y/m/d', '') : \App\Support\JalaliHelper::format(now(), 'Y/m/d', ''); @endphp
@endsection