Skip to content

Commit 3cc16cc

Browse files
committed
wip
1 parent 957dbf6 commit 3cc16cc

8 files changed

Lines changed: 35 additions & 15 deletions

File tree

app/Filament/Resources/Beneficiaries/BeneficiaryResource.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ class BeneficiaryResource extends Resource
2828

2929
protected static ?int $navigationSort = 1;
3030

31-
protected static ?string $recordTitleAttribute = 'full_name';
32-
3331
public static function getModelLabel(): string
3432
{
3533
return __('beneficiary.label.singular');

app/Filament/Resources/Beneficiaries/Resources/Documents/DocumentResource.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ class DocumentResource extends Resource
2929

3030
protected static ?string $parentResource = BeneficiaryResource::class;
3131

32-
protected static ?string $recordTitleAttribute = 'title';
33-
3432
public static function getModelLabel(): string
3533
{
3634
return __('document.label.singular');

app/Filament/Resources/Beneficiaries/Resources/Interventions/InterventionResource.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ class InterventionResource extends Resource
2828

2929
protected static string | BackedEnum | null $navigationIcon = Heroicon::OutlinedRectangleStack;
3030

31-
protected static ?string $recordTitleAttribute = 'name';
32-
3331
protected static ?string $parentResource = BeneficiaryResource::class;
3432

3533
public static function getModelLabel(): string

app/Filament/Resources/Households/HouseholdResource.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ class HouseholdResource extends Resource
2323

2424
protected static bool $shouldRegisterNavigation = false;
2525

26-
protected static ?string $recordTitleAttribute = 'name';
27-
2826
public static function getModelLabel(): string
2927
{
3028
return __('household.label.singular');

app/Filament/Resources/Vacations/VacationResource.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,8 @@
99
use App\Filament\Resources\Vacations\Schemas\VacationInfolist;
1010
use App\Filament\Resources\Vacations\Tables\VacationsTable;
1111
use App\Models\Vacation;
12-
use BackedEnum;
1312
use Filament\Resources\Resource;
1413
use Filament\Schemas\Schema;
15-
use Filament\Support\Icons\Heroicon;
1614
use Filament\Tables\Table;
1715

1816
class VacationResource extends Resource
@@ -21,8 +19,6 @@ class VacationResource extends Resource
2119

2220
protected static ?int $navigationSort = 6;
2321

24-
protected static string | BackedEnum | null $navigationIcon = Heroicon::CalendarDateRange;
25-
2622
public static function shouldRegisterNavigation(): bool
2723
{
2824
return auth()->user()->isAdmin()

resources/css/app.css

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,36 @@
2424
.fi-page-sub-navigation-sidebar-ctn {
2525
@apply w-56;
2626
}
27+
28+
.fi-topbar {
29+
@apply bg-primary-700 dark:bg-gray-950;
30+
31+
.fi-logo {
32+
@apply fill-primary-50;
33+
}
34+
}
35+
36+
.fi-sidebar {
37+
.fi-logo {
38+
@apply fill-primary-900 dark:fill-primary-50;
39+
}
40+
}
41+
42+
.fi-topbar-open-sidebar-btn {
43+
@apply !text-primary-50;
44+
45+
&:hover, &:focus {
46+
@apply !text-primary-100;
47+
}
48+
}
49+
50+
.fi-topbar-item .fi-active .fi-topbar-item-label,
51+
.fi-topbar-item-btn:hover .fi-topbar-item-label,
52+
.fi-topbar-item-btn:focus .fi-topbar-item-label {
53+
@apply text-primary-700;
54+
}
55+
56+
.fi-topbar-item-label {
57+
@apply font-semibold text-primary-50;
58+
}
2759
}

resources/views/components/tabs.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
@class([
1616
'flex items-center gap-2 py-3 text-sm font-semibold border-t-2 fi-tabs-component-button shrink-0 px-9 md:text-base focus:outline-none',
1717
$tab->isActive()
18-
? 'fi-tabs-component-button-active bg-white border-current dark:bg-gray-900 text-primary-600 ring-primary-600 dark:text-primary-700 dark:ring-primary-700'
19-
: 'text-white bg-primary-600 border-transparent hover:bg-primary-500 dark:bg-primary-950 dark:hover:bg-primary-900',
18+
? 'fi-tabs-component-button-active bg-white border-current dark:bg-gray-900 text-primary-600 ring-primary-600 dark:text-primary-50 dark:ring-primary-700'
19+
: 'text-white bg-primary-600 border-transparent hover:bg-primary-500 dark:bg-primary-700 dark:hover:bg-primary-800',
2020
])>
2121
{{ $tab->getLabel() }}
2222
</a>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<x-icon-logo class="select-none fill-primary-900 dark:fill-primary-50" :title="config('app.name')" />
1+
<x-icon-logo class="select-none" :title="config('app.name')" />

0 commit comments

Comments
 (0)