@extends('layouts.admin') @section('content')
{{-- @can('user_create') @endcan --}}
{{ trans('global.all') }} {{ trans('cruds.user.title') }}
{{-- --}} @php $i = 1; @endphp @foreach($users as $key => $user) {{-- --}} @php $i++; @endphp @endforeach
{{ trans('cruds.user.fields.id') }} {{ trans('cruds.user.fields.name') }} {{ trans('cruds.user.fields.email') }} {{ trans('cruds.user.fields.email_verified_at') }} {{ trans('cruds.user.fields.approved') }} {{ trans('cruds.user.fields.roles') }} {{ trans('cruds.siteReg.branch') }}  
{{ $i }} {{ $user->name ?? '' }} {{ $user->email ?? '' }} {{ $user->email_verified_at ?? '' }} {{ $user->approved ?? '' }} approved ? 'checked' : '' }}> @foreach($user->roles as $key => $item) {{ $item->title }} @endforeach {{$user->siteRegister->name ?? ''}} @if($user->is_admin != 1 || $auth->hasRole('Super Admin') || $auth->hasRole('Admin')) @can('user_show') @endcan @can('user_edit') @endcan @can('user_delete')
@endcan @endif
@endsection @section('scripts') @parent @endsection