@foreach ($task->documents as $document)
@php
$task_completed = App\Helpers\DocumentHelper::getUserTask($task->id, $user->id)->completed;
@endphp
{{ __('messages.Document name') }}
|
{{ __('messages.Status') }}
|
{{ __('messages.Date') }}
|
@unless($task_completed)
{{ __('messages.Send Notification') }}
|
@endunless
{{ $document->name }}
|
@if(App\Helpers\DocumentHelper::getUserTaskDocument($task->id, $user->id, $document->id)->is_read == true )
{{ __('messages.Read') }}
@else
{{ __('messages.Not read') }}
@endif
|
@if(App\Helpers\DocumentHelper::getUserTaskDocument($task->id, $user->id, $document->id)->is_read == true )
{{ \Carbon\Carbon::parse(App\Helpers\DocumentHelper::getUserTaskDocument($task->id, $user->id, $document->id)->opened_at)->format("H:i:s d/m/Y") }}
@else
/
@endif
|
@endforeach