@extends('admin.layouts.app')

@section('title', 'Detail Guru')

@section('content')
<div class="container mt-5">
    <div class="row justify-content-center">
        <div class="col-md-8">
            <div class="card shadow-sm">
                <div class="card-header bg-info text-white">
                    <h4 class="mb-0">Detail Data Guru</h4>
                </div>
                <div class="card-body">
                    <table class="table table-borderless">
                        <tr>
                            <th width="30%">NIP</th>
                            <td>: {{ $guru->nip }}</td>
                        </tr>
                        <tr>
                            <th>Nama Lengkap</th>
                            <td>: {{ $guru->nama }}</td>
                        </tr>
                        <tr>
                            <th>Tanggal Dibuat</th>
                            <td>: {{ $guru->created_at->format('d F Y, H:i') }} WIB</td>
                        </tr>
                        <tr>
                            <th>Terakhir Update</th>
                            <td>: {{ $guru->updated_at->format('d F Y, H:i') }} WIB</td>
                        </tr>
                    </table>

                    <div class="d-flex justify-content-between mt-4">
                        <a href="{{ route('admin.guru.index') }}" class="btn btn-secondary">
                            <i class="bi bi-arrow-left"></i> Kembali
                        </a>
                        <div>
                            <a href="{{ route('admin.guru.edit', $guru->id_guru) }}" class="btn btn-warning text-white">
                                <i class="bi bi-pencil"></i> Edit Data
                            </a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
@endsection