@extends('layouts.app')

@section('content')
<h2>Add Sub Topic for {{ $topic->topic_name }}</h2>
<form method="POST" action="{{ route('admin.sub-topics.store', $topic->id) }}">
    @csrf
    <input type="text" name="name" placeholder="Sub-topic Name" required class="form-control mb-2">
    <textarea name="description" placeholder="Description" class="form-control mb-2"></textarea>
    <button type="submit" class="btn btn-success">Save</button>
</form>
@endsection
