@extends('layout/ace') @section('breadcrumbs') {{ Breadcrumbs::render('Obavestenja') }} @endsection @section('title', 'Obavestenja kompanija') @section('content') @include('cms.notifications.partials.index._table-header')
| Kompanija | @foreach ($notificationTypes as $notificationType){{ $notificationType->name }} | @endforeach
|---|---|
| {{ htmlspecialchars_decode($company->name) }} | @foreach ($notificationTypes as $notificationType) @php $notificationsSentCount = '/'; if ($company->sentNotificationsUser->count() > 0) { foreach ($company->sentNotificationsUser as $notification) { if ($notificationType->id == $notification->user_notification_type_id) { $notificationsSentCount = $notification->total_sent_user_notifications; break; } } } @endphp{{ $notificationsSentCount }} | @endforeach