2022-06-01 10:15:55 +03:00
|
|
|
@if ($checkPermissionCreate)
|
|
|
|
@can($permissionCreate)
|
|
|
|
@if (! $hideCreate)
|
2022-09-06 13:54:56 +03:00
|
|
|
<x-link href="{{ route($createRoute) }}" kind="primary" id="index-more-actions-new-{{ $type }}">
|
2022-06-01 10:15:55 +03:00
|
|
|
{{ trans('general.title.new', ['type' => trans_choice($textPage, 1)]) }}
|
|
|
|
</x-link>
|
|
|
|
@endif
|
|
|
|
@endcan
|
|
|
|
@else
|
|
|
|
@if (! $hideCreate)
|
2022-09-06 13:54:56 +03:00
|
|
|
<x-link href="{{ route($createRoute) }}" kind="primary" id="index-more-actions-new-{{ $type }}">
|
2022-06-01 10:15:55 +03:00
|
|
|
{{ trans('general.title.new', ['type' => trans_choice($textPage, 1)]) }}
|
|
|
|
</x-link>
|
|
|
|
@endif
|
|
|
|
@endif
|