<?php 
  include '_header.php';
  include '_nav.php';
  include '_sidebar.php'; 
?>

<div class="content-wrapper">
    <section class="content-header">
        <div class="container-fluid">
            <div class="row mb-2">
                <div class="col-sm-6">
                    <h1>Import Laporan Service</h1>
                </div>
            </div>
        </div>
    </section>

    <section class="content">
        <div class="container-fluid">
            <div class="row">
                <div class="col-md-12">
                    <div class="callout callout-warning">
                        <h5><i class="fas fa-exclamation-triangle"></i> Penting:</h5>
                        <p>Simpan file Excel Anda sebagai <b>.CSV (Comma Separated Values)</b> sebelum diupload. Pastikan urutan kolom sesuai dengan template.</p>
                    </div>

                    <div class="card card-success">
                        <div class="card-header">
                            <h3 class="card-title">Upload File CSV</h3>
                        </div>
                        
                        <form action="data-backup-db/proses-import" method="POST" enctype="multipart/form-data">
                            <div class="card-body">
                                <div class="form-group">
                                    <label for="file_csv">Pilih File CSV</label>
                                    <input type="file" name="file_csv" class="form-control" accept=".csv" required>
                                </div>
                            </div>
                            <div class="card-footer">
                                <button type="submit" name="import" class="btn btn-success">Mulai Import Data</button>
                                <a href="data-service.php" class="btn btn-default">Kembali</a>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </section>
</div>

<?php include '_footer.php'; ?>