where('permission', '<>', '-'); foreach ($moduli as $modulo) { $note = $modulo->notes()->where('notification_date', '>=', date('Y-m-d'))->get(); $notes = $notes->merge($note); } if (!empty($is_number_request)) { echo $notes->count(); return; } if (empty($notes)) { echo '
'.tr('Non ci sono note da notificare').'.
'; return; } $moduli = $notes->groupBy('id_module')->sortBy('notification_date'); foreach ($moduli as $module_id => $note) { $modulo = Module::get($module_id); echo ''.tr('Record').' | '.tr('Contenuto').' | '.tr('Data di notifica').' | # |
---|---|---|---|
'.$nota->id_record.' | '.$nota->content.' '.$nota->user->nome_completo.' | '.dateFormat($nota->notification_date).' ('.Carbon::parse($nota->notification_date)->diffForHumans().') | '.Modules::link($module_id, $nota->id_record, '', null, 'class="btn btn-primary btn-xs"', true, 'tab_note').' |