shared dashboards
This commit is contained in:
		@@ -23,7 +23,7 @@
 | 
			
		||||
                                <div class="dropdown-divider"></div>
 | 
			
		||||
                                <a href="{{ route('companies.index') }}" class="dropdown-item">
 | 
			
		||||
                                    <i class="fas fa-cogs"></i>
 | 
			
		||||
                                    <span>{{ trans('companies.manage') }}</span>
 | 
			
		||||
                                    <span>{{ trans('general.title.manage', ['type' => trans_choice('general.companies', 2)]) }}</span>
 | 
			
		||||
                                </a>
 | 
			
		||||
                            @endpermission
 | 
			
		||||
                        </div>
 | 
			
		||||
 
 | 
			
		||||
@@ -1,3 +1,4 @@
 | 
			
		||||
@permission(['update-common-widgets', 'delete-common-widgets'])
 | 
			
		||||
<div class="card-header{{ !empty($header_class) ? ' ' . $header_class : '' }}">
 | 
			
		||||
    <div class="row align-items-center">
 | 
			
		||||
 | 
			
		||||
@@ -13,17 +14,22 @@
 | 
			
		||||
                    </a>
 | 
			
		||||
 | 
			
		||||
                    <div class="dropdown-menu dropdown-menu-right dropdown-menu-arrow">
 | 
			
		||||
                        @permission('update-common-widgets')
 | 
			
		||||
                        {!! Form::button(trans('general.edit'), [
 | 
			
		||||
                            'type'    => 'button',
 | 
			
		||||
                            'class'   => 'dropdown-item',
 | 
			
		||||
                            'title'   => trans('general.edit'),
 | 
			
		||||
                            '@click'  => 'onEditWidget(' . $model->id . ')'
 | 
			
		||||
                        ]) !!}
 | 
			
		||||
                        @endpermission
 | 
			
		||||
                        @permission('delete-common-widgets')
 | 
			
		||||
                        <div class="dropdown-divider"></div>
 | 
			
		||||
                        {!! Form::deleteLink($model, 'common/widgets') !!}
 | 
			
		||||
                        @endpermission
 | 
			
		||||
                    </div>
 | 
			
		||||
                </div>
 | 
			
		||||
            </span>
 | 
			
		||||
        </div>
 | 
			
		||||
    </div>
 | 
			
		||||
</div>
 | 
			
		||||
@endpermission
 | 
			
		||||
 
 | 
			
		||||
@@ -1,3 +1,4 @@
 | 
			
		||||
@permission(['update-common-widgets', 'delete-common-widgets'])
 | 
			
		||||
<span>
 | 
			
		||||
    <div class="dropdown card-action-button">
 | 
			
		||||
        <a class="btn btn-sm items-align-center py-2 mr-0 shadow-none--hover" href="#" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
 | 
			
		||||
@@ -5,14 +6,19 @@
 | 
			
		||||
        </a>
 | 
			
		||||
 | 
			
		||||
        <div class="dropdown-menu dropdown-menu-right dropdown-menu-arrow">
 | 
			
		||||
            @permission('update-common-widgets')
 | 
			
		||||
            {!! Form::button(trans('general.edit'), [
 | 
			
		||||
                'type'    => 'button',
 | 
			
		||||
                'class'   => 'dropdown-item',
 | 
			
		||||
                'title'   => trans('general.edit'),
 | 
			
		||||
                '@click'  => 'onEditWidget(' . $model->id . ')'
 | 
			
		||||
            ]) !!}
 | 
			
		||||
            @endpermission
 | 
			
		||||
            @permission('delete-common-widgets')
 | 
			
		||||
            <div class="dropdown-divider"></div>
 | 
			
		||||
            {!! Form::deleteLink($model, 'common/widgets') !!}
 | 
			
		||||
            @endpermission
 | 
			
		||||
        </div>
 | 
			
		||||
    </div>
 | 
			
		||||
</span>
 | 
			
		||||
</span>
 | 
			
		||||
@endpermission
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user