|
46 | 46 | <meta property="og:description" content="Start your development with a Dashboard for Bootstrap 4." />
|
47 | 47 | <meta property="og:site_name" content="Creative Tim" />
|
48 | 48 | <!-- Favicon -->
|
49 |
| - <link rel="icon" href="../../assets/img/brand/favicon.png" type="image/png"> |
| 49 | + <link rel="icon" href="/assets/img/brand/favicon.png" type="image/png"> |
50 | 50 | <!-- Fonts -->
|
51 | 51 | <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700">
|
52 | 52 | <!-- Icons -->
|
53 |
| - <link rel="stylesheet" href="../../assets/vendor/nucleo/css/nucleo.css" type="text/css"> |
54 |
| - <link rel="stylesheet" href="../../assets/vendor/%40fortawesome/fontawesome-free/css/all.min.css" type="text/css"> |
| 53 | + <link rel="stylesheet" href="/assets/vendor/nucleo/css/nucleo.css" type="text/css"> |
| 54 | + <link rel="stylesheet" href="/assets/vendor/%40fortawesome/fontawesome-free/css/all.min.css" type="text/css"> |
55 | 55 | <!-- Argon CSS -->
|
56 |
| - <link rel="stylesheet" href="../../assets/css/argon.min5438.css?v=1.2.0" type="text/css"> |
| 56 | + <link rel="stylesheet" href="/assets/css/argon.min5438.css?v=1.2.0" type="text/css"> |
57 | 57 | <!-- Google Tag Manager -->
|
58 | 58 | <script>
|
59 | 59 | (function(w, d, s, l, i) {
|
|
428 | 428 | <div class="row align-items-center">
|
429 | 429 | <div class="col-auto">
|
430 | 430 | <!-- Avatar -->
|
431 |
| - <img alt="Image placeholder" src="../../assets/img/theme/team-1.jpg" class="avatar rounded-circle"> |
| 431 | + <img alt="Image placeholder" src="/assets/img/theme/team-1.jpg" class="avatar rounded-circle"> |
432 | 432 | </div>
|
433 | 433 | <div class="col ml--2">
|
434 | 434 | <div class="d-flex justify-content-between align-items-center">
|
|
447 | 447 | <div class="row align-items-center">
|
448 | 448 | <div class="col-auto">
|
449 | 449 | <!-- Avatar -->
|
450 |
| - <img alt="Image placeholder" src="../../assets/img/theme/team-2.jpg" class="avatar rounded-circle"> |
| 450 | + <img alt="Image placeholder" src="/assets/img/theme/team-2.jpg" class="avatar rounded-circle"> |
451 | 451 | </div>
|
452 | 452 | <div class="col ml--2">
|
453 | 453 | <div class="d-flex justify-content-between align-items-center">
|
|
466 | 466 | <div class="row align-items-center">
|
467 | 467 | <div class="col-auto">
|
468 | 468 | <!-- Avatar -->
|
469 |
| - <img alt="Image placeholder" src="../../assets/img/theme/team-3.jpg" class="avatar rounded-circle"> |
| 469 | + <img alt="Image placeholder" src="/assets/img/theme/team-3.jpg" class="avatar rounded-circle"> |
470 | 470 | </div>
|
471 | 471 | <div class="col ml--2">
|
472 | 472 | <div class="d-flex justify-content-between align-items-center">
|
|
574 | 574 | <a class="nav-link pr-0" href="#" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
575 | 575 | <div class="media align-items-center">
|
576 | 576 | <span class="avatar avatar-sm rounded-circle">
|
577 |
| - <img alt="Image placeholder" src="../../assets/img/theme/team-4.jpg"> |
| 577 | + <img alt="Image placeholder" src="/assets/img/theme/team-4.jpg"> |
578 | 578 | </span>
|
579 | 579 | <div class="media-body ml-2 d-none d-lg-block">
|
580 | 580 | <span class="mb-0 text-sm font-weight-bold"> {{ Auth::user()->name }} </span>
|
|
647 | 647 | <div class="row">
|
648 | 648 | <div class="col">
|
649 | 649 | <div class="card">
|
| 650 | + <form id="att" method="post" action='<?php echo "/attendance/mark/".$cid."/".$gid;?>'> |
| 651 | + @csrf |
650 | 652 | <!-- Card header -->
|
651 | 653 | <div class="card-header border-0">
|
652 | 654 | <div class="row">
|
653 | 655 | <div class="col-6">
|
654 |
| - <h3 class="mb-0">Marking attendance for Class X</h3> |
| 656 | + <h3 class="mb-0">Marking attendance for Class {{$group->name}}</h3> |
655 | 657 | </div>
|
656 | 658 | <div class="col-6 text-right">
|
657 |
| - <input class="form-control" type="datetime-local" value="2018-11-23T10:30:00" id="example-datetime-local-input"> |
| 659 | + <input class="form-control" name="date" type="datetime-local" value="2018-11-23T10:30:00" id="example-datetime-local-input"> |
658 | 660 | </div>
|
659 | 661 | </div>
|
660 | 662 | </div>
|
661 |
| - <!-- Light table --> |
| 663 | + |
| 664 | + <!-- Light table --> |
662 | 665 | <div class="table-responsive">
|
663 | 666 | <table class="table align-items-center table-flush table-hover">
|
664 | 667 | <thead class="thead-light">
|
|
675 | 678 | <th>Present</th>
|
676 | 679 | </tr>
|
677 | 680 | </thead>
|
| 681 | + |
678 | 682 | <tbody>
|
| 683 | + @foreach ($group->users as $student) |
679 | 684 | <tr class="table-">
|
680 | 685 | <th>
|
681 | 686 | <div class="custom-control custom-checkbox">
|
|
684 | 689 | </div>
|
685 | 690 | </th>
|
686 | 691 | <td class="table-user">
|
687 |
| - <b>Alex Smith</b> |
| 692 | + <b> {{$student->name}}</b> |
688 | 693 | </td>
|
689 | 694 | <td>
|
690 |
| - <span class="text-muted">IIT2018040</span> |
| 695 | + <span class="text-muted">{{$student->roll_no}}</span> |
691 | 696 | </td>
|
692 | 697 | <td>
|
693 | 698 | <input class="form-control" type="text" value="None" id="example-text-input">
|
694 | 699 | </td>
|
695 | 700 | <td>
|
696 | 701 | <label class="custom-toggle">
|
697 |
| - <input type="checkbox"> |
| 702 | + <input type="checkbox" name="{{$student->roll_no}}"> |
698 | 703 | <span class="custom-toggle-slider rounded-circle" data-label-off="No" data-label-on="Yes"></span>
|
699 | 704 | </label>
|
700 | 705 | </td>
|
701 | 706 | </tr>
|
702 |
| - <tr class="table-"> |
703 |
| - <th> |
704 |
| - <div class="custom-control custom-checkbox"> |
705 |
| - <input class="custom-control-input" id="table-check-all" type="checkbox"> |
706 |
| - <label class="custom-control-label" for="table-check-all"></label> |
707 |
| - </div> |
708 |
| - </th> |
709 |
| - <td class="table-user"> |
710 |
| - <b>Alex Smith</b> |
711 |
| - </td> |
712 |
| - <td> |
713 |
| - <span class="text-muted">IIT2018040</span> |
714 |
| - </td> |
715 |
| - <td> |
716 |
| - <input class="form-control" type="text" value="None" id="example-text-input"> |
717 |
| - </td> |
718 |
| - <td> |
719 |
| - <label class="custom-toggle"> |
720 |
| - <input type="checkbox"> |
721 |
| - <span class="custom-toggle-slider rounded-circle" data-label-off="No" data-label-on="Yes"></span> |
722 |
| - </label> |
723 |
| - </td> |
724 |
| - </tr> |
725 |
| - <tr class="table-"> |
726 |
| - <th> |
727 |
| - <div class="custom-control custom-checkbox"> |
728 |
| - <input class="custom-control-input" id="table-check-all" type="checkbox"> |
729 |
| - <label class="custom-control-label" for="table-check-all"></label> |
730 |
| - </div> |
731 |
| - </th> |
732 |
| - <td class="table-user"> |
733 |
| - <b>Alex Smith</b> |
734 |
| - </td> |
735 |
| - <td> |
736 |
| - <span class="text-muted">IIT2018040</span> |
737 |
| - </td> |
738 |
| - <td> |
739 |
| - <input class="form-control" type="text" value="None" id="example-text-input"> |
740 |
| - </td> |
741 |
| - <td> |
742 |
| - <label class="custom-toggle"> |
743 |
| - <input type="checkbox"> |
744 |
| - <span class="custom-toggle-slider rounded-circle" data-label-off="No" data-label-on="Yes"></span> |
745 |
| - </label> |
746 |
| - </td> |
747 |
| - </tr> |
748 |
| - <tr class="table-"> |
749 |
| - <th> |
750 |
| - <div class="custom-control custom-checkbox"> |
751 |
| - <input class="custom-control-input" id="table-check-all" type="checkbox"> |
752 |
| - <label class="custom-control-label" for="table-check-all"></label> |
753 |
| - </div> |
754 |
| - </th> |
755 |
| - <td class="table-user"> |
756 |
| - <b>Alex Smith</b> |
757 |
| - </td> |
758 |
| - <td> |
759 |
| - <span class="text-muted">IIT2018040</span> |
760 |
| - </td> |
761 |
| - <td> |
762 |
| - <input class="form-control" type="text" value="None" id="example-text-input"> |
763 |
| - </td> |
764 |
| - <td> |
765 |
| - <label class="custom-toggle"> |
766 |
| - <input type="checkbox"> |
767 |
| - <span class="custom-toggle-slider rounded-circle" data-label-off="No" data-label-on="Yes"></span> |
768 |
| - </label> |
769 |
| - </td> |
770 |
| - </tr> |
771 |
| - <tr class="table-"> |
772 |
| - <th> |
773 |
| - <div class="custom-control custom-checkbox"> |
774 |
| - <input class="custom-control-input" id="table-check-all" type="checkbox"> |
775 |
| - <label class="custom-control-label" for="table-check-all"></label> |
776 |
| - </div> |
777 |
| - </th> |
778 |
| - <td class="table-user"> |
779 |
| - <b>Alex Smith</b> |
780 |
| - </td> |
781 |
| - <td> |
782 |
| - <span class="text-muted">IIT2018040</span> |
783 |
| - </td> |
784 |
| - <td> |
785 |
| - <input class="form-control" type="text" value="None" id="example-text-input"> |
786 |
| - </td> |
787 |
| - <td> |
788 |
| - <label class="custom-toggle"> |
789 |
| - <input type="checkbox"> |
790 |
| - <span class="custom-toggle-slider rounded-circle" data-label-off="No" data-label-on="Yes"></span> |
791 |
| - </label> |
792 |
| - </td> |
793 |
| - </tr> |
794 |
| - <tr class="table-"> |
795 |
| - <th> |
796 |
| - <div class="custom-control custom-checkbox"> |
797 |
| - <input class="custom-control-input" id="table-check-all" type="checkbox"> |
798 |
| - <label class="custom-control-label" for="table-check-all"></label> |
799 |
| - </div> |
800 |
| - </th> |
801 |
| - <td class="table-user"> |
802 |
| - <b>Alex Smith</b> |
803 |
| - </td> |
804 |
| - <td> |
805 |
| - <span class="text-muted">IIT2018040</span> |
806 |
| - </td> |
807 |
| - <td> |
808 |
| - <input class="form-control" type="text" value="None" id="example-text-input"> |
809 |
| - </td> |
810 |
| - <td> |
811 |
| - <label class="custom-toggle"> |
812 |
| - <input type="checkbox"> |
813 |
| - <span class="custom-toggle-slider rounded-circle" data-label-off="No" data-label-on="Yes"></span> |
814 |
| - </label> |
815 |
| - </td> |
816 |
| - </tr> |
817 |
| - |
| 707 | + @endforeach |
818 | 708 | </tbody>
|
819 | 709 | </table>
|
820 | 710 | </div>
|
|
824 | 714 | <h3 class="mb-0"></h3>
|
825 | 715 | </div>
|
826 | 716 | <div class="col-6 text-right">
|
827 |
| - <a href="#" class="btn btn-sm btn-success btn-round btn-icon" data-toggle="tooltip" data-original-title="Edit product"> |
| 717 | + <a onclick="document.getElementById('att').submit();" class="btn btn-sm btn-success btn-round btn-icon" data-toggle="tooltip" data-original-title="Edit product"> |
828 | 718 | <span class="btn-inner--icon"><i class="fas fa-check"></i></span>
|
829 | 719 | <span class="btn-inner--text">Submit</span>
|
830 | 720 | </a>
|
831 | 721 | </div>
|
832 |
| - |
833 | 722 | <!-- Card footer -->
|
834 | 723 | </div>
|
| 724 | + </form> |
835 | 725 | </div>
|
836 | 726 | </div>
|
837 | 727 | <!-- Footer -->
|
|
864 | 754 | </div>
|
865 | 755 | <!-- Argon Scripts -->
|
866 | 756 | <!-- Core -->
|
867 |
| - <script src="../../assets/vendor/jquery/dist/jquery.min.js"></script> |
868 |
| - <script src="../../assets/vendor/bootstrap/dist/js/bootstrap.bundle.min.js"></script> |
869 |
| - <script src="../../assets/vendor/js-cookie/js.cookie.js"></script> |
870 |
| - <script src="../../assets/vendor/jquery.scrollbar/jquery.scrollbar.min.js"></script> |
871 |
| - <script src="../../assets/vendor/jquery-scroll-lock/dist/jquery-scrollLock.min.js"></script> |
| 757 | + <script src="/assets/vendor/jquery/dist/jquery.min.js"></script> |
| 758 | + <script src="/assets/vendor/bootstrap/dist/js/bootstrap.bundle.min.js"></script> |
| 759 | + <script src="/assets/vendor/js-cookie/js.cookie.js"></script> |
| 760 | + <script src="/assets/vendor/jquery.scrollbar/jquery.scrollbar.min.js"></script> |
| 761 | + <script src="/assets/vendor/jquery-scroll-lock/dist/jquery-scrollLock.min.js"></script> |
872 | 762 | <!-- Argon JS -->
|
873 |
| - <script src="../../assets/js/argon.min5438.js?v=1.2.0"></script> |
874 |
| - <!-- Demo JS - remove this in your project --> |
875 |
| - <script src="../../assets/js/demo.min.js"></script> |
| 763 | + <script src="/assets/js/argon.min5438.js?v=1.2.0"></script> |
| 764 | + |
876 | 765 | <script>
|
877 | 766 | // Facebook Pixel Code Don't Delete
|
878 | 767 | ! function(f, b, e, v, n, t, s) {
|
|
0 commit comments