@extends('layout.wurth') @section('header-scripts') @parent @endsection @section('title', "Wurth | Obaveštenja") {{-- @section('page-wrapper-classes', 'page-lesson') --}} @section('page-container')

Obaveštenja ({{ $userNotifications->total() }})

Obaveštenja o radnjama na front dashboardu

@foreach ($userNotifications as $userNotification) @include('front.notifications.partials._notification-item', compact('userNotification')) @endforeach
@if ($userNotifications->total() > 12) @php $prevRoute = route(Route::currentRouteName(), array_merge(request()->query(), [ 'page' => ($userNotifications->currentPage() == 1) ? 1 : ($userNotifications->currentPage() -1), ])); $nextRoute = route(Route::currentRouteName(), array_merge(request()->query(), [ 'page' => ($userNotifications->currentPage() == $userNotifications->lastPage()) ? $userNotifications->lastPage() : ($userNotifications->currentPage() + 1), ])); @endphp
Sledeća
currentPage() == 1) disabled="disabled" @endif class="{{ ($userNotifications->currentPage() == 1) ? "disabled" : '' }}" >
Prethodna
@endif
@include('inc.wurth._footer')
@endsection @section('add-scripts') @endsection