202508031828
調整權限位置
This commit is contained in:
parent
3228031528
commit
df8d7ce4ac
@ -62,9 +62,7 @@ final class ArtistTable extends PowerGridComponent
|
||||
->showToggleColumns();
|
||||
//->showSoftDeletes()
|
||||
//->showSearchInput()
|
||||
if($this->canCreate){
|
||||
$header->includeViewOnTop('livewire.headers.artist') ;
|
||||
}
|
||||
$header->includeViewOnTop('livewire.headers.artist') ;
|
||||
$actions[]=$header;
|
||||
$actions[]=PowerGrid::footer()->showPerPage()->showRecordCount();
|
||||
return $actions;
|
||||
|
@ -60,9 +60,7 @@ final class BranchTable extends PowerGridComponent
|
||||
->showToggleColumns();
|
||||
//->showSoftDeletes()
|
||||
//->showSearchInput()
|
||||
if($this->canCreate){
|
||||
$header->includeViewOnTop('livewire.headers.branch') ;
|
||||
}
|
||||
$header->includeViewOnTop('livewire.headers.branch') ;
|
||||
$actions[]=$header;
|
||||
$actions[]=PowerGrid::footer()->showPerPage()->showRecordCount();
|
||||
return $actions;
|
||||
|
@ -41,9 +41,7 @@ final class RoleTable extends PowerGridComponent
|
||||
}
|
||||
$actions = [];
|
||||
$header =PowerGrid::header();
|
||||
if($this->canCreate){
|
||||
$header->includeViewOnTop('livewire.headers.role');
|
||||
}
|
||||
$header->includeViewOnTop('livewire.headers.role');
|
||||
$actions[]=$header;
|
||||
$actions[]=PowerGrid::footer()
|
||||
->showPerPage()
|
||||
|
@ -58,9 +58,7 @@ final class SongTable extends PowerGridComponent
|
||||
->type(Exportable::TYPE_XLS, Exportable::TYPE_CSV);
|
||||
}
|
||||
$header = PowerGrid::header()->showSoftDeletes()->showToggleColumns();
|
||||
if($this->canCreate){
|
||||
$header->includeViewOnTop('livewire.headers.song');
|
||||
}
|
||||
$header->includeViewOnTop('livewire.headers.song');
|
||||
$actions[]=$header;
|
||||
$actions[]=PowerGrid::footer()->showPerPage()->showRecordCount();
|
||||
|
||||
|
@ -52,9 +52,7 @@ final class TextAdsTable extends PowerGridComponent
|
||||
->type(Exportable::TYPE_XLS, Exportable::TYPE_CSV);
|
||||
}
|
||||
$header = PowerGrid::header()->showSoftDeletes()->showToggleColumns();
|
||||
if($this->canCreate){
|
||||
$header->includeViewOnTop('livewire.headers.text-ad');
|
||||
}
|
||||
$header->includeViewOnTop('livewire.headers.text-ad');
|
||||
$actions[]=$header;
|
||||
$actions[]=PowerGrid::footer()->showPerPage()->showRecordCount();
|
||||
|
||||
|
@ -54,9 +54,7 @@ final class UserTable extends PowerGridComponent
|
||||
->type(Exportable::TYPE_XLS, Exportable::TYPE_CSV);
|
||||
$header = PowerGrid::header()
|
||||
->showToggleColumns();
|
||||
if($this->canCreate){
|
||||
$header->includeViewOnTop('livewire.headers.user');
|
||||
}
|
||||
$header->includeViewOnTop('livewire.headers.user');
|
||||
$actions[]=$header;
|
||||
$actions[]=PowerGrid::footer()->showPerPage()->showRecordCount();
|
||||
return $actions;
|
||||
|
@ -1,15 +1,18 @@
|
||||
<x-admin.section-header title="{{ __('artists.list') }}">
|
||||
<x-wireui:button
|
||||
wire:click="$dispatchTo('forms.artist-form', 'openModal')"
|
||||
icon="plus"
|
||||
label="{{ __('artists.CreateNew') }}"
|
||||
class="bg-blue-600 text-white"
|
||||
/>
|
||||
|
||||
<x-wireui:button
|
||||
wire:click="$dispatchTo('import-datas.artist','openModal')"
|
||||
icon="document-plus"
|
||||
label="{{ __('artists.ImportData') }}"
|
||||
class="bg-green-600 text-white"
|
||||
/>
|
||||
@if ($canCreate)
|
||||
<x-wireui:button
|
||||
wire:click="$dispatchTo('forms.artist-form', 'openModal')"
|
||||
icon="plus"
|
||||
label="{{ __('artists.CreateNew') }}"
|
||||
class="bg-blue-600 text-white"
|
||||
/>
|
||||
@endif
|
||||
@if ($canDownload)
|
||||
<x-wireui:button
|
||||
wire:click="$dispatchTo('import-datas.artist','openModal')"
|
||||
icon="document-plus"
|
||||
label="{{ __('artists.ImportData') }}"
|
||||
class="bg-green-600 text-white"
|
||||
/>
|
||||
@endif
|
||||
</x-admin.section-header>
|
@ -1,15 +1,18 @@
|
||||
<x-admin.section-header title="{{ __('branches.list') }}">
|
||||
<x-wireui:button
|
||||
wire:click="$dispatchTo('forms.branch-form', 'openModal')"
|
||||
icon="plus"
|
||||
label="{{ __('branches.CreateNew') }}"
|
||||
class="bg-blue-600 text-white"
|
||||
/>
|
||||
|
||||
<x-wireui:button
|
||||
wire:click="$dispatchTo('import-datas.branch','openModal')"
|
||||
icon="document-plus"
|
||||
label="{{ __('branches.ImportData') }}"
|
||||
class="bg-green-600 text-white"
|
||||
/>
|
||||
@if ($canCreate)
|
||||
<x-wireui:button
|
||||
wire:click="$dispatchTo('forms.branch-form', 'openModal')"
|
||||
icon="plus"
|
||||
label="{{ __('branches.CreateNew') }}"
|
||||
class="bg-blue-600 text-white"
|
||||
/>
|
||||
@endif
|
||||
@if ($canDownload)
|
||||
<x-wireui:button
|
||||
wire:click="$dispatchTo('import-datas.branch','openModal')"
|
||||
icon="document-plus"
|
||||
label="{{ __('branches.ImportData') }}"
|
||||
class="bg-green-600 text-white"
|
||||
/>
|
||||
@endif
|
||||
</x-admin.section-header>
|
10
resources/views/livewire/headers/broadcast.blade.php
Normal file
10
resources/views/livewire/headers/broadcast.blade.php
Normal file
@ -0,0 +1,10 @@
|
||||
<x-admin.section-header title="{{ __('broadcasts.list') }}">
|
||||
@if ($canCreate)
|
||||
<x-wireui:button
|
||||
wire:click="$dispatchTo('forms.broadcast-form', 'openModal')"
|
||||
icon="plus"
|
||||
label="{{ __('broadcasts.CreateNew') }}"
|
||||
class="bg-blue-600 text-white"
|
||||
/>
|
||||
@endif
|
||||
</x-admin.section-header>
|
@ -1,8 +1,10 @@
|
||||
<x-admin.section-header title="{{ __('roles.list') }}">
|
||||
<x-wireui:button
|
||||
wire:click="$dispatchTo('forms.role-form', 'openCreateRoleModal')"
|
||||
icon="plus"
|
||||
label="{{ __('roles.CreateNew') }}"
|
||||
class="bg-blue-600 text-white"
|
||||
/>
|
||||
@if ($canCreate)
|
||||
<x-wireui:button
|
||||
wire:click="$dispatchTo('forms.role-form', 'openCreateRoleModal')"
|
||||
icon="plus"
|
||||
label="{{ __('roles.CreateNew') }}"
|
||||
class="bg-blue-600 text-white"
|
||||
/>
|
||||
@endif
|
||||
</x-admin.section-header>
|
@ -1,15 +1,18 @@
|
||||
<x-admin.section-header title="{{ __('songs.list') }}">
|
||||
<x-wireui:button
|
||||
wire:click="$dispatchTo('forms.song-form', 'openModal')"
|
||||
icon="plus"
|
||||
label="{{ __('songs.CreateNew') }}"
|
||||
class="bg-blue-600 text-white"
|
||||
/>
|
||||
|
||||
<x-wireui:button
|
||||
wire:click="$dispatchTo('import-datas.song','openModal')"
|
||||
icon="document-plus"
|
||||
label="{{ __('songs.ImportData') }}"
|
||||
class="bg-green-600 text-white"
|
||||
/>
|
||||
@if ($canCreate)
|
||||
<x-wireui:button
|
||||
wire:click="$dispatchTo('forms.song-form', 'openModal')"
|
||||
icon="plus"
|
||||
label="{{ __('songs.CreateNew') }}"
|
||||
class="bg-blue-600 text-white"
|
||||
/>
|
||||
@endif
|
||||
@if ($canDownload)
|
||||
<x-wireui:button
|
||||
wire:click="$dispatchTo('import-datas.song','openModal')"
|
||||
icon="document-plus"
|
||||
label="{{ __('songs.ImportData') }}"
|
||||
class="bg-green-600 text-white"
|
||||
/>
|
||||
@endif
|
||||
</x-admin.section-header>
|
@ -1,8 +1,10 @@
|
||||
<x-admin.section-header title="{{ __('text_ads.list') }}">
|
||||
<x-wireui:button
|
||||
wire:click="$dispatchTo('forms.text-ads-form', 'openModal')"
|
||||
icon="plus"
|
||||
label="{{ __('text_ads.CreateNew') }}"
|
||||
class="bg-blue-600 text-white"
|
||||
/>
|
||||
@if ($canCreate)
|
||||
<x-wireui:button
|
||||
wire:click="$dispatchTo('forms.text-ads-form', 'openModal')"
|
||||
icon="plus"
|
||||
label="{{ __('text_ads.CreateNew') }}"
|
||||
class="bg-blue-600 text-white"
|
||||
/>
|
||||
@endif
|
||||
</x-admin.section-header>
|
@ -1,8 +1,10 @@
|
||||
<x-admin.section-header title="{{ __('users.list') }}">
|
||||
<x-wireui:button
|
||||
wire:click="$dispatchTo('forms.user-form', 'openModal')"
|
||||
icon="plus"
|
||||
label="{{ __('users.CreateNew') }}"
|
||||
class="bg-blue-600 text-white"
|
||||
/>
|
||||
@if ($canCreate)
|
||||
<x-wireui:button
|
||||
wire:click="$dispatchTo('forms.user-form', 'openModal')"
|
||||
icon="plus"
|
||||
label="{{ __('users.CreateNew') }}"
|
||||
class="bg-blue-600 text-white"
|
||||
/>
|
||||
@endif
|
||||
</x-admin.section-header>
|
Loading…
x
Reference in New Issue
Block a user