@extends('layout/ace') @section('breadcrumbs') {{ Breadcrumbs::render('Obavestenja') }} @endsection @section('title', 'Obavestenja kompanija') @section('content') @include('cms.notifications.partials.index._table-header')
@include('cms.notifications.partials.index._table-filter')
@foreach ($notificationTypes as $notificationType) @endforeach @foreach ($sentNotificationsCompanies as $company) @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 @endforeach @endforeach
Kompanija {{ $notificationType->name }}
{{ htmlspecialchars_decode($company->name) }} {{ $notificationsSentCount }}
{{ $sentNotificationsCompanies->links('partials._custom-pagination') }}
@endsection @section('scripts') @parent @endsection