File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
templates/dashboard/components Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 2727$ show_course = $ show_course ?? false ;
2828$ attempt_number = $ attempt_number ?? null ;
2929$ attempts_count = $ attempts_count ?? 0 ;
30- $ badge = Badge::make ()->label ( 'Failed ' )->variant ( Variant:: CANCELLED )->rounded ();
30+ $ badge = Badge::make ()->label ( 'Failed ' )->variant ( Badge:: ERROR )->rounded ();
3131$ kebab_button = Button::make ()
3232 ->icon ( Icon::THREE_DOTS_VERTICAL )
3333 ->attr ( 'x-ref ' , 'trigger ' )
131131 if ( QuizModel::RESULT_PASS === $ attempt ['result ' ] ) {
132132 $ badge
133133 ->label ( __ ( 'Passed ' , 'tutor ' ) )
134- ->variant ( Variant:: COMPLETED )
134+ ->variant ( Badge:: SUCCESS )
135135 ->render ();
136136 } elseif ( QuizModel::RESULT_PENDING === $ attempt ['result ' ] ) {
137137 $ badge
138138 ->label ( __ ( 'Pending ' , 'tutor ' ) )
139- ->variant ( Variant:: PENDING )
139+ ->variant ( Badge:: WARNING )
140140 ->render ();
141141 } else {
142142 $ badge ->render ();
You can’t perform that action at this time.
0 commit comments