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

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

@if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
Dodaj nowy przedmiot
@csrf
@error('name') {{ $message }} @enderror
@error('weekday') {{ $message }} @enderror
@error('time') {{ $message }} @enderror
@error('room_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 Sala
{{ $subject->name }} {{ $subject->weekday }} {{ $subject->time }} {{ App\Room::find($subject->room_id)->name }}
@csrf
@error('name_e') {{ $message }} @enderror @error('weekday_e') {{ $message }} @enderror @error('time_e') {{ $message }} @enderror @error('room_id_e') {{ $message }} @enderror
@endforeach
@else

Brak przedmiotów.

@endif
@endsection