@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) @php if(isset($notification->data['clink'])){ $explodeurl = explode('ticket/view/', $notification->data['clink']); $stringreplaceurl = str_replace($explodeurl[1], encrypt(urldecode($explodeurl[1])) , $notification->data['clink']); }else{ $stringreplaceurl = ''; } @endphp @if (array_key_exists('reasonofinfo', $notification->data) && $notification->data['reasonofinfo'] == 'adminreset2fa')
{{ Str::limit($notification->data['title'], '30') }}

{{lang('Your two factor authentication details are removed by admin.', 'notification')}}

{{ \Carbon\Carbon::parse($notification->created_at)->diffForHumans() }}
@else @if($notification->data['status'] == 'New') @if(isset($notification->data['replystatus']) && $notification->data['replystatus'] == 'Bot-Replied')
{{ Str::limit($notification->data['title'], '30') }}

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

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

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

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

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

{{ \Carbon\Carbon::parse($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'] }}

{{ \Carbon\Carbon::parse($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'] }}

{{ \Carbon\Carbon::parse($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'] }}

{{ \Carbon\Carbon::parse($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'] }}

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

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

{{ \Carbon\Carbon::parse($notification->created_at)->diffForHumans() }}
@endif @endif @empty

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

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