<!-- resources/views/contents/show.blade.php -->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>{{ $content->content_name }}</title>
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
    <link rel="stylesheet" href="{{ asset('css/app.css') }}"> <!-- Custom styles if any -->
</head>
<body>
    <div class="container mt-5">
        <h1 class="text-center">{{ $content->content_name }}</h1>
        
        <div class="card mb-4">
            <div class="card-body">
                <h5 class="card-title"><strong>Role:</strong> {{ $content->role }}</h5>
                <h6 class="card-subtitle mb-2 text-muted">Content:</h6>
                <div class="content-body">{!! $content->content !!}</div> <!-- Render HTML content safely -->
            </div>
        </div>

        <div class="text-center">
            <a href="{{ route('contents.index') }}" class="btn btn-primary">Back to Contents List</a>
        </div>
    </div>

    <script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js"></script>
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
</body>
</html>
