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

<div class="card" style="max-width:520px;">
    <p class="muted">CSV columns: <code>emp_id,name,active,consent_on</code>. Existing emp_id rows are updated; new ones are created.</p>
    <form method="POST" action="{{ route('employees.import') }}" enctype="multipart/form-data">
        @csrf
        <label for="csv_file">CSV file</label>
        <input type="file" id="csv_file" name="csv_file" accept=".csv" required>
        <button type="submit" class="btn btn-primary btn-block">Import</button>
    </form>
</div>
@endsection
