@extends('layout/ace') @section('breadcrumbs') {{ Breadcrumbs::render('ObavestenjaShow', $company) }} @endsection @section('title', "Obavestenja kompanije " . htmlspecialchars_decode($company->name)) @section('content') @include('cms.notifications.partials.index._table-header')
@include('cms.notifications.partials.show._table-filter')
@foreach ($notificationTypes as $notificationType) @endforeach @foreach ($sentNotificationsUsers as $user) @foreach ($notificationTypes as $notificationType) @php $notificationsSentCount = '/'; if ($user->sentNotificationsUser->count() > 0){ foreach ($user->sentNotificationsUser as $notification){ if ($notificationType->id == $notification->user_notification_type_id){ $notificationsSentCount = $notification->total_sent_user_notifications; break; } } } @endphp @endforeach @endforeach
Kompanija {{ $notificationType->name }}
{{ $user->email }} {{ $notificationsSentCount }}
{{ $sentNotificationsUsers->links('partials._custom-pagination') }}
@endsection @section('scripts') @parent @endsection