notification & notes wip

This commit is contained in:
salam committed 2026-02-01 16:36:27 +01:00
1 parent 94a3c6c472
commit 155177045b
30 files changed
+426 -320

No files matched your search

+1
View File
@@ -5,6 +5,7 @@
@source '../../../../resources/views/filament/**/*';
@source '../../../../resources/views/components/**/*';
@source '../../../../vendor/awcodes/light-switch/resources/**/*.blade.php';
@source '../../../../vendor/guava/filament-modal-relation-managers/resources/**/*';
/* hide reset link in filters */
.fi-ta-filters-heading,
@@ -0,0 +1,16 @@
<div>
@if (!$notes->isEmpty())
<div class="grid grid-cols-6 gap-2 m-5 max-w-120">
@foreach ($notes as $item)
@include('filament.tables.columns.multiline.bkm', [
'bookmaker_id' => $item->bookmaker_id,
'icon' => $item->bookmaker->icon ?? '',
])
<div style="font-size:10px;">{{ $item->user->name }}</div>
<div class="col-span-4">{{ $item->message }}</div>
@endforeach
</div>
@else
Add a note
@endif
</div>
@@ -1,21 +1,27 @@
<div class="grid grid-cols-2 gap-1 py-2 px-3 border rounded-xl border-zinc-200 dark:border-zinc-800 bg-gray-100 dark:bg-gray-900 text-center shadow"
style="font-size: 10.5px;">
<div class="grid grid-cols-2 gap-1 p-1 border rounded border-zinc-200 dark:border-zinc-800 bg-gray-100 dark:bg-gray-900 text-center shadow"
style="font-size: 10px;">
<div class="row-span-3 text-lg text-gray-500 pt-3">{{ $title }}</div>
@if ($red)
<div class="cursor-pointer" wire:click="filterAlarm('{{ $filter }}', 3)"><x-alarm-red>{{ $red }}</x-alarm-red></div>
<div class="cursor-pointer" wire:click="filterAlarm('{{ $filter }}', 3)">
<x-alarm-red>{{ $red }}</x-alarm-red>
</div>
@else
<x-alarm-neutral>0</x-alarm-neutral>
@endif
@if ($yellow)
<div class="cursor-pointer" wire:click="filterAlarm('{{ $filter }}', 2)"><x-alarm-yellow>{{ $yellow }}</x-alarm-yellow></div>
<div class="cursor-pointer" wire:click="filterAlarm('{{ $filter }}', 2)">
<x-alarm-yellow>{{ $yellow }}</x-alarm-yellow>
</div>
@else
<x-alarm-neutral>0</x-alarm-neutral>
@endif
@if ($green)
<div class="cursor-pointer" wire:click="filterAlarm('{{ $filter }}', 1)"><x-alarm-green>{{ $green }}</x-alarm-green></div>
<div class="cursor-pointer" wire:click="filterAlarm('{{ $filter }}', 1)">
<x-alarm-green>{{ $green }}</x-alarm-green>
</div>
@else
<x-alarm-neutral>0</x-alarm-neutral>
@endif
@@ -55,12 +55,12 @@
{{ $record->logcol_id }}
</div>
@endif
@if ($record->event_bookmaker?->event_id)
@if ($record?->event_bookmaker)
<div>{{ auth()->user()->bookmaker->name_short }}</div>
<div>
{{ $record->event_bookmaker->event_id }}
{{ $record->event_bookmaker?->event_id }}
</div>
@endif
</div>
</div>
@@ -3,7 +3,7 @@
@endphp
@if (isset($icon))
<div class="h-4 m-0 bg-contain bg-center bg-no-repeat my-auto dark:opacity-80" title="{{ $bookmaker_id }}"
<div class="h-3 m-0 bg-contain bg-center bg-no-repeat my-auto dark:opacity-80" title="{{ $bookmaker_id }}"
style="background-image: url('{{ BkmIconMap::get($icon) }}')">
</div>
@endif
@@ -26,19 +26,19 @@
@switch(auth()->user()->all_only_none)
@case(0)
<x-filament::button size="xs" wire:click="toggelAllOnlyNone" color="gray" icon="phosphor-gps"
tooltip="Toggle to show with or without {{ auth()->user()->bookmaker->name }}">
tooltip="Showing with or without {{ auth()->user()->bookmaker->name }}">
</x-filament::button>
@break
@case(1)
<x-filament::button size="xs" wire:click="toggelAllOnlyNone" icon="phosphor-gps-fix" color="info"
tooltip="Only with {{ auth()->user()->bookmaker->name }}">
tooltip="Showing all with {{ auth()->user()->bookmaker->name }}">
</x-filament::button>
@break
@case(2)
<x-filament::button size="xs" wire:click="toggelAllOnlyNone" color="danger" icon="phosphor-gps-slash"
tooltip="Only without {{ auth()->user()->bookmaker->name }}">
tooltip="Showing all without {{ auth()->user()->bookmaker->name }}">
</x-filament::button>
@break
@@ -50,8 +50,16 @@
:icon="auth()->user()->is_multiline_direct ? 'phosphor-not-equals' : 'phosphor-equals'">
</x-filament::button>
<x-filament::button size="xs" tooltip="Toggle favorits" wire:click="toggleStar" :color="auth()->user()->stars ? 'info' : 'gray'"
:icon="auth()->user()->stars ? 'phosphor-star-fill' : 'phosphor-star'">
<x-filament::button size="xs" tooltip="Filter favorits" wire:click="toggleStar" :color="auth()->user()->filter_stars ? 'info' : 'gray'"
:icon="auth()->user()->filter_stars ? 'phosphor-star-fill' : 'phosphor-star'">
</x-filament::button>
<x-filament::button size="xs" tooltip="Filter notes" wire:click="toggleNote" :color="auth()->user()->filter_notes ? 'info' : 'gray'"
:icon="auth()->user()->filter_notes ? 'phosphor-note-fill' : 'phosphor-note'">
</x-filament::button>
<x-filament::button size="xs" tooltip="Filter alarm notification" wire:click="toggleNotification"
:color="auth()->user()->filter_notification ? 'info' : 'gray'" :icon="auth()->user()->filter_notification ? 'phosphor-bell-fill' : 'phosphor-bell'">
</x-filament::button>
<div></div>
@@ -1,9 +1,7 @@
<div>
<x-filament::input.wrapper prefix-icon="{{ $sporticon }}" prefix-icon-color="info">
<x-filament::input.select wire:model="sport_id" wire:change="swopSport">
@foreach ($sports as $id => $name)
<option value="{{ $id }}">{{ $name }}</option>
@endforeach
</x-filament::input.select>
</x-filament::input.wrapper>
</div>
<x-filament::input.wrapper prefix-icon="{{ $sporticon }}" prefix-icon-color="{{ $iconcolor }}">
<x-filament::input.select wire:model="sport_id" wire:change="swopSport">
@foreach ($sports as $id => $name)
<option value="{{ $id }}">{{ $name }}</option>
@endforeach
</x-filament::input.select>
</x-filament::input.wrapper>