@extends('layouts.admin')

@section('content')
<div class="container mt-4">
    <h2 class="mb-4">Result Details</h2>

    <div class="card">
        <div class="card-body">
            <p><strong>Registration Number:</strong> {{ $result->registration_number }}</p>
            <p><strong>Course Code:</strong> {{ $result->course_code }}</p>
            <p><strong>Mark:</strong> {{ $result->mark }}</p>
            <p><strong>Grade:</strong> {{ $result->grade ?? 'N/A' }}</p>
            <p><strong>Decision:</strong> {{ $result->decision ?? 'N/A' }}</p>
        </div>
    </div>

    <div class="mt-3">
        <a href="{{ route('admin.results.edit', $result->id) }}" class="btn btn-primary">Edit</a>
        <a href="{{ route('admin.results.index') }}" class="btn btn-secondary">Back</a>
    </div>
</div>
@endsection
