generated from spatie/package-skeleton-laravel
-
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
mikrosmile
committed
Dec 11, 2022
1 parent
539c235
commit e6db3a4
Showing
5 changed files
with
101 additions
and
118 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,63 +1,67 @@ | ||
<div class="justify-between sm:items-center grid sm:flex gap-2"> | ||
<div class="font-medium text-lg"> | ||
<div class="sm:justify-between sm:items-center grid sm:flex gap-2"> | ||
<div class="filament-header-heading text-2xl font-bold tracking-tight"> | ||
{{$this->monthName}} | ||
</div> | ||
<div class="flex items-center gap-1"> | ||
<x-filament-support::button | ||
wire:click="$emit('onPreviousYearClick')" | ||
@class([ | ||
'hidden sm:visible' => config('timex.pages.buttons.hideYearNavigation', false), | ||
]) | ||
:size="'sm'" | ||
:color="'secondary'" | ||
:dark-mode="true" | ||
:outlined="config('timex.pages.buttons.outlined')"> | ||
<x-dynamic-component :component="config('timex.pages.buttons.icons.previousYear', 'heroicon-o-chevron-double-left')" class="h-4 w-4"/> | ||
</x-filament-support::button> | ||
<x-filament-support::button | ||
wire:click="$emit('onPrevClick')" | ||
:size="'sm'" | ||
:dark-mode="true" | ||
:outlined="config('timex.pages.buttons.outlined')"> | ||
<x-dynamic-component :component="config('timex.pages.buttons.icons.previousMonth')" class="h-4 w-4"/> | ||
</x-filament-support::button> | ||
<x-filament-support::button | ||
wire:click="$emit('onTodayClick')" | ||
:size="'sm'" | ||
:dark-mode="true" | ||
:outlined="config('timex.pages.buttons.outlined')"> | ||
{{config('timex.pages.buttons.today.static') ? trans('timex::timex.labels.today') : self::getDynamicLabel('today')}} | ||
</x-filament-support::button> | ||
<x-filament-support::button | ||
wire:click="$emit('onNextClick')" | ||
:size="'sm'" | ||
:dark-mode="true" | ||
:outlined="config('timex.pages.buttons.outlined')"> | ||
<x-dynamic-component :component="config('timex.pages.buttons.icons.nextMonth')" class="h-4 w-4"/> | ||
</x-filament-support::button> | ||
<x-filament-support::button | ||
wire:click="$emit('onNextYearClick')" | ||
@class([ | ||
'hidden' => config('timex.pages.buttons.hideYearNavigation', false) | ||
]) | ||
:size="'sm'" | ||
:color="'secondary'" | ||
:dark-mode="true" | ||
:outlined="config('timex.pages.buttons.outlined')"> | ||
<x-dynamic-component :component="config('timex.pages.buttons.icons.nextYear','heroicon-o-chevron-double-right')" class="h-4 w-4"/> | ||
</x-filament-support::button> | ||
<span class="border border-gray-300 dark:border-gray-400 h-5 rounded ml-2 mr-2"></span> | ||
<x-filament-support::button | ||
wire:click="$emit('onCreateClick')" | ||
:outlined="true" | ||
:dark-mode="true" | ||
:size="'sm'"> | ||
<div class="flex items-center gap-2"> | ||
<x-dynamic-component :component="config('timex.pages.buttons.icons.createEvent')" class="h-4 w-4"/> | ||
<div class="timex-header-create-button"> | ||
{{trans('filament::resources/pages/create-record.title', ['label' => Str::lower(__('timex::timex.model.label'))])}} | ||
</div> | ||
</div> | ||
</x-filament-support::button> | ||
<div class="flex items-center gap-2 justify-between"> | ||
<div class="flex"> | ||
<x-filament-support::button | ||
wire:click="$emit('onTodayClick')" | ||
:size="'sm'" | ||
:dark-mode="true" | ||
:color="'secondary'" | ||
:outlined="config('timex.pages.buttons.outlined')" | ||
> | ||
{{config('timex.pages.buttons.today.static') ? trans('timex::timex.labels.today') : self::getDynamicLabel('today')}} | ||
</x-filament-support::button> | ||
</div> | ||
<div class="flex gap-2"> | ||
<x-filament-support::button | ||
:dark-mode="true" | ||
:size="'sm'" | ||
:outlined="true" | ||
> | ||
<div class="flex gap-3 items-center"> | ||
@unless(config('timex.pages.buttons.hideYearNavigation', false)) | ||
<x-dynamic-component | ||
wire:click="$emit('onPreviousYearClick')" | ||
:component="config('timex.pages.buttons.icons.previousYear', 'heroicon-o-chevron-double-left')" | ||
class="h-4 w-4 text-gray-500"/> | ||
@endunless | ||
<x-dynamic-component | ||
wire:click="$emit('onPrevClick')" | ||
:component="config('timex.pages.buttons.icons.previousMonth')" | ||
class="h-4 w-4"/> | ||
<span | ||
class="border-primary-600 dark:border-gray-400 rounded h-3 ml-2 mr-2" | ||
style="border-width: 0.5px;"> | ||
</span> | ||
<x-dynamic-component | ||
wire:click="$emit('onNextClick')" | ||
:component="config('timex.pages.buttons.icons.nextMonth')" | ||
class="h-4 w-4"/> | ||
@unless(config('timex.pages.buttons.hideYearNavigation', false)) | ||
<x-dynamic-component | ||
wire:click="$emit('onNextYearClick')" | ||
:component="config('timex.pages.buttons.icons.nextYear','heroicon-o-chevron-double-right')" | ||
class="h-4 w-4 text-gray-500"/> | ||
@endunless | ||
</div> | ||
</x-filament-support::button> | ||
<x-filament-support::button | ||
wire:click="$emit('onCreateClick')" | ||
:outlined="true" | ||
:dark-mode="true" | ||
:size="'sm'"> | ||
<div class="flex items-center gap-2"> | ||
<x-dynamic-component | ||
:component="config('timex.pages.buttons.icons.createEvent')" | ||
class="h-4 w-4" | ||
/> | ||
<div class="hidden lg:flex"> | ||
{{trans('filament::resources/pages/create-record.title', ['label' => Str::lower(__('timex::timex.model.label'))])}} | ||
</div> | ||
</div> | ||
</x-filament-support::button> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters