25 lines
686 B
PHP
25 lines
686 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')
|
|
->rows(3)
|
|
->columnSpanFull(),
|
|
]);
|
|
}
|
|
}
|