2019-12-20 01:11:51 +01:00
|
|
|
@extends('layouts.app')
|
2019-12-13 23:28:16 +01:00
|
|
|
|
|
|
|
@section('title') Podgląd sali @endsection
|
2019-12-20 01:11:51 +01:00
|
|
|
@section('additional_meta')
|
|
|
|
<script type="text/javascript" src="{{ asset('js/map/jquery.seat-charts.js') }}"></script>
|
2019-12-13 23:28:16 +01:00
|
|
|
<script type="text/javascript" src="{{ asset('js/map/seatchart.js') }}"></script>
|
|
|
|
<script type="text/javascript" src="{{ asset('js/map/seatchart-preview.js') }}"></script>
|
2019-12-20 01:11:51 +01:00
|
|
|
|
|
|
|
<link rel="stylesheet" type="text/css" href="{{ asset('css/map/jquery.seat-charts.css') }}">
|
|
|
|
<link rel="stylesheet" type="text/css" href="{{ asset('css/map/seatchart-preview.css') }}">
|
2019-12-13 23:28:16 +01:00
|
|
|
@endsection
|
|
|
|
|
2019-12-20 01:11:51 +01:00
|
|
|
@section('content')
|
|
|
|
<div class="front-indicator">
|
2019-12-14 22:03:41 +01:00
|
|
|
<div class="preview-box checkout-button-preview">
|
|
|
|
<a href="{{ route('user_classes') }}" class="checkout-button"> Zakończ podgląd </a>
|
|
|
|
</div>
|
2019-12-20 01:11:51 +01:00
|
|
|
<div class="seat-p-preview">
|
2019-12-14 22:03:41 +01:00
|
|
|
<p class="seat-p">
|
|
|
|
{{ App\Subject::find(App\Classes::find($classes_id)->subject_id)->name }},
|
|
|
|
{{ App\Subject::find(App\Classes::find($classes_id)->subject_id)->weekday }}
|
|
|
|
{{ App\Classes::find($classes_id)->date }} {{ App\Subject::find(App\Classes::find($classes_id)->subject_id)->time }},
|
|
|
|
<b>sala {{ App\Room::find(App\Subject::find(App\Classes::find($classes_id)->subject_id)->room_id)->name }}</b>
|
2019-12-20 15:46:32 +01:00
|
|
|
@if(App\Classes::find($classes_id)->test_mode)
|
|
|
|
<span class="badge badge-warning" title="Zajęcia w trybie egzaminu"> Egzamin </span>
|
|
|
|
@endif
|
2019-12-14 22:03:41 +01:00
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
|
2019-12-13 23:28:16 +01:00
|
|
|
</div>
|
|
|
|
<div class="preview-page-content">
|
|
|
|
<div class="preview-attendance-table">
|
|
|
|
<div class="card-header custom-header">
|
2019-12-20 14:09:16 +01:00
|
|
|
<h4> Lista obecności <span class="badge badge-secondary"> {{ $attendances->count() }} </span></h4>
|
|
|
|
<a href="{{ route('user_export', [$classes_id]) }}" class="btn btn-success btn-export" title="Wyeksportuj tabelę do xlsx"> <i class="fa fa-file-excel-o"></i> Wyeksportuj (.xlsx) </a>
|
2019-12-13 23:28:16 +01:00
|
|
|
</div>
|
2019-12-19 00:10:39 +01:00
|
|
|
<div class="card-body card-custom">
|
|
|
|
<span class="sort-span"> Sortuj: </span>
|
|
|
|
<input type="hidden" id="orderBy-hidden" value="{{ $orderBy }}">
|
|
|
|
<input type="hidden" id="orderDirection-hidden" value="{{ $orderDirection }}">
|
|
|
|
<select id="sort-select" class="form-control form-custom" name="sort-select">
|
|
|
|
<option value="{{ route('user_preview_classes', ['classes_id' => $classes_id, 'orderBy' => 'student_surname', 'orderDirection' => 'ASC']) }}">po nazwisku A-Z</option>
|
|
|
|
<option value="{{ route('user_preview_classes', ['classes_id' => $classes_id, 'orderBy' => 'student_surname', 'orderDirection' => 'DESC']) }}">po nazwisku Z-A</option>
|
|
|
|
<option value="{{ route('user_preview_classes', ['classes_id' => $classes_id, 'orderBy' => 'student_id_number', 'orderDirection' => 'ASC']) }}">po numerze indeksu rosnąco</option>
|
|
|
|
<option value="{{ route('user_preview_classes', ['classes_id' => $classes_id, 'orderBy' => 'student_id_number', 'orderDirection' => 'DESC']) }}">po numerze indeksu malejąco</option>
|
|
|
|
<option value="{{ route('user_preview_classes', ['classes_id' => $classes_id, 'orderBy' => 'seat_number', 'orderDirection' => 'ASC']) }}">po numerze miejsca rosnąco</option>
|
|
|
|
<option value="{{ route('user_preview_classes', ['classes_id' => $classes_id, 'orderBy' => 'seat_number', 'orderDirection' => 'DESC']) }}">po numerze miejsca malejąco</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
2019-12-20 14:09:16 +01:00
|
|
|
<div class="table-responsive">
|
|
|
|
@include('user.attendances_table_preview', ['attendances' => $attendances, 'export' => 0])
|
|
|
|
</div>
|
2019-12-13 23:28:16 +01:00
|
|
|
</div>
|
|
|
|
<div class="seat-chart-wrapper">
|
2019-12-20 23:21:31 +01:00
|
|
|
@if($multi_parts)
|
2019-12-19 15:23:49 +01:00
|
|
|
<div id="map-carousel" class="carousel slide" data-ride="carousel" data-interval="false" data-wrap="false">
|
2019-12-20 23:21:31 +01:00
|
|
|
<div class="carousel-inner" id="multi_parts-map">
|
|
|
|
<input type="hidden" id="multi_parts_number" value="{{ $parts_number }}">
|
|
|
|
@foreach(range(0, $parts_number-1) as $index)
|
|
|
|
@if($index == 0)
|
|
|
|
<div class="carousel-item active">
|
|
|
|
<div id="seat-map-{{ $index }}"></div>
|
|
|
|
</div>
|
|
|
|
@else
|
|
|
|
<div class="carousel-item">
|
|
|
|
<div id="seat-map-{{ $index }}"></div>
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
@endforeach
|
2019-12-19 15:23:49 +01:00
|
|
|
</div>
|
|
|
|
<a class="carousel-control-prev" href="#map-carousel" role="button" data-slide="prev">
|
|
|
|
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
|
|
|
|
<span class="sr-only">Pierwsza część</span>
|
|
|
|
</a>
|
|
|
|
<a class="carousel-control-next" href="#map-carousel" role="button" data-slide="next">
|
|
|
|
<span class="carousel-control-next-icon" aria-hidden="true"></span>
|
|
|
|
<span class="sr-only">Druga część</span>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
@else
|
|
|
|
<div id="seat-map"></div>
|
|
|
|
@endif
|
2019-12-13 23:28:16 +01:00
|
|
|
</div>
|
2019-12-19 15:23:49 +01:00
|
|
|
<input type="hidden" class="room_arrangement" name="room_arrangement" id="room_arrangement" value="{{ $room_arrangement }}">
|
2019-12-20 23:21:31 +01:00
|
|
|
<input type="hidden" class="multi_parts" name="multi_parts" id="multi_parts" value="{{ $multi_parts }}">
|
2019-12-19 15:23:49 +01:00
|
|
|
@foreach($seat_numbers as $seat_number)
|
2019-12-14 22:03:41 +01:00
|
|
|
<input type="hidden" class="unavailable_place" value="{{ $seat_number }}">
|
|
|
|
@endforeach
|
2019-12-13 23:28:16 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
@endsection
|
|
|
|
|