@foreach ($taskLists as $taskList)
| {{ get_label('id', 'ID') }} | {{ get_label('title', 'Title') }} | {{ get_label('description', 'Description') }} | {{ get_label('project', 'Project') }} | {{ get_label('status', 'Status') }} | {{ get_label('priority', 'Priority') }} | {{ get_label('users', 'Users') }} | {{ get_label('clients', 'Clients') }} | {{ get_label('start_date', 'Start Date') }} | {{ get_label('due_date', 'Due Date') }} | {{ get_label('actions', 'Actions') }} |
|---|---|---|---|---|---|---|---|---|---|---|
| {{ get_label('no_data_found', 'No data found') }} | ||||||||||
| {{ $task->id }} | {{ $task->title }} | {!! $task->description ? Str::limit($task->description, 50) : '-' !!} | {{ $task->project->title }} | {{ $task->status->title }} | {{ $task->priority ? $task->priority->title : '-' }} | {{ format_date($task->start_date) }} | {{ format_date($task->due_date) }} |
@php
$canCreate = checkPermission('create_tasks');
$canEdit = checkPermission('edit_tasks');
$canDelete = checkPermission('delete_tasks');
$actions = '';
if ($canEdit) {
$actions .=
'' .
'' .
'';
}
if ($canDelete) {
$actions .=
'';
}
if ($canCreate) {
$actions .=
'' .
'' .
'';
}
$actions .=
'' .
'' .
'';
$actions = $actions ?: '-';
echo $actions;
@endphp
|
||