@extends('admin.layout')

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

@section('content')
    <div class="card">
        <div class="card-header bg-success text-white">
            <h5 class="mb-0">Detail Pengguna</h5>
            <small class="text-white-50">Informasi lengkap pengguna</small>
        </div>
        <div class="card-body">
            <dl class="row">
                <dt class="col-sm-3">Name</dt>
                <dd class="col-sm-9">{{ $user->name ?? '-' }}</dd>

                <dt class="col-sm-3">Email</dt>
                <dd class="col-sm-9">{{ $user->email ?? '-' }}</dd>

                <dt class="col-sm-3">Role</dt>
                <dd class="col-sm-9">{{ $user->role ?? '-' }}</dd>
            </dl>

            <a href="{{ url('admin/users') }}" class="btn btn-secondary">Kembali</a>
            <a href="{{ url('admin/users/'.$user->id.'/edit') }}" class="btn btn-primary">Edit</a>
        </div>
    </div>
@endsection
