|
744 | 744 | <div class="row">
|
745 | 745 | <div class="col">
|
746 | 746 | <h5 class="card-title text-uppercase text-muted mb-0 text-white">Attendance</h5>
|
747 |
| - <span class="h2 font-weight-bold mb-0 text-white">8/10</span> |
| 747 | + <span class="h2 font-weight-bold mb-0 text-white">{{$present}}/{{$total}}</span> |
748 | 748 | </div>
|
749 | 749 | <div class="col-auto">
|
750 | 750 | <div class="icon icon-shape bg-white text-dark rounded-circle shadow">
|
|
753 | 753 | </div>
|
754 | 754 | </div>
|
755 | 755 | <p class="mt-3 mb-0 text-sm">
|
756 |
| - <span class="text-white mr-2">80.00%</span> |
| 756 | + <span class="text-white mr-2">{{$present*100/$total}}%</span> |
757 | 757 | <span class="text-nowrap text-light">Required 75%</span>
|
758 | 758 | </p>
|
759 | 759 | </div>
|
|
900 | 900 | </tr>
|
901 | 901 | </thead>
|
902 | 902 | <tbody>
|
| 903 | + @foreach($markedAttendances as $att) |
| 904 | + @if($att->present) |
903 | 905 | <tr class="table-success">
|
904 |
| - <th> |
905 |
| - <div class="custom-control custom-checkbox"> |
906 |
| - <input class="custom-control-input" id="table-check-all" type="checkbox"> |
907 |
| - <label class="custom-control-label" for="table-check-all"></label> |
908 |
| - </div> |
909 |
| - </th> |
910 |
| - <td class="table-user"> |
911 |
| - <b>abhishek</b> |
912 |
| - </td> |
913 |
| - <td> |
914 |
| - <span class="text-muted">10/09/2018</span> |
915 |
| - </td> |
916 |
| - <td> |
917 |
| - <a href="#!" class="font-weight-bold">None</a> |
918 |
| - </td> |
919 |
| - <td> |
920 |
| - Present |
921 |
| - </td> |
922 |
| - </tr> |
923 |
| - <tr class="table-success"> |
924 |
| - <th> |
925 |
| - <div class="custom-control custom-checkbox"> |
926 |
| - <input class="custom-control-input" id="table-check-all" type="checkbox"> |
927 |
| - <label class="custom-control-label" for="table-check-all"></label> |
928 |
| - </div> |
929 |
| - </th> |
930 |
| - <td class="table-user"> |
931 |
| - <b>abhishek</b> |
932 |
| - </td> |
933 |
| - <td> |
934 |
| - <span class="text-muted">10/09/2018</span> |
935 |
| - </td> |
936 |
| - <td> |
937 |
| - <a href="#!" class="font-weight-bold">15 mins late</a> |
938 |
| - </td> |
939 |
| - <td> |
940 |
| - Present |
941 |
| - </td> |
942 |
| - </tr> |
| 906 | + @else |
943 | 907 | <tr class="table-warning">
|
| 908 | + @endif |
944 | 909 | <th>
|
945 | 910 | <div class="custom-control custom-checkbox">
|
946 | 911 | <input class="custom-control-input" id="table-check-all" type="checkbox">
|
947 | 912 | <label class="custom-control-label" for="table-check-all"></label>
|
948 | 913 | </div>
|
949 | 914 | </th>
|
950 | 915 | <td class="table-user">
|
951 |
| - <b>abhishek</b> |
| 916 | + <b>{{$att->taker}}</b> |
952 | 917 | </td>
|
953 | 918 | <td>
|
954 |
| - <span class="text-muted">10/09/2018</span> |
| 919 | + <span class="text-muted">{{$att->date}}</span> |
955 | 920 | </td>
|
956 | 921 | <td>
|
957 | 922 | <a href="#!" class="font-weight-bold">None</a>
|
958 | 923 | </td>
|
959 | 924 | <td>
|
960 |
| - Absent |
| 925 | + @if($att->present)Present @else Absent @endif |
961 | 926 | </td>
|
962 | 927 | </tr>
|
963 |
| - <tr class="table-success"> |
964 |
| - <th> |
965 |
| - <div class="custom-control custom-checkbox"> |
966 |
| - <input class="custom-control-input" id="table-check-all" type="checkbox"> |
967 |
| - <label class="custom-control-label" for="table-check-all"></label> |
968 |
| - </div> |
969 |
| - </th> |
970 |
| - <td class="table-user"> |
971 |
| - <b>abhishek</b> |
972 |
| - </td> |
973 |
| - <td> |
974 |
| - <span class="text-muted">10/09/2018</span> |
975 |
| - </td> |
976 |
| - <td> |
977 |
| - <a href="#!" class="font-weight-bold">None</a> |
978 |
| - </td> |
979 |
| - <td> |
980 |
| - Present |
981 |
| - </td> |
982 |
| - </tr> |
| 928 | + @endforeach |
983 | 929 | </tbody>
|
984 | 930 | </table>
|
985 | 931 | </div>
|
|
0 commit comments