| {{ $i++ }} |
@if (Auth::user()->can('Customers Delete'))
@else
@endif
|
{{ Str::limit($customer->username, '40') }}
@if ($customer->banstatus == 'banned')
{{ __('Banned') }}
@endif
{{ Str::limit($customer->email, '40') }}
|
{{ \Carbon\Carbon::parse($customer->created_at)->format(setting('date_format')) }}
|
{{ $customer->country }}
|
{{ $customer->browser_info }}
|
{{ $customer->Login_url }}
|
@if (Auth::user()->can('Customer Chat Process'))
@php
$custchatsexist = \App\Models\LiveChatConversations::where('unique_id',$customer->cust_unique_id)->first();
if($customer->status == 'solved'){
$routeurl = route('admin.solvedChats');
$statuscust = 'solved';
}elseif($customer->engage_conversation != null){
$routeurl = route('admin.myOpenedChats');
$statuscust = 'myopened';
}else{
$routeurl = route('admin.livechat');
$statuscust = 'newchat';
}
@endphp
@if($custchatsexist != null)
@endif
@endif
@if (Auth::user()->can('Customers Delete'))
@else
~
@endif
@php
$ticketCount = \App\Models\Ticket\Ticket::where('cust_id', $customer->id)->count();
@endphp
@if ($ticketCount > 0)
@endif
@if ($customer->banstatus == 'banned')
@endif
@if ($customer->verified != 1 && $customer->userType == 'Customer')
@endif
|
@endforeach