@can('Customers Delete') @endcan @cannot('Customers Delete') @endcannot @php $i = 1; @endphp @foreach ($customers as $customer) @endforeach
{{ lang('Sl.No') }} {{ lang('Name') }} {{ lang('Created Date') }} {{ lang('Country') }} {{ lang('Browser') }} {{ lang('Login Source') }} {{ lang('Actions') }}
{{ $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
{{ $customers->links('admin.viewticket.pagination') }}