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