@foreach($users as $key=> $row) @if (auth()->user()->role == 'super_admin' && $row->role == 'super_admin' && auth()->user()->id != 1 && auth()->user()->id != $row->id) @continue @endif @if (in_array($row->role, getUsersRoles())) @if (auth()->user()->id != $row->id)
@endif @endif {{ $row->name }} {{ $row->email }} @if(!in_array($routeName, ['users'])) {{ $row->phone }} @endif {{-- {{ __('users.'.$row->role) }} --}} {{ __("general.$row->status") }} {{ \Carbon\Carbon::parse($row->created_at)->format('Y/m/d') }} @if($row->role == 'super_admin' && $row->id == 1) id) }}" class="icon" title="{{ __('dashboard.edit') }}">{{ __('dashboard.edit') }} @else @if($row->deleted_at) @if(in_array($row->role, getUsersRoles()) || (auth()->user()->role == 'super_admin' && $row->role == 'super_admin' && $row->id != 1)) id) }}" data-method="put" class="icon rowAction" title="{{ __('dashboard.restore') }}">{{ __('dashboard.restore') }} @if (auth()->user()->id != $row->id) {{-- id) }}" data-method="delete" class="icon rowAction" title="{{ __('dashboard.delete') }}">{{ __('dashboard.delete') }} --}} @endif @endif @else id) }}" class="icon" title="{{ __('dashboard.edit') }}">{{ __('dashboard.edit') }} {{-- @if($routeName == 'members') id) }}" class="icon" title="{{ __('programs.subscriptions') }}"> {{ __('programs.subscriptions') }} @endif --}} @if(in_array($row->role, getUsersRoles(false))) $row->id]) }}" class="icon" title="{{ __('orders.head') }}"> @endif @if(in_array($row->role, getUsersRoles()) || (auth()->user()->role == 'super_admin' && $row->role == 'super_admin' && $row->id != 1)) @if (auth()->user()->id != $row->id) id) }}" data-method="delete" class="icon rowAction" title="{{ __('dashboard.trash') }}">{{ __('dashboard.trash') }} @endif @endif @endif @endif @endforeach @if( count( $users ) && $users->hasPages() ) {{ $users->links() }} @endif