26 lines
742 B
PHP
26 lines
742 B
PHP
<?php
|
|
|
|
namespace App\Filament\Resources\UnpaidLeaves\Schemas;
|
|
|
|
use App\Filament\Support\HrForm;
|
|
use Filament\Forms\Components\Textarea;
|
|
use Filament\Schemas\Schema;
|
|
|
|
class UnpaidLeaveForm
|
|
{
|
|
public static function configure(Schema $schema): Schema
|
|
{
|
|
return $schema
|
|
->components([
|
|
HrForm::employeeSelect(),
|
|
HrForm::leaveDatePicker('start_date', __('hr.fields.start_date')),
|
|
HrForm::leaveDatePicker('end_date', __('hr.fields.end_date')),
|
|
HrForm::leaveDaysDisplay(),
|
|
Textarea::make('reason')
|
|
->label(__('hr.fields.reason'))
|
|
->rows(3)
|
|
->columnSpanFull(),
|
|
]);
|
|
}
|
|
}
|