@extends('layouts.adminpanel') @section('title') Panel admina - Zajęcia @endsection @section('admin_content')
Dodaj zajęcia
@csrf
@error('subject_id') {{ $message }} @enderror
@error('date') {{ $message }} @enderror
@if ($classes->count() > 0)
Wszystkie zajęcia: ({{ $classes->count() }})
@foreach ($classes as $classes_item) @endforeach
ID ID przedmoitu Nazwa przedmiotu Data
{{ $classes_item->id }} {{ $classes_item->subject_id }} {{ App\Subject::find($classes_item->subject_id)->name }}, {{ App\Subject::find($classes_item->subject_id)->type }}, {{ App\Subject::find($classes_item->subject_id)->weekday }} {{ App\Subject::find($classes_item->subject_id)->time }} {{ $classes_item->date }} Usuń Edytuj
@else

Brak zajęć.

@endif
@endsection