<?php
include '../includes/auth.php';

if($_SESSION['role']!='admin')
{
    die("Access Denied");
}

include '../includes/header.php';
include '../includes/navbar.php';
?>

<div class="container mt-4">

<div class="card shadow">

<div class="card-header bg-primary text-white">
Import School Master Data (CSV)
</div>

<div class="card-body">

<form action="import_csv.php"
      method="POST"
      enctype="multipart/form-data">

<div class="mb-3">

<label class="form-label">
Select CSV File
</label>

<input type="file"
       name="csv_file"
       accept=".csv"
       class="form-control"
       required>

</div>

<button type="submit"
        class="btn btn-success">

    Import Schools

</button>

</form>

</div>

</div>

</div>

<?php include '../includes/footer.php'; ?>