@php $notifys = auth()->user()->unreadNotifications()->paginate(2); $badgecount = auth()->user()->unreadNotifications->count(); @endphp @forelse( $notifys as $notification) @if(array_key_exists( 'ticketassign', $notification->data) && $notification->data['ticketassign'] == 'yes')
{{ Str::limit($notification->data['title'], '30') }}

{{ $notification->data['ticket_id'] }} {{lang('Ticket is assigned', 'notification')}}

{{ $notification->created_at->diffForHumans() }}
@else @if($notification->data['status'] == 'New')
{{ Str::limit($notification->data['title'], '30') }}

{{lang('A new ticket has been created', 'notification')}} {{ $notification->data['ticket_id'] }}

{{ $notification->created_at->diffForHumans() }}
@endif @if($notification->data['status'] == 'Closed')
{{ Str::limit($notification->data['title'], '30') }}

{{lang('This ticket has been closed', 'notification')}} {{ $notification->data['ticket_id'] }}

{{ $notification->created_at->diffForHumans() }}
@endif @if($notification->data['status'] == 'On-Hold')
{{ Str::limit($notification->data['title'], '30') }}

{{lang('This ticket status is On-Hold', 'notification')}} {{ $notification->data['ticket_id'] }}

{{ $notification->created_at->diffForHumans() }}
@endif @if($notification->data['status'] == 'Re-Open')
{{ Str::limit($notification->data['title'], '30') }}

{{lang('This ticket has been reopened', 'notification')}} {{ $notification->data['ticket_id'] }}

{{ $notification->created_at->diffForHumans() }}
@endif @if($notification->data['status'] == 'Inprogress') @if($notification->data['overduestatus'] == 'Overdue')
{{ Str::limit($notification->data['title'], '30') }}

{{lang('This ticket status is overdue', 'notification')}} {{ $notification->data['ticket_id'] }}

{{ $notification->created_at->diffForHumans() }}
@else
{{ Str::limit($notification->data['title'], '30') }}

{{lang('You got a new reply on this ticket', 'notification')}} {{ $notification->data['ticket_id'] }}

{{ $notification->created_at->diffForHumans() }}
@endif @endif @if ($notification->data['status'] == 'mail')
{{$notification->data['mailsubject']}}

{{Str::limit($notification->data['mailtext'], '100', '...')}}

{{ $notification->created_at->diffForHumans() }}
@endif @endif @empty

{{lang('There are no new notifications to display', 'notification')}}

@endforelse