translate base

This commit is contained in:
Mekan1206
2026-07-31 18:08:08 +05:00
parent a794dacd39
commit 581cb8241c
413 changed files with 9087 additions and 428 deletions

View File

@@ -4,6 +4,7 @@ declare(strict_types=1);
namespace App\Filament\Resources\Explanations;
use App\Enums\NavigationGroup;
use App\Filament\Resources\Explanations\Pages\CreateExplanation;
use App\Filament\Resources\Explanations\Pages\EditExplanation;
use App\Filament\Resources\Explanations\Pages\ListExplanations;
@@ -27,7 +28,7 @@ class ExplanationResource extends Resource
protected static string|BackedEnum|null $navigationIcon = Heroicon::OutlinedDocumentText;
protected static string | UnitEnum | null $navigationGroup = 'Records';
protected static string|UnitEnum|null $navigationGroup = NavigationGroup::Records;
protected static ?int $navigationSort = 2;

View File

@@ -26,7 +26,7 @@ class ExplanationForm
->rows(4)
->columnSpanFull(),
HrForm::fileUpload('attachment_path')
->label('Attachment')
->label(__('hr.fields.attachment'))
->acceptedFileTypes(['application/pdf', 'image/*'])
->maxSize(10240),
]);

View File

@@ -13,7 +13,7 @@ class ExplanationInfolist
return $schema
->components([
TextEntry::make('employee.id')
->label('Employee'),
->label(__('hr.fields.employee')),
TextEntry::make('explanation_date')
->date(),
TextEntry::make('reason'),

View File

@@ -20,7 +20,7 @@ class ExplanationsTable
return $table
->columns([
TextColumn::make('employee.full_name')
->label('Employee')
->label(__('hr.fields.employee'))
->searchable()
->sortable(),
TextColumn::make('explanation_date')
@@ -33,7 +33,7 @@ class ExplanationsTable
->limit(50)
->toggleable(),
IconColumn::make('attachment_path')
->label('Attachment')
->label(__('hr.fields.attachment'))
->boolean()
->trueIcon('heroicon-o-paper-clip')
->falseIcon('heroicon-o-minus'),