@extends('cms.layouts.main') @section('content') @include('cms.layouts.headers.cards')
Name | Roles | @can('admins-block')Blocked | @endcanCreated At | ||
---|---|---|---|---|---|
{{ $row->first_name . ' ' . $row->last_name }} | {{ $row->email }} | @if(!empty($row->getRoleNames())) @foreach($row->getRoleNames() as $v) @endforeach @endif | @can('admins-block'){{-- 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 | @endcan{{ date('d M Y - h:i A', strtotime($row->created_at)) }} |