From 0c29866387c62ac530e88605de4d1f585b3802b2 Mon Sep 17 00:00:00 2001 From: s416422 Date: Mon, 9 Dec 2019 12:54:57 +0100 Subject: [PATCH] favicon added, room name display fixed --- .../Controllers/User/UserClassesController.php | 2 +- public/img/favicon.png | Bin 0 -> 968 bytes resources/views/map/seat_map.blade.php | 4 +++- 3 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 public/img/favicon.png diff --git a/app/Http/Controllers/User/UserClassesController.php b/app/Http/Controllers/User/UserClassesController.php index 4e1448a..2cd9cb2 100644 --- a/app/Http/Controllers/User/UserClassesController.php +++ b/app/Http/Controllers/User/UserClassesController.php @@ -82,7 +82,7 @@ class UserClassesController extends Controller $subject = Subject::find($classes->subject_id); $room_arrangement = Room::find($subject->room_id)->arrangement; if(!$room_arrangement) { - $room_arrangement = Room::where('name', 'Inna sala')->get()->arrangement; + $room_arrangement = Room::where('name', 'Inna sala')->first()->arrangement; } return view('map.seat_map', ['student_name' => $student_name, 'student_surname' => $student_surname, 'student_id_number' => $student_id_number, 'classes_id' => $classes->id, 'seat_numbers' => $seat_numbers, 'room_arrangement' => $room_arrangement]); } diff --git a/public/img/favicon.png b/public/img/favicon.png new file mode 100644 index 0000000000000000000000000000000000000000..ad7fbcaab01d2bc84d2584e0bdf902fb591eaa37 GIT binary patch literal 968 zcmV;(12_DMP)N^<~k{_@W(C4@{TCf{dWmfeND3B+6P6!`lH>n zw7MAdtHXt|XPKy6ozCn`6II5o+y{s^$OKi5 zF1wdkcAuyJMu4V$Is9~{pV!~BjSaw&U0JyL{jA&BA-X)cV>TI6jePWlo%5XoEO^As zvri^cR&$n)O9NDwS}9nZ$Wv>77GAkigjB#7FY|4~JPtHo=FpdR@*hi}Zo>>=wx+M0 zBKPwADb&0;Z5ZI`1s2|@%w*NZwvfjV5+E(fASB&Zf05?zdnsR?M(K)F3SK^qvv=^e z0QtEI)K$-*_|-Gmx;_6-fwW`;O?z|L_JNJ&ANr_#KAqy_DHNRo1SY z%C3e#`257xu>sH%u34E%+2(fP`Xoyn8(+v^e$FIfVr4peJlt>x$eMXSe!t4GW~Ufd zS{Q#CA&)?B!8AeP=wy8?)$K&X4i0mc=Oa*JB+(OODJ8&WK( q_k1}WS
{{ 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 }}
+ {{ 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 }}, + sala {{ App\Room::find(App\Subject::find(App\Classes::find($classes_id)->subject_id)->room_id)->name }}