@extends('Admin.include.app')
@section('content')
    <style>
        .input-group .fas {
            color: black;
        }
    </style>

    <!-- Main content -->
    <section class="content">
        <div class="container-fluid">
            <div class="row">
                <div class="col-md-12">
                    <div class="card card-primary card-outline">
                        <div class="card-header">
                            <h3>Upload Employee/Branch Data CSV file</h3>
                        </div>
                        <div class="card-body">
                            <form name="addForm" id="addForm" class="col-md-12" method="POST"
                                action="{{ route('employee.import.store') }}" enctype="multipart/form-data">
                                @csrf
                                <div class="form-group row">
                                    <label for="employee_data"
                                        class="col-sm-3 col-form-label text-uppercase font-weight-bold">Select CSV File:
                                    </label>
                                    <div class="input-group col-sm-9">
                                        <input name="employee_data" type="file" id="employee_data"
                                            class="form-control @error('employee_data') is-invalid @enderror"
                                            value="{{ old('employee_data') }}">
                                    </div>
                                    @error('employee_data')
                                        <span class="invalid-feedback" role="alert">
                                            <strong>{{ $message }}</strong>
                                        </span>
                                    @enderror
                                </div>
                                <div class="form-group row">
                                    <div class="offset-sm-6 col-sm-12">
                                        <button type="submit" class="btn btn-success">Submit</button>
                                    </div>
                                </div>
                            </form>
                        </div>

                    </div>
                </div>
            </div>
            <!-- /.row -->
        </div>
        <!-- /.container-fluid -->
    </section>
    <!-- /.content -->
@endsection
