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

{{ trans_language('notifications','main-content') != '' ? trans_language('notifications','main-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) @php $message = str_replace(" ", "-", $notification->data['message']); @endphp @endforeach
@if(empty($notification->data['data']))

{{$notification->data['user']['name']}} {{ trans_language($message,'main-content') != '' ? trans_language($message,'main-content') : $notification->data['message'] }}

@else

{{$notification->data['user']['name']}} {{ trans_language($message,'main-content') != '' ? trans_language($message,'main-content') : $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