@extends('layouts.adminmaster') @section('styles') @endsection @section('content')

{{lang('Customers List')}}

@can('Customers Create') {{lang('Add Customer')}} @endcan @can('Customers Importlist') {{lang('Import Customer List')}} @endcan
@can('Customers Delete') @endcan @can('Customers Delete') @endcan @cannot('Customers Delete') @endcannot @php $i = 1; @endphp @foreach($customers as $customer) @endforeach
{{lang('Sl.No')}} {{lang('Name')}} {{lang('User Type')}} {{lang('Verification')}} {{lang('Register Date')}} {{lang('Status')}} {{lang('Actions')}}
{{$i++}} @if(Auth::user()->can('Customers Delete')) @else @endif @if(auth()->user()->can('Customers Login'))
{{Str::limit($customer->username, '40')}}
@if($customer->voilated == 'on') {{__('Voilation')}} @endif id)}}" target="_blank"> {{lang('Login as')}}
{{Str::limit($customer->email, '40')}} @else {{Str::limit($customer->email, '40')}} @endif
{{$customer->userType}} @if($customer->verified == 1) {{lang('Verified')}} @else {{lang('Unverified')}} @endif {{$customer->created_at->format(setting('date_format'))}} @if($customer->status == "1") {{lang('Active')}} @else {{lang('Inactive')}} @endif
@if(Auth::user()->can('Customers Edit')) @else ~ @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->verified != 1 && $customer->userType == 'Customer') @endif
@endsection @section('scripts') @endsection