@extends('layouts.master')

@section('content')
    <div class="card">
        <div class="card-header"><h1>Subject Details</h1></div>
        <div class="card-body">
            <ul>
                <li><strong>ID:</strong> {{ $subject->id }}</li>
                <li><strong>Name:</strong> {{ $subject->subject_name }}</li>
                <li><strong>Short Name:</strong> {{ $subject->short_name }}</li>
                <li><strong>Code:</strong> {{ $subject->subject_code }}</li>
                <li><strong>Is Optional:</strong> {{ $subject->is_optional ? 'Yes' : 'No' }}</li>
            </ul>
            <a href="{{ route('subjects.index') }}" class="btn btn-primary">Back</a>
        </div>
    </div>
@endsection
