2020-01-07 17:15:00 +03:00
|
|
|
@permission(['update-common-widgets', 'delete-common-widgets'])
|
2020-01-01 12:45:02 +03:00
|
|
|
<div class="card-header{{ !empty($header_class) ? ' ' . $header_class : '' }}">
|
2019-12-31 11:27:49 +03:00
|
|
|
<div class="row align-items-center">
|
|
|
|
|
|
|
|
<div class="col-6 text-nowrap">
|
2020-01-16 00:42:20 +03:00
|
|
|
<h4 class="mb-0">{{ $class->model->name }}</h4>
|
2019-12-31 11:27:49 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-6 hidden-sm">
|
|
|
|
<span class="float-right">
|
|
|
|
<div class="dropdown">
|
|
|
|
<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">
|
|
|
|
<i class="fa fa-ellipsis-v text-muted"></i>
|
|
|
|
</a>
|
|
|
|
|
|
|
|
<div class="dropdown-menu dropdown-menu-right dropdown-menu-arrow">
|
2020-01-07 17:15:00 +03:00
|
|
|
@permission('update-common-widgets')
|
2019-12-31 11:27:49 +03:00
|
|
|
{!! Form::button(trans('general.edit'), [
|
|
|
|
'type' => 'button',
|
|
|
|
'class' => 'dropdown-item',
|
|
|
|
'title' => trans('general.edit'),
|
2020-01-16 00:42:20 +03:00
|
|
|
'@click' => 'onEditWidget(' . $class->model->id . ')'
|
2019-12-31 11:27:49 +03:00
|
|
|
]) !!}
|
2020-01-07 17:15:00 +03:00
|
|
|
@endpermission
|
|
|
|
@permission('delete-common-widgets')
|
2019-12-31 11:27:49 +03:00
|
|
|
<div class="dropdown-divider"></div>
|
2020-01-16 00:42:20 +03:00
|
|
|
{!! Form::deleteLink($class->model, 'common/widgets') !!}
|
2020-01-07 17:15:00 +03:00
|
|
|
@endpermission
|
2019-12-31 11:27:49 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-01-01 12:33:42 +03:00
|
|
|
</div>
|
2020-01-07 17:15:00 +03:00
|
|
|
@endpermission
|