@extends('home') @section('title') Mój Panel - Przedmioty @endsection @section('user_content')

Moje przedmioty {{ $subjects->count() }}

Dodaj nowy przedmiot
@csrf
@error('name') {{ $message }} @enderror
@error('weekday') {{ $message }} @enderror
@error('time') {{ $message }} @enderror
@error('room_id') {{ $message }} @enderror
@error('user_id') {{ $message }} @enderror
@if ($subjects->count() > 0)
Grupuj:
@foreach ($subjects_grouped as $subject_group_name => $subjects_list) @if($subject_group_name) @if($grouped_by == 'room_id')
{{ App\Room::find($subject_group_name)->name }} {{ $subjects_list->count() }}
@else
{{ $subject_group_name }} {{ $subjects_list->count() }}
@endif @else
Inne {{ $subjects_list->count() }}
@endif
@foreach ($subjects_list as $subject) @include('user.delete_confirmation_subject', [$subject]) @endforeach
Nazwa Dzień tygodnia Godzina Prowadzący Sala
{{ $subject->name }} {{ $subject->weekday }} {{ $subject->time }} {{ App\User::find($subject->user_id)->name }} {{ App\User::find($subject->user_id)->surname }} {{ App\Room::find($subject->room_id)->name }} Edytuj
@endforeach
@else

Brak przedmiotów.

@endif
@endsection