@extends('layouts.adminpanel') @section('title') Admin Panel - Subjects @endsection @section('admin_content')
@if ($subjects->count() > 0)
All subjects: ({{ $subjects->count() }})
@foreach ($subjects as $subject) @endforeach
ID Name Type User id Room id Creation date
{{ $subject->id }} {{ $subject->name }} {{ $subject->type }} {{ $subject->user_id}} {{ $subject->room_id}} {{ $subject->created_at }} Delete
@else

No subjects yet.

@endif
@endsection