@extends('garage.layouts.app') @section('title', 'Edit employee') @section('content')
Edit employee
Update employee profile and category.
@if(session('error'))
{{ session('error') }}
@endif @if($errors->any())
@endif
@csrf @method('PUT')
@php($selectedResponsibilities = array_map('intval', (array) old('responsibility_service_ids', ($employeeResponsibilityServiceIds ?? collect())->all())))
@forelse(($responsibilityServices ?? []) as $svc)
@empty
No active services found.
@endforelse
Select department/designation to see allowed services.
This phone number already exists for another employee.

Attendance device mapping
Set Attendance code to the exact UserID from the Dahua device (e.g. 14). Attendance is matched by this number only.
@if(\Illuminate\Support\Facades\Schema::hasColumn('garage_employees', 'attendance_device_name'))
@endif
@if(isset($attendanceShifts) && $attendanceShifts->count())
@endif
@php($st = old('salary_type', $employee->salary_type ?? 'monthly'))
0.00
Formula: Basic salary + active fixed allowances.
Auto-filled from Employee Fund Setup slab (editable).
Upload a new image to replace current one (max 5 MB).
@if(!empty($employee->employee_image)) @endif
New files will be added to existing documents (max 10 MB each).
@php($existingDocuments = json_decode((string)($employee->employee_documents ?? ''), true)) @if(is_array($existingDocuments) && count($existingDocuments))
@foreach($existingDocuments as $docIdx => $docPath) @if(is_string($docPath) && trim($docPath) !== '') {{ basename($docPath) }} @endif @endforeach
@endif
Manage allowances setup
@foreach(($allowanceSeedRows ?? []) as $i => $r) @endforeach
Allowance Type Amount Month (variable) Active
{{ ucfirst($r['type'] ?? 'fixed') }}
Fixed allowances are added every month. Variable allowances are added only in selected month.
@if(old('is_active', (int)($employee->is_active ?? 1))) @else @endif
@endsection