@php $notifycount = auth()->guard('customer')->user()->unreadNotifications->count() @endphp @if($notifycount == '0') 0 @else {{ $notifycount }} @endif
{{lang('New Notifications', 'notification')}}({{ auth()->guard('customer')->user()->unreadNotifications->count() }})
@if($notifycount == '0') {{lang('Mark all as read', 'notification')}} @else {{lang('Mark all as read', 'notification')}} @endif
@if(auth()->guard('customer')->user()) @forelse( auth()->guard('customer')->user()->unreadNotifications()->paginate(2) as $notification) @if($notification->data['status'] == 'New')
{{ Str::limit($notification->data['title'], '30') }}

{{lang('Your 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('Your 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('Your 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('Your ticket has been Reopened', 'notification')}} {{ $notification->data['ticket_id'] }}

{{ $notification->created_at->diffForHumans() }}
@endif @if($notification->data['status'] == 'Inprogress')
{{ 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 @if($notification->data['status'] == 'overdue')
{{ Str::limit($notification->data['title'], '30') }}

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

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

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

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

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

@endforelse @endif
{{lang('See All Notifications', 'notification')}}