@php $userDeleted = App\Models\User::whereHas('user_customer', function ($user_customer) { $user_customer->onlyTrashed(); })->onlyTrashed(); $country_code = \App\Models\WhatsappGateway\WhatsappGatewayGeneral::first()->country_code; @endphp
Customer list

See information about all members

Options {{ trans('customer.button.create') }} {{ __('user.button.export') }} {{ __('user.button.deleted-customers',['count'=>$userDeleted->count()]) }} {{ __('user.button.help') }}
@foreach ($perPageOptions as $perPageOption) {{ $perPageOption }} @endforeach
{{ trans('customer.table.name') }} {{ trans('customer.table.address') }} {{ trans('customer.table.subscription') }} {{ trans('customer.table.action') }} @forelse ($customers as $key => $user)

{{ $user->full_name}}

{{ $user->email}}

{{ $user->address }}

@if ($user->phone)

{{ preg_replace('/^' . $country_code . '?/', 0, $user->phone) }}

@else
@endif
{!! trans_choice('customer.label.count-customer-paket', $user->customer_pakets->count(), ['count' => $user->customer_pakets->count()]) !!}
@if (is_null($user->email_verified_at)) @else @if (!$user->disabled) @endif @if ($user->invoices->where('status', '!=', 'paid')->count()) @endif @endif
@empty
{{ trans('customer.notfound') }}
@endforelse @if ($customers->count())
@if (collect($usersSelected)->count()) {{ trans('customer.button.bulk-delete-customer', ['count' => collect($usersSelected)->count()]) }} {{ trans('customer.button.bulk-edit-address', ['count' => collect($usersSelected)->count()]) }} @endif
@endif
@if ($customers->hasPages())
{{ $customers->links() }}
@endif