@extends('capture.layoutv6')

@section('content')
<head>
    <title>Import Excel</title>
</head>
<body>
    <h2>อัพโหลดไฟล์ Excel</h2>

    @if(session('success'))
        <div style="color: green;">{{ session('success') }}</div>
    @endif

    @if(session('error'))
        <div style="color: red;">{{ session('error') }}</div>
    @endif

    <form action="{{ route('upload.import') }}" method="POST" enctype="multipart/form-data">
        @csrf
        <input type="file" name="file" accept=".xlsx, .xls">
        <button type="submit">อัพโหลด</button>
    </form>
</body>
@endsection
