@extends('layouts.app') @section('content-header')

{{__('adminPrivilege.users')}}

@endsection @section('content') @if(Session::has('success_message'))
{!! session('success_message') !!}
@endif
@if(count($users) == 0)

{{__('adminPrivilege.no_users_available')}}

@else
@foreach($users as $user) @endforeach
{{__('commons.sl')}} {{__('commons.photo')}} {{__('commons.name')}} {{__('adminPrivilege.role')}} {{__('adminPrivilege.email')}} {{__('adminPrivilege.country')}} {{__('adminPrivilege.phone')}} {{__('commons.status')}} {{__('commons.created_at')}} {{__('commons.action')}}
Profile Image {{ $user->name }} {{ implode(', ', $user->roles()->pluck('name')->toArray()) }} {{ $user->email }} {{ optional($user->country)->country_name }} {{ $user->phone }} {{ $user->status }} {{ $user->created_at }}
{{ csrf_field() }} @if (App\Helpers\CommonHelper::isCapable('users.show')) @endif @if (App\Helpers\CommonHelper::isCapable('users.edit')) @endif @if (App\Helpers\CommonHelper::isCapable('users.destroy')) @endif
@endif
@endsection @section('javascript') @endsection