@extends('layouts.app')

@section('title', 'Students Archive | Institution Axis')

@section('sidebar-menu')
    @include('schooladmin.partials.sidebar')
@endsection

@section('sidebar-footer')
    <p>{{ auth()->user()->school?->name ?? 'Institution Axis' }}</p>
@endsection

@section('breadcrumb')
    <span><a href="{{ route('schooladmin.dashboard') }}">Home</a></span> / <span class="active-page">Students</span>
@endsection

@section('content')
    <div class="card shadow-sm rounded-4 border-0">
        <div class="card-header bg-white d-flex justify-content-between align-items-center">
            <h5><i class="fas fa-users text-primary"></i> Students Roster</h5>
            <div>
                <a href="{{ route('schooladmin.students.create') }}" class="btn btn-primary btn-sm"><i class="fas fa-plus"></i> New Student</a>
            </div>
        </div>
        <div class="card-body p-0">
            <div class="table-responsive">
                <table class="table table-hover mb-0">
                    <thead class="table-light">
                        <tr>
                            <th>Adm No.</th>
                            <th>Name</th>
                            <th>Class/Stream</th>
                            <th>Gender</th>
                            <th>Parent Phone</th>
                            <th>Actions</th>
                        </tr>
                    </thead>
                    <tbody>
                        {{-- To be populated via controller --}}
                        <tr>
                            <td colspan="6" class="text-center text-muted py-4">No students available. Create to begin.</td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
@endsection
