@extends('cms.layouts.main') @section('content') @include('cms.layouts.headers.cards')

{{ $page_info['title'] }}

@can('admins-create') Add @endcan
@if(session('status'))
@endif @can('admins-block') @endcan @foreach($rows as $row) @can('admins-block') @endcan @endforeach
Name Email RolesBlockedCreated At
{{ $row->first_name . ' ' . $row->last_name }} {{ $row->email }} @if(!empty($row->getRoleNames())) @foreach($row->getRoleNames() as $v) @endforeach @endif {{-- Admin can not block himself --}} @if(Auth::guard('admin')->user()->id != $row->id) {{-- All other Roles can not block: Developer --}} @if(!$row->hasRole('Developer')) @endif @endif {{ date('d M Y - h:i A', strtotime($row->created_at)) }}
@include('cms.layouts.footers.auth')
@endsection @can('admins-block') @push('script') @endpush @endcan