@extends('layout')
@section('title', 'Add employee')
@section('content')
<div class="page-header"><h1>Add employee</h1></div>

<div class="card" style="max-width:480px;">
    <form method="POST" action="{{ route('employees.store') }}">
        @csrf
        <label for="emp_id">Employee ID</label>
        <input type="text" id="emp_id" name="emp_id" value="{{ old('emp_id') }}" required>

        <label for="name">Name</label>
        <input type="text" id="name" name="name" value="{{ old('name') }}" required>

        <label for="consent_on">Consent date</label>
        <input type="date" id="consent_on" name="consent_on" value="{{ old('consent_on') }}">

        <div class="checkbox-row">
            <input type="checkbox" id="active" name="active" value="1" checked>
            <label for="active">Active</label>
        </div>

        <button type="submit" class="btn btn-primary btn-block">Save</button>
    </form>
</div>
@endsection
