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\DisciplinaryReports;
use App\Enums\NavigationGroup;
use App\Filament\Resources\DisciplinaryReports\Pages\CreateDisciplinaryReport;
use App\Filament\Resources\DisciplinaryReports\Pages\EditDisciplinaryReport;
use App\Filament\Resources\DisciplinaryReports\Pages\ListDisciplinaryReports;
@@ -27,7 +28,7 @@ class DisciplinaryReportResource extends Resource
protected static string|BackedEnum|null $navigationIcon = Heroicon::OutlinedExclamationTriangle;
protected static string | UnitEnum | null $navigationGroup = 'Records';
protected static string|UnitEnum|null $navigationGroup = NavigationGroup::Records;
protected static ?int $navigationSort = 1;

View File

@@ -32,7 +32,7 @@ class DisciplinaryReportForm
->required()
->native(false),
HrForm::fileUpload('attachment_path')
->label('Attachment')
->label(__('hr.fields.attachment'))
->acceptedFileTypes(['application/pdf', 'image/*'])
->maxSize(10240),
]);

View File

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

View File

@@ -23,7 +23,7 @@ class DisciplinaryReportsTable
return $table
->columns([
TextColumn::make('employee.full_name')
->label('Employee')
->label(__('hr.fields.employee'))
->searchable()
->sortable(),
TextColumn::make('report_date')
@@ -39,12 +39,12 @@ class DisciplinaryReportsTable
->searchable()
->sortable(),
IconColumn::make('attachment_path')
->label('Attachment')
->label(__('hr.fields.attachment'))
->boolean()
->trueIcon('heroicon-o-paper-clip')
->falseIcon('heroicon-o-minus'),
TextColumn::make('creator.name')
->label('Created By')
->label(__('hr.fields.created_by'))
->sortable()
->toggleable(),
TextColumn::make('created_at')