File tree Expand file tree Collapse file tree 2 files changed +13
-21
lines changed
Expand file tree Collapse file tree 2 files changed +13
-21
lines changed Original file line number Diff line number Diff line change @@ -278,7 +278,7 @@ public function edit(int $id)
278278 );
279279
280280 // Get the action
281- $ action = Action::find ($ id );
281+ $ action = Action::query ()-> find ($ id );
282282
283283 // Control not found
284284 abort_if ($ action === null , Response::HTTP_NOT_FOUND , '404 Not Found ' );
Original file line number Diff line number Diff line change 103103 </b >
104104 </td >
105105 <td >
106- <p id =" {{ $action -> type } }" >
107- @if ($action -> type == 1 )
108- <p class =" fg-red text-bold" >
109- {{ trans (' cruds.action.types.major' ) } }
110- </p >
111- @elseif ($action -> type == 2 )
112- <p class =" fg-orange text-bold" >
113- {{ trans (' cruds.action.types.minor' ) } }
114- </p >
115- @elseif ($action -> type == 3 )
116- <p class =" fg-yellow text-bold" >
117- {{ trans (' cruds.action.types.observation' ) } }
118- </p >
119- @elseif ($action -> type == 4 )
120- <p class =" fg-green text-bold" >
121- {{ trans (' cruds.action.types.opportunity' ) } }
122- </p >
123- @endif
124- </p >
125- </td >
106+ <center >
107+ @if ($action -> type == 1 )
108+ <span class =" mif-warning fg-red" style =" font-size : 1.5rem ;" title =" {{ trans (' cruds.action.types.major' ) } }" ></span >
109+ @elseif ($action -> type == 2 )
110+ <span class =" mif-warning fg-orange" style =" font-size : 1.5rem ;" title =" {{ trans (' cruds.action.types.minor' ) } }" ></span >
111+ @elseif ($action -> type == 3 )
112+ <span class =" mif-eye fg-dark-gray" style =" font-size : 1.5rem ;" title =" {{ trans (' cruds.action.types.observation' ) } }" ></span >
113+ @elseif ($action -> type == 4 )
114+ <span class =" mif-thumbs-up fg-green" style =" font-size : 1.5rem ;" title =" {{ trans (' cruds.action.types.opportunity' ) } }" ></span >
115+ @endif
116+ </td >
117+ </center >
126118 <td id =" {{ $action -> status } }" >
127119 @if ($action -> status == 0 )
128120 {{ trans (' cruds.action.fields.status_open' ) } }
You can’t perform that action at this time.
0 commit comments