@extends('layouts.admin') @section('content')

Notifications

@if (session('success'))
{{ session('success') }}
@endif @if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@php $allnotifications = Auth::user()->notifications; $countnotification = count(Auth::user()->unreadNotifications); $unreadnoti = Auth::user()->unreadNotifications; @endphp @foreach($allnotifications as $notification) @endforeach
@if(empty($notification->data['data']))

{{$notification->data['user']['name']}} {{$notification->data['message']}}

@else

{{$notification->data['user']['name']}} {{$notification->data['message']}} {{$notification->data['data']['ticket_name']}}

@endif @php date_default_timezone_set('Asia/Kolkata'); $date = $notification->created_at; $formatdate = date('d M Y, h:i A', strtotime($date)); @endphp

{{ $formatdate }}

@endsection