@extends('adminlte.layouts.app')

@section('content')
<div class="content-wrapper">

    {{-- HEADER --}}
    <div class="content-header">
        <div class="container-fluid">
            <div class="row mb-3">
                <div class="col-sm-6">
                    <h1 class="m-0 fw-bold text-gradient-info">
                        <i class="fas fa-user me-2"></i>Detail Siswa
                    </h1>
                </div>
                <div class="col-sm-6">
                    <ol class="breadcrumb float-sm-right">
                        <li class="breadcrumb-item">
                            <a href="{{ route('siswa.index') }}">Siswa</a>
                        </li>
                        <li class="breadcrumb-item active">Detail</li>
                    </ol>
                </div>
            </div>
        </div>
    </div>

    {{-- CONTENT --}}
    <section class="content">
        <div class="container-fluid">

            <div class="card shadow-xl rounded-3 border-0">
                <div class="card-header bg-gradient-info text-white py-3 px-4">
                    <h3 class="card-title m-0 fw-semibold">
                        <i class="fas fa-id-card me-1"></i> Informasi Data Siswa
                    </h3>
                </div>

                <div class="card-body px-4 py-4">

                    <table class="table table-bordered table-hover shadow-sm">
                        <tr>
                            <th width="30%">NIS</th>
                            <td>{{ $siswa->nis }}</td>
                        </tr>
                        <tr>
                            <th>Nama Lengkap</th>
                            <td>{{ $siswa->nama }}</td>
                        </tr>
                        <tr>
                            <th>Kelas</th>
                            <td>{{ $siswa->kelas }}</td>
                        </tr>
                        <tr>
                            <th>Alamat</th>
                            <td>{{ $siswa->alamat }}</td>
                        </tr>
                        <tr>
                            <th>No HP</th>
                            <td>{{ $siswa->no_hp }}</td>
                        </tr>
                    </table>

                    <div class="d-flex justify-content-between mt-4">
                        <a href="{{ route('siswa.index') }}"
                           class="btn btn-secondary shadow-sm hover-scale">
                            <i class="fas fa-arrow-left me-1"></i> Kembali
                        </a>

                        <a href="{{ route('siswa.edit', $siswa->id) }}"
                           class="btn btn-warning shadow-sm hover-scale">
                            <i class="fas fa-edit me-1"></i> Edit
                        </a>
                    </div>

                </div>
            </div>

        </div>
    </section>
</div>

<style>
.text-gradient-info {
    background: linear-gradient(90deg, #17ead9, #6078ea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hover-scale {
    transition: 0.2s;
}
.hover-scale:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
</style>
@endsection
