blob: be76fa08a260ba5fb545644c83a4911a86897eeb (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
@extends('layouts.app')
@section('title', 'Add Group - Teacher Journal')
@push('styles')
<link rel="stylesheet" href="{{ asset('css/groups.css') }}">
@endpush
@section('content')
<a href="{{ route('groups.index') }}">Back to Groups</a>
<h5>Add New Group</h5>
<form action="{{ route('groups.store') }}" method="POST">
@csrf
<label for="name">Group Name</label>
<input type="text" name="name" id="name" required placeholder="Enter group name">
<label for="teacher_id">Teacher</label>
<select name="teacher_id" id="teacher_id" required>
<option value="">Select a teacher</option>
@foreach($teachers as $id => $name)
<option value="{{ $id }}">{{ $name }}</option>
@endforeach
</select>
<button type="submit">Save Group</button>
<a href="{{ route('groups.index') }}">Cancel</a>
</form>
@endsection
|