|
163 | 163 | </form> |
164 | 164 | @endif |
165 | 165 | </div> |
| 166 | + <div> |
| 167 | + <br><br> |
| 168 | + </div> |
| 169 | + <div> |
| 170 | + <table class="table striped row-hover cell-border" |
| 171 | + data-role="table" |
| 172 | + data-show-search="false" |
| 173 | + data-show-pagination="false" |
| 174 | + data-show-rows-steps="false" |
| 175 | + > |
| 176 | + <thead> |
| 177 | + <tr class="row-hover"> |
| 178 | + <th class="sortable-column sort-asc" width="65%">{{ trans("cruds.welcome.controls") }}</th> |
| 179 | + <th class="sortable-column sort-asc" width="65%">{{ trans("cruds.control.fields.scope") }}</th> |
| 180 | + <th class="sortable-column sort-asc" width="5%">{{ trans("cruds.control.fields.score") }}</th> |
| 181 | + <th class="sortable-column sort-asc" width="15%">{{ trans("cruds.control.fields.plan_date") }}</th> |
| 182 | + <th class="sortable-column sort-asc" width="15%">{{ trans("cruds.control.fields.realisation_date") }}</th> |
| 183 | + </tr> |
| 184 | + </thead> |
| 185 | + <tbody> |
| 186 | + @foreach($controls as $control) |
| 187 | + <tr> |
| 188 | + <td> |
| 189 | + {{ $control->name }} |
| 190 | + </td> |
| 191 | + <td> |
| 192 | + <a id="{{ $control->scope }}" href="/bob/show/{{$control->id}}"> |
| 193 | + {{ $control->scope }} |
| 194 | + </a> |
| 195 | + </td> |
| 196 | + <td> |
| 197 | + <center id="{{ $control->score }}"> |
| 198 | + @if ($control->score==1) |
| 199 | + 😡 |
| 200 | + @elseif ($control->score==2) |
| 201 | + 😐 |
| 202 | + @elseif ($control->score==3) |
| 203 | + <span style="filter: sepia(1) saturate(5) hue-rotate(70deg)">😀</span> |
| 204 | + @else |
| 205 | + ○ <!-- ⚫ --> |
| 206 | + @endif |
| 207 | + </center> |
| 208 | + </td> |
| 209 | + <td> |
| 210 | + <!-- format in red when month passed --> |
| 211 | + @if (($control->status === 0)||($control->status === 1)) |
| 212 | + <a id="{{ $control->plan_date }}" href="/bob/show/{{$control->id}}"> |
| 213 | + <b> @if (today()->lte($control->plan_date)) |
| 214 | + <font color="green">{{ $control->plan_date }}</font> |
| 215 | + @else |
| 216 | + <font color="red">{{ $control->plan_date }}</font> |
| 217 | + @endif |
| 218 | + </b> |
| 219 | + </a> |
| 220 | + @else |
| 221 | + {{ $control->plan_date }} |
| 222 | + @endif |
| 223 | + </td> |
| 224 | + <td> |
| 225 | + <b id="{{ $control->realisation_date }}"> |
| 226 | + <a href="/bob/show/{{$control->id}}"> |
| 227 | + {{ $control->realisation_date }} |
| 228 | + </a> |
| 229 | + @if ( ($control->status===1 )&& ((Auth::User()->role===1)||(Auth::User()->role===2))) |
| 230 | + |
| 231 | + <a href="/bob/make/{{ $control->id }}">⌛</a> |
| 232 | + @endif |
| 233 | + </b> |
| 234 | + </td> |
| 235 | + </tr> |
| 236 | + @endforeach |
| 237 | + </tbody> |
| 238 | + </table> |
| 239 | + </div> |
| 240 | + <div> |
| 241 | + <br><br> |
| 242 | + </div> |
166 | 243 | </div> |
167 | 244 | </div> |
168 | 245 | @endsection |
0 commit comments