fix: breadcrumbs indonesian labels
This commit is contained in:
@@ -16,6 +16,8 @@ use Filament\Tables\Table;
|
|||||||
class ActivityResource extends Resource
|
class ActivityResource extends Resource
|
||||||
{
|
{
|
||||||
protected static ?string $model = Activity::class;
|
protected static ?string $model = Activity::class;
|
||||||
|
protected static ?string $modelLabel = 'Kegiatan';
|
||||||
|
protected static ?string $pluralModelLabel = 'Kegiatan';
|
||||||
protected static string|\BackedEnum|null $navigationIcon = 'heroicon-o-calendar-days';
|
protected static string|\BackedEnum|null $navigationIcon = 'heroicon-o-calendar-days';
|
||||||
protected static string|\UnitEnum|null $navigationGroup = 'Kegiatan';
|
protected static string|\UnitEnum|null $navigationGroup = 'Kegiatan';
|
||||||
protected static ?string $navigationLabel = 'Kegiatan';
|
protected static ?string $navigationLabel = 'Kegiatan';
|
||||||
|
|||||||
@@ -8,4 +8,5 @@ use Filament\Resources\Pages\CreateRecord;
|
|||||||
class CreateActivity extends CreateRecord
|
class CreateActivity extends CreateRecord
|
||||||
{
|
{
|
||||||
protected static string $resource = ActivityResource::class;
|
protected static string $resource = ActivityResource::class;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,6 +18,8 @@ class CashCategoryResource extends Resource
|
|||||||
protected static string|\BackedEnum|null $navigationIcon = 'heroicon-o-tag';
|
protected static string|\BackedEnum|null $navigationIcon = 'heroicon-o-tag';
|
||||||
protected static string|\UnitEnum|null $navigationGroup = 'Keuangan';
|
protected static string|\UnitEnum|null $navigationGroup = 'Keuangan';
|
||||||
protected static ?string $navigationLabel = 'Kategori';
|
protected static ?string $navigationLabel = 'Kategori';
|
||||||
|
protected static ?string $modelLabel = 'Kategori Kas';
|
||||||
|
protected static ?string $pluralModelLabel = 'Kategori Kas';
|
||||||
|
|
||||||
public static function form(Schema $form): Schema
|
public static function form(Schema $form): Schema
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -8,4 +8,5 @@ use Filament\Resources\Pages\CreateRecord;
|
|||||||
class CreateCashCategory extends CreateRecord
|
class CreateCashCategory extends CreateRecord
|
||||||
{
|
{
|
||||||
protected static string $resource = CashCategoryResource::class;
|
protected static string $resource = CashCategoryResource::class;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ class DivisionResource extends Resource
|
|||||||
protected static ?string $model = Division::class;
|
protected static ?string $model = Division::class;
|
||||||
protected static string|\BackedEnum|null $navigationIcon = 'heroicon-o-rectangle-group';
|
protected static string|\BackedEnum|null $navigationIcon = 'heroicon-o-rectangle-group';
|
||||||
protected static string|\UnitEnum|null $navigationGroup = 'Organisasi';
|
protected static string|\UnitEnum|null $navigationGroup = 'Organisasi';
|
||||||
protected static ?string $navigationLabel = 'Divisi';
|
protected static ?string $modelLabel = 'Divisi';
|
||||||
|
|
||||||
public static function form(Schema $form): Schema
|
public static function form(Schema $form): Schema
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -19,7 +19,9 @@ class MemberDueResource extends Resource
|
|||||||
protected static ?string $model = MemberDue::class;
|
protected static ?string $model = MemberDue::class;
|
||||||
protected static string|BackedEnum|null $navigationIcon = Heroicon::OutlinedRectangleStack;
|
protected static string|BackedEnum|null $navigationIcon = Heroicon::OutlinedRectangleStack;
|
||||||
protected static string|\UnitEnum|null $navigationGroup = 'Organisasi';
|
protected static string|\UnitEnum|null $navigationGroup = 'Organisasi';
|
||||||
protected static ?string $navigationLabel = 'Iuran Anggota';
|
|
||||||
|
protected static ?string $modelLabel = 'Iuran Anggota';
|
||||||
|
protected static ?string $pluralModelLabel = 'Iuran Anggota';
|
||||||
|
|
||||||
public static function form(Schema $schema): Schema
|
public static function form(Schema $schema): Schema
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ class ViewVote extends ViewRecord
|
|||||||
TextEntry::make('abstain')->label('Abstain')->state($abstain)
|
TextEntry::make('abstain')->label('Abstain')->state($abstain)
|
||||||
->color('gray'),
|
->color('gray'),
|
||||||
TextEntry::make('result')->label('Hasil')->state($total > 0 ? $quorum : '-')
|
TextEntry::make('result')->label('Hasil')->state($total > 0 ? $quorum : '-')
|
||||||
->color($total > 0 && ($approve / max($total, 1)) > 0.5 ? 'success' : 'warning'),
|
->color($total > 0 && ($approve / $total) > 0.5 ? 'success' : 'warning'),
|
||||||
])->columns(5),
|
])->columns(5),
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user