ultimatepos/resources/views/user/profile_professional/tabs/tasks.blade.php

34 lines
1.4 KiB
PHP

<div class="up-card">
<div class="up-card__header">
<h4>@lang('lang_v1.profile_tab_tasks')</h4>
</div>
<div class="up-card__body">
@if($profile['task_rows']->isEmpty())
<div class="up-empty-state"><p>@lang('lang_v1.profile_not_enough_data')</p></div>
@else
<div class="table-responsive">
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>@lang('essentials::lang.task')</th>
<th>@lang('essentials::lang.priority')</th>
<th>@lang('lang_v1.holding_status')</th>
<th>@lang('lang_v1.date')</th>
</tr>
</thead>
<tbody>
@foreach($profile['task_rows'] as $task)
<tr>
<td>{{ $task->task }}</td>
<td>{{ \Modules\Essentials\Entities\ToDo::getTaskPriorities()[$task->priority] ?? $task->priority }}</td>
<td>{{ \Modules\Essentials\Entities\ToDo::getTaskStatus()[$task->status] ?? $task->status }}</td>
<td>{{ $task->date ? format_datetime($task->date) : '—' }}</td>
</tr>
@endforeach
</tbody>
</table>
</div>
@endif
</div>
</div>