translate base
This commit is contained in:
@@ -14,8 +14,8 @@ class SickLeaveForm
|
||||
return $schema
|
||||
->components([
|
||||
HrForm::employeeSelect(),
|
||||
HrForm::leaveDatePicker('start_date', 'Start Date'),
|
||||
HrForm::leaveDatePicker('end_date', 'End Date'),
|
||||
HrForm::leaveDatePicker('start_date', __(hr.fields.start_date)),
|
||||
HrForm::leaveDatePicker('end_date', __(hr.fields.end_date)),
|
||||
HrForm::leaveDaysDisplay(),
|
||||
TextInput::make('medical_institution')
|
||||
->maxLength(255),
|
||||
@@ -23,7 +23,7 @@ class SickLeaveForm
|
||||
->rows(3)
|
||||
->columnSpanFull(),
|
||||
HrForm::fileUpload('document_path')
|
||||
->label('Medical Document')
|
||||
->label(__('hr.fields.medical_document'))
|
||||
->acceptedFileTypes(['application/pdf', 'image/*'])
|
||||
->maxSize(10240),
|
||||
]);
|
||||
|
||||
@@ -13,7 +13,7 @@ class SickLeaveInfolist
|
||||
return $schema
|
||||
->components([
|
||||
TextEntry::make('employee.id')
|
||||
->label('Employee'),
|
||||
->label(__('hr.fields.employee')),
|
||||
TextEntry::make('start_date')
|
||||
->date(),
|
||||
TextEntry::make('end_date')
|
||||
|
||||
@@ -4,6 +4,7 @@ declare(strict_types=1);
|
||||
|
||||
namespace App\Filament\Resources\SickLeaves;
|
||||
|
||||
use App\Enums\NavigationGroup;
|
||||
use App\Filament\Resources\SickLeaves\Pages\CreateSickLeave;
|
||||
use App\Filament\Resources\SickLeaves\Pages\EditSickLeave;
|
||||
use App\Filament\Resources\SickLeaves\Pages\ListSickLeaves;
|
||||
@@ -27,7 +28,7 @@ class SickLeaveResource extends Resource
|
||||
|
||||
protected static string|BackedEnum|null $navigationIcon = Heroicon::OutlinedHeart;
|
||||
|
||||
protected static string | UnitEnum | null $navigationGroup = 'Leave Management';
|
||||
protected static string|UnitEnum|null $navigationGroup = NavigationGroup::LeaveManagement;
|
||||
|
||||
protected static ?int $navigationSort = 2;
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ class SickLeavesTable
|
||||
return $table
|
||||
->columns([
|
||||
TextColumn::make('employee.full_name')
|
||||
->label('Employee')
|
||||
->label(__('hr.fields.employee'))
|
||||
->searchable()
|
||||
->sortable(),
|
||||
TextColumn::make('start_date')
|
||||
@@ -36,7 +36,7 @@ class SickLeavesTable
|
||||
->searchable()
|
||||
->toggleable(),
|
||||
IconColumn::make('document_path')
|
||||
->label('Document')
|
||||
->label(__('hr.fields.document'))
|
||||
->boolean()
|
||||
->trueIcon('heroicon-o-document-check')
|
||||
->falseIcon('heroicon-o-document')
|
||||
|
||||
Reference in New Issue
Block a user