Compare commits

..

No commits in common. "78c432eaa09aa3b13d3edcedfbd6916895675f0a" and "863d0e7b985d0cd8252c6ef5be466ea9e23ed484" have entirely different histories.

3 changed files with 9 additions and 12 deletions

View File

@ -2,7 +2,6 @@
namespace App\Http\Requests\Admin\HR;
use App\Concerns\CurrencyStripping;
use App\Enums\EmploymentStatus;
use App\Enums\Gender;
use Illuminate\Foundation\Http\FormRequest;
@ -10,19 +9,12 @@
class EmployeeRequest extends FormRequest
{
use CurrencyStripping;
public function authorize(): bool
{
return $this->user()->can('employees.create')
|| $this->user()->can('employees.update');
}
public function prepareForValidation(): void
{
$this->merge($this->stripCurrencyDot($this->all(), 'base_salary'));
}
public function rules(): array
{
$userId = $this->route('user')?->id;

View File

@ -401,10 +401,6 @@ export default function EmployeeEdit({ employee, roles, canViewAll }: Props) {
</Label>
<RupiahInput
name="base_salary"
defaultValue={
employee.employee
?.base_salary ?? 0
}
/>
<InputError
message={

View File

@ -60,6 +60,15 @@ export default function Login() {
<InputError message={errors.password} />
</div>
<div className="flex items-center space-x-3">
<Checkbox
id="remember"
name="remember"
tabIndex={3}
/>
<Label htmlFor="remember">Ingat saya</Label>
</div>
<Button
type="submit"
className="mt-4 w-full"