@extends('BackEnd.Layouts.main') @section('title') {{ __('messages.View Users') }} @endsection @section('content')
@include('BackEnd.Layouts.breadcrumb') @if(session('success'))
{{session("success")}}
@endif @if(session('error'))
{{ session('error') }}
@endif
@include('BackEnd.Layouts.tableheader')
{{-- @ability(['admin','super_admin'],['']) --}} {{-- @endability --}} @foreach ($users as $usr) {{-- @ability(['admin','super_admin'],['']) --}} {{-- @endability --}} @endforeach
م {{ __('messages.NAME') }} {{ __('messages.EMAIL') }} الصلاحيات{{ __('messages.STATUS') }}{{ __('messages.PUBLISHED_DATE') }} {{ __('messages.CONTROL') }}
{{ $loop->iteration }} {{ $usr->name }} {{ $usr->email }} @foreach ($usr->roles()->get() as $role) @if ($role->id==1) {!! $role->display_name.'
' !!}

@else @if ($role->id==3) {!! $role->display_name.'
' !!}
@foreach ($usr->permissions()->get() as $permission) -- {!! $permission->display_name.'
' !!}
@endforeach
@else @if ($role->id==2) {!! $role->display_name.'
' !!}

@else {!! $role->display_name.'
' !!}
@endif @endif @endif @endforeach
{{ $usr->created_at }} {{-- @ability(['publisher','admin','super_admin'],['']) --}} {{-- @endability --}}
{{ $users->links() }}
@endsection @push('plugin_js') {{-- --}} @endpush @push('custom_js') {{-- --}} @endpush @push('is_active_ajax') @endpush