| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 18 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 0 | 
| CRAP Score | 2 | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 19 | public function boot()  | 
            ||
| 20 |     { | 
            ||
| 21 |         view()->composer(['layouts.master'], function ($view) { | 
            ||
| 22 |             $view->with('app_name', Setting::get('app_name', 'SET')); | 
            ||
| 23 | });  | 
            ||
| 24 | |||
| 25 | // Pass the logged in user's full name to the layouts._header view.  | 
            ||
| 26 |         view()->composer(['layouts._navbar', 'home._last_login'], function ($view) { | 
            ||
| 27 |             $view->with('logged_in_user', Auth::user()); | 
            ||
| 28 |             $view->with('duties', Duty::all()); | 
            ||
| 29 |             $view->with('trainingTypes', TrainingType::where('status', '1') | 
            ||
| 30 |                     ->select('id', 'name')->orderBy('name')->get()); | 
            ||
| 31 |             $view->with('userStatus', User::distinct()->orderBy('status')->get(['status'])); | 
            ||
| 32 | });  | 
            ||
| 33 | |||
| 34 | // Pass our action items if we have the sidebar.  | 
            ||
| 35 |         view()->composer('layouts._sidebar_action_items', 'SET\Http\ViewComposers\ActionItemsComposer'); | 
            ||
| 36 | }  | 
            ||
| 37 | |||
| 48 |