diff --git a/app/User.php b/app/User.php index ce444799..29ba6511 100644 --- a/app/User.php +++ b/app/User.php @@ -80,9 +80,12 @@ class User extends Authenticatable $filterCourse = collect(); foreach (\Auth::user()->courses as $course) { - if(date('U',strtotime($course->event->date_begin)) >= date('U')) + if($course->event) { - $filterCourse->push($course); + if(date('U',strtotime($course->event->date_begin)) >= date('U')) + { + $filterCourse->push($course); + } } } return $filterCourse; diff --git a/public/css/custom.css b/public/css/custom.css index 885c2533..f595d6ba 100644 --- a/public/css/custom.css +++ b/public/css/custom.css @@ -1,3 +1,12 @@ +.word-wrap { + white-space: normal; + word-break: break-word; +} + +.container-fluid { + padding: 0px; +} + .calendar { margin-top: 50px; } @@ -159,6 +168,8 @@ .modal-lg { max-width: 85%; + margin-left: auto !important; + margin-right: auto !important; } /*! diff --git a/resources/custom.css b/resources/custom.css index 885c2533..f595d6ba 100644 --- a/resources/custom.css +++ b/resources/custom.css @@ -1,3 +1,12 @@ +.word-wrap { + white-space: normal; + word-break: break-word; +} + +.container-fluid { + padding: 0px; +} + .calendar { margin-top: 50px; } @@ -159,6 +168,8 @@ .modal-lg { max-width: 85%; + margin-left: auto !important; + margin-right: auto !important; } /*! diff --git a/resources/views/admin/dashboard.blade.php b/resources/views/admin/dashboard.blade.php index 7a200289..bf005fde 100644 --- a/resources/views/admin/dashboard.blade.php +++ b/resources/views/admin/dashboard.blade.php @@ -3,14 +3,14 @@ @section('content')
-
+

Cours à venir

- @if(\Auth::user()->courses->isEmpty()) + @if(\Auth::user()->futureCourses()->isEmpty())

Aucun cours à venir

@@ -33,7 +33,7 @@
-
+

Activité à venir

@@ -44,24 +44,25 @@

Aucune activité à venir

- @endif - @foreach ($futureEvent as $event) -
-
-
-
-

{!! \App\ComplementaryActivity::find($event->type)->calendar_icon !!}

-
-
- {{$event->name}} -
-
- {{$event->date_begin}} + @else + @foreach ($futureEvent as $event) +
+
+
+
+

{!! \App\ComplementaryActivity::find($event->type)->calendar_icon !!}

+
+
+ {{$event->name}} +
+
+ {{$event->date_begin}} +
-
- @endforeach + @endforeach + @endif

Afficher plus @@ -70,7 +71,7 @@
-
+ -
+

Nouvelles

@@ -115,7 +116,7 @@
@if(\Auth::user()->p('stats_see') == 1) -
+

Activité sur le site

diff --git a/resources/views/admin/inventory/index.blade.php b/resources/views/admin/inventory/index.blade.php index 85c04297..e3a3b61c 100644 --- a/resources/views/admin/inventory/index.blade.php +++ b/resources/views/admin/inventory/index.blade.php @@ -14,7 +14,7 @@ @endif

- +
diff --git a/resources/views/admin/itemcategory/index.blade.php b/resources/views/admin/itemcategory/index.blade.php index cb6f1f4d..4ef16ab4 100644 --- a/resources/views/admin/itemcategory/index.blade.php +++ b/resources/views/admin/itemcategory/index.blade.php @@ -15,7 +15,7 @@
-
#
+
diff --git a/resources/views/admin/log/display.blade.php b/resources/views/admin/log/display.blade.php index b82e7849..018482eb 100644 --- a/resources/views/admin/log/display.blade.php +++ b/resources/views/admin/log/display.blade.php @@ -8,8 +8,8 @@
-
-
ID
+
+
diff --git a/resources/views/admin/user/index.blade.php b/resources/views/admin/user/index.blade.php index 2a30f0c0..e82734ea 100644 --- a/resources/views/admin/user/index.blade.php +++ b/resources/views/admin/user/index.blade.php @@ -7,7 +7,7 @@

Liste des utilisateurs

-
Horodatage
+
diff --git a/resources/views/layouts/modal/schedule/show.blade.php b/resources/views/layouts/modal/schedule/show.blade.php index fd42ed55..47401db3 100644 --- a/resources/views/layouts/modal/schedule/show.blade.php +++ b/resources/views/layouts/modal/schedule/show.blade.php @@ -1,29 +1,27 @@ -
ID