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')
| # | 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 @@
|---|
| ID | 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 @@
|---|
| Horodatage | 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 @@
|---|
| ID | 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 @@
|---|