@extends('home')
@section('title') Mój Panel - Obecności @endsection
@section('user_content')
@if ($attendances->count() > 0)
Grupuj:
@foreach ($attendances_grouped as $attendances_group_name => $attendances_list)
@if($attendances_group_name)
@if($grouped_by == 'classes_id')
{{ App\Subject::find(App\Classes::find($attendances_group_name)->subject_id)->name }},
{{ App\Classes::find($attendances_group_name)-> date }} {{ App\Subject::find(App\Classes::find($attendances_group_name)->subject_id)->time }}
({{ $attendances_list->count() }})
@else
{{ $attendances_group_name }} ({{ $attendances_list->count() }})
@endif
@else
Inne ({{ $attendances_list->count() }})
@endif
@include('user.attendances_table', ['attendances_list' => $attendances_list, 'export' => 0])
@endforeach
@else
Brak zarejestrowantch obecności.
@endif
@endsection