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

@@ -13,8 +13,8 @@ class UnpaidLeaveForm
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(),
Textarea::make('reason')
->rows(3)

View File

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

View File

@@ -28,7 +28,7 @@ class UnpaidLeavesTable
return $table
->columns([
TextColumn::make('employee.full_name')
->label('Employee')
->label(__('hr.fields.employee'))
->searchable()
->sortable(),
TextColumn::make('start_date')
@@ -47,7 +47,7 @@ class UnpaidLeavesTable
->searchable()
->sortable(),
TextColumn::make('approver.name')
->label('Approved By')
->label(__('hr.fields.approved_by'))
->toggleable(isToggledHiddenByDefault: true),
TextColumn::make('approved_at')
->dateTime()
@@ -70,12 +70,12 @@ class UnpaidLeavesTable
SelectFilter::make('status')
->options(ApprovalStatus::class),
Filter::make('date_range')
->label('Date Range')
->label(__('hr.fields.date_range'))
->schema([
DatePicker::make('start_from')
->label('Start from'),
->label(__('hr.fields.start_from')),
DatePicker::make('start_until')
->label('Start until'),
->label(__('hr.fields.start_until')),
])
->query(function (Builder $query, array $data): Builder {
return $query
@@ -92,7 +92,7 @@ class UnpaidLeavesTable
])
->recordActions([
Action::make('approve')
->label('Approve')
->label(__('hr.actions.approve'))
->icon('heroicon-o-check-badge')
->color('success')
->requiresConfirmation()
@@ -101,7 +101,7 @@ class UnpaidLeavesTable
$unpaidLeaveService->approve($record, Auth::user());
}),
Action::make('reject')
->label('Reject')
->label(__('hr.actions.reject'))
->icon('heroicon-o-x-mark')
->color('danger')
->requiresConfirmation()

View File

@@ -4,6 +4,7 @@ declare(strict_types=1);
namespace App\Filament\Resources\UnpaidLeaves;
use App\Enums\NavigationGroup;
use App\Filament\Resources\UnpaidLeaves\Pages\CreateUnpaidLeave;
use App\Filament\Resources\UnpaidLeaves\Pages\EditUnpaidLeave;
use App\Filament\Resources\UnpaidLeaves\Pages\ListUnpaidLeaves;
@@ -27,7 +28,7 @@ class UnpaidLeaveResource extends Resource
protected static string|BackedEnum|null $navigationIcon = Heroicon::OutlinedCalendarDays;
protected static string | UnitEnum | null $navigationGroup = 'Leave Management';
protected static string|UnitEnum|null $navigationGroup = NavigationGroup::LeaveManagement;
protected static ?int $navigationSort = 3;