{{ $count_not }}
{{ __('NOTIFICATIONS') }}
{{ __('New') }} {{ $count_not }}
@if($notifications) @foreach($notifications as $notification) @php $workflow_document = App\WorkflowDocument::where('id', $notification->workflow_document_id)->first(); if(!$workflow_document) $workflow_document = App\RemoteTransfer::where('id', $notification->workflow_document_id)->first(); @endphp
{{--

{{ __($notification->data['type'])}}

--}}

{{ __($notification->data['action'])}} : {{$workflow_document->getRegNumber()}}

@php $to = \Carbon\Carbon::createFromFormat('Y-m-d H:s:i', Date('Y-m-d H:s:i')); $from = \Carbon\Carbon::createFromFormat('Y-m-d H:s:i', $notification->created_at); $diff_in_hours = $to->diffInHours($from); $diff_in_minutes = $to->diffInMinutes($from); $diffInDays = $to->diffInDays($from); if($diffInDays > 0){ $time_deff = $diffInDays.' '.__('days ago'); }elseif($diff_in_hours > 0){ $time_deff = $diff_in_hours.' '.__('hours ago'); }elseif($diff_in_minutes > 0){ $time_deff = $diff_in_hours.' '.__('minutes ago'); }else{ $time_deff = __('Now'); } @endphp {{ $time_deff }}
@endforeach @endif
{{__('Mark All Read')}} {{ __('All notifications') }}