@if(\Auth::user()->can('edit-'.strtolower(getControllerName()))) @endif @if(\Auth::user()->can('delete-'.strtolower(getControllerName()))) @endif @if(\Auth::user()->can('edit-'.strtolower(getControllerName()))) @if(propertyExists($record, 'is_active') && $record->is_active==1) {{-- --}} @endif @endif @if(\Auth::user()->can('edit-'.strtolower(getControllerName()))) @if(propertyExists($record, 'is_active') && $record->is_active==0) @endif @endif