<div class="card mb-3">
    <div class="card-body">
        <h6 class="card-title">Import Penilaian</h6>
        <p class="small text-muted">Unggah file CSV atau XLSX sesuai template untuk memasukkan nilai secara massal.</p>
        <div class="row g-2">
            <div class="col-auto">
                <form method="POST" action="{{ route(request()->is('guru/*') ? 'guru.penilaian.intrakulikuler.import' : 'admin.penilaian.intrakulikuler.import') }}" enctype="multipart/form-data">
                    @csrf
                    <div class="input-group input-group-sm">
                        <input type="file" name="file" accept=".csv" class="form-control form-control-sm" required />
                        <button class="btn btn-sm btn-success" type="submit">Import CSV</button>
                    </div>
                </form>
            </div>
            <div class="col-auto">
                <form method="POST" action="{{ route(request()->is('guru/*') ? 'guru.penilaian.intrakulikuler.import.xlsx' : 'admin.penilaian.intrakulikuler.import.xlsx') }}" enctype="multipart/form-data">
                    @csrf
                    <div class="input-group input-group-sm">
                        <input type="file" name="file" accept=".xlsx,.xls" class="form-control form-control-sm" required />
                        <button class="btn btn-sm btn-success" type="submit">Import XLSX</button>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
