Merge branch 'master' of https://github.com/brkcvn/akaunting into code-clean
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
@if ($checkPermissionCreate)
|
||||
@can($permissionCreate)
|
||||
@if (! $hideCreate)
|
||||
<x-link href="{{ route($createRoute) }}" kind="primary">
|
||||
<x-link href="{{ route($createRoute) }}" kind="primary" id="index-more-actions-new-{{ $type }}">
|
||||
{{ trans('general.title.new', ['type' => trans_choice($textPage, 1)]) }}
|
||||
</x-link>
|
||||
@endif
|
||||
@endcan
|
||||
@else
|
||||
@if (! $hideCreate)
|
||||
<x-link href="{{ route($createRoute) }}" kind="primary">
|
||||
<x-link href="{{ route($createRoute) }}" kind="primary" id="index-more-actions-new-{{ $type }}">
|
||||
{{ trans('general.title.new', ['type' => trans_choice($textPage, 1)]) }}
|
||||
</x-link>
|
||||
@endif
|
||||
|
||||
@@ -6,21 +6,21 @@
|
||||
@if ($checkPermissionCreate)
|
||||
@can($permissionCreate)
|
||||
@if (! $hideImport)
|
||||
<x-dropdown.link href="{{ route($importRoute, $importRouteParameters) }}">
|
||||
<x-dropdown.link href="{{ route($importRoute, $importRouteParameters) }}" id="index-more-actions-import-{{ $type }}">
|
||||
{{ trans('import.import') }}
|
||||
</x-dropdown.link>
|
||||
@endif
|
||||
@endcan
|
||||
@else
|
||||
@if (! $hideImport)
|
||||
<x-dropdown.link href="{{ route($importRoute, $importRouteParameters) }}">
|
||||
<x-dropdown.link href="{{ route($importRoute, $importRouteParameters) }}" id="index-more-actions-import-{{ $type }}">
|
||||
{{ trans('import.import') }}
|
||||
</x-dropdown.link>
|
||||
@endif
|
||||
@endif
|
||||
|
||||
@if (! $hideExport)
|
||||
<x-dropdown.link href="{{ route($exportRoute, request()->input()) }}">
|
||||
<x-dropdown.link href="{{ route($exportRoute, request()->input()) }}" id="index-more-actions-export-{{ $type }}">
|
||||
{{ trans('general.export') }}
|
||||
</x-dropdown.link>
|
||||
@endif
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
@stack('new_button_start')
|
||||
|
||||
@if (! $hideNewDropdown)
|
||||
<x-dropdown id="customer-new">
|
||||
<x-dropdown id="show-new-actions-{{ $contact->type }}">
|
||||
<x-slot name="trigger" class="flex items-center px-3 py-1.5 mb-3 sm:mb-0 bg-green hover:bg-green-700 rounded-xl text-white text-sm font-bold leading-6" override="class">
|
||||
{{ trans('general.new_more') }}
|
||||
<span class="material-icons ltr:ml-2 rtl:mr-2">expand_more</span>
|
||||
@@ -11,7 +11,7 @@
|
||||
|
||||
@if (! $hideButtonDocument)
|
||||
@can($permissionCreateDocument)
|
||||
<x-dropdown.link href="{{ route($routeButtonDocument, $contact->id) }}">
|
||||
<x-dropdown.link href="{{ route($routeButtonDocument, $contact->id) }}" id="show-more-actions-new-document-{{ $contact->type }}">
|
||||
{{ trans_choice($textDocument, 1) }}
|
||||
</x-dropdown.link>
|
||||
@endcan
|
||||
@@ -21,7 +21,7 @@
|
||||
|
||||
@if (! $hideButtonTransaction)
|
||||
@can($permissionCreateTransaction)
|
||||
<x-dropdown.link href="{{ route($routeButtonTransaction, $contact->id) }}">
|
||||
<x-dropdown.link href="{{ route($routeButtonTransaction, $contact->id) }}" id="show-more-actions-new-transaction-{{ $contact->type }}">
|
||||
{{ trans_choice($textTransaction, 1) }}
|
||||
</x-dropdown.link>
|
||||
@endcan
|
||||
@@ -35,7 +35,7 @@
|
||||
|
||||
@if (! $hideButtonEdit)
|
||||
@can($permissionUpdate)
|
||||
<x-link href="{{ route($routeButtonEdit, $contact->id) }}">
|
||||
<x-link href="{{ route($routeButtonEdit, $contact->id) }}" id="show-more-actions-edit-{{ $contact->type }}">
|
||||
{{ trans('general.edit') }}
|
||||
</x-link>
|
||||
@endcan
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
@stack('button_group_start')
|
||||
|
||||
@if (! $hideActionsDropdown)
|
||||
<x-dropdown id="dropdown-more-actions">
|
||||
<x-dropdown id="show-more-actions-{{ $contact->type }}">
|
||||
<x-slot name="trigger">
|
||||
<span class="material-icons">more_horiz</span>
|
||||
</x-slot>
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
@if (! $hideButtonDuplicate)
|
||||
@can($permissionCreate)
|
||||
<x-dropdown.link href="{{ route($routeButtonDuplicate, $contact->id) }}">
|
||||
<x-dropdown.link href="{{ route($routeButtonDuplicate, $contact->id) }}" id="show-more-actions-duplicate-{{ $contact->type }}">
|
||||
{{ trans('general.duplicate') }}
|
||||
</x-dropdown.link>
|
||||
@endcan
|
||||
|
||||
Reference in New Issue
Block a user