@if($type == 'deadline') Task Deadline @elseif($type == 'reminder') Task Deadline Reminder @else Task {{$type}} @endif
@if($type != 'reminder' || ($type == 'reminder' && $hasDeadlines)) @endif| Time | Actions | |
|---|---|---|
| On {{ is_array($task_act) ? ($task_act['is_date'] ? \Carbon\Carbon::parse($task_act['date'])->format("(D M Y)") : $task_act['on_value'] . ' ' . $task_act['on_state']) : ($task_act->is_date == 1 ? optional($task_act->date)->format("(D M Y)") : optional($task_act)->on_value . ' '. optional($task_act)->on_state) }} | @if(is_array($task_act)) @if(isset($task_act['then_actions']) && count($task_act['then_actions']) > 0) @foreach($task_act['then_actions'] as $then_action) {{ ucfirst(str_replace('_', ' ', $then_action['action'])) }} @if($then_action['action'] == 'move_user' && isset($then_action['users'])) - {{ count($then_action['users']) }} user(s) @elseif($then_action['action'] == 'move_profile' && isset($then_action['profiles'])) - {{ count($then_action['profiles']) }} profile(s) @elseif($then_action['action'] == 'mail_custom' && isset($then_action['custom_data']['emails'])) - {{ count($then_action['custom_data']['emails']) }} email(s) @endif @if(!$loop->last), @endif @endforeach @else No actions set @endif @else {{$task_act->action_labels()}} @endif |
|
No {{$type}}s set
@endifAdditional Action