<x-app-layout :assets="$assets ?? []">
    <div>
        <div class="row">
            <div class="col-xl-6 col-lg-6">
                <div class="card">
                    <div class="card-header d-flex justify-content-between">
                        <div class="header-title">
                            <h4 class="card-title">Import Leads</h4>
                        </div>
                        <div class="card-action">
                            <a href="{{ route("admin.leads") }}" class="btn btn-sm btn-primary" role="button">Back</a>
                        </div>
                    </div>
                    <div class="card-body">
                        <form action="{{ route("admin.storelimport") }}" method="POST" role="form text-left" class="needs-validation" enctype="multipart/form-data">
                            @csrf
                            <div class="new-user-info">
                                <div class="row">
                                    <div class="form-group col-md-6">
                                        <label class="form-label" for="leadowner">Select File: <span class="text-danger">*</span></label>
                                        <input class="form-control" type="file" id="import_file" name="import_file" accept=".csv">
                                        <p>Max file size 2MB</p>
                                    </div>
                                </div>
                                <button type="submit" class="btn btn-sm btn-primary">Save</button>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
            <div class="col-xl-6 col-lg-6">
                <div class="card">
                    <div class="card-header d-flex justify-content-between">
                        <div class="header-title">
                            <h4 class="card-title">Download Sample File</h4>
                        </div>
                    </div>
                    <div class="card-body">
                        <a href="{{ url('sample_file.csv') }}" class="btn btn-sm btn-success" download>Download File</a>
                    </div>
                </div>
            </div>
        </div>
    </div>
</x-app-layout>
