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