@extends(backpack_view('blank')) @php $widgets['before_content'][] = [ 'type' => 'jumbotron', 'heading' => "Bonjour " . ucfirst(optional(auth()->user()->profile)->first_name) . " !", 'content' => fragments_dashboard_welcome(), //'button_link' => backpack_url('logout'), //'button_text' => trans('backpack::base.logout'), ]; if (!App::environment('production') || isSuper()) { //$user = auth()->user(); //$widgets['before_content'][] = [ //'type' => 'div', //'class'=>'row debug', //'content' => [ // ['type' => 'card', 'content'=>['header' => 'Roles', 'body' => auth()->user()->getRoleNames()]], //['type' => 'card', 'content'=>['header' => 'permissions', 'body' => auth()->user()->getAllPermissions()->pluck('name')->join('
')]], //['type' => 'card', 'content'=>['header' => 'Base', 'body' => join('
', [$user->id, $user->fullname, $user->username, $user->email])]], //['type' => 'card', 'content'=>['header' => 'etablissement', 'body' => $user->etablissements->pluck('name')]], //['type' => 'card', 'content'=>['header' => '', 'body' => '']], //], //]; } @endphp @section('content') @endsection