-
Notifications
You must be signed in to change notification settings - Fork 2
/
verifyresults.blade.php
96 lines (83 loc) · 2.19 KB
/
verifyresults.blade.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
@extends('layouts.app')
@section('content')
<div class="container">
<a href="/home"><button class="btn btn-primary">Back</button>
</a>
</div>
<br>
<div class="container">
<h2>Verify results of the Students</h2>
<table class="table table-hover">
<thead>
<tr>
<th>Name</th>
<th>University Roll Number</th>
<th>Admission number</th>
<th>Verify</th>
</tr>
</thead>
<tbody>
@if($users->count())
@foreach($users as $user)
@if($user->result_status=='0')
<tr class="checkbox {{ $user->result_status ? 'table-success' : '' }}">
<td>{{ $user->name}}
</td>
<td>{{ $user->roll_number}}</td>
<td>{{ $user->admission_number}}</td>
<td><form method="POST" action="/verifyresults/{{ $user->id}}">
@csrf
@method('PATCH')
<input type="checkbox" name="result_status" id="result_status" onchange="this.form.submit()"
{{ $user->result_status ? 'checked' : '' }}>
</form></td>
</tr>
@endif
@endforeach
@endif
@if($users->count()=='0')
Nothing to show.
@endif
</tbody>
</table>
</div>
<div class="container">
<h2>Verified Students</h2>
<table class="table table-hover">
<thead>
<tr>
<th>Name</th>
<th>University Roll Number</th>
<th>Admission number</th>
<th>Verify</th>
</tr>
</thead>
<tbody>
@if($users->count()=='0')
Nothing to show.
@endif
@if($users->count())
@foreach($users as $user)
@if($user->result_status=='1')
<tr class="checkbox {{ $user->result_status ? 'table-success' : '' }}">
<td>{{ $user->name}}
</td>
<td>{{ $user->roll_number}}</td>
<td>{{ $user->admission_number}}</td>
<td><form method="POST" action="/verifyresults/{{ $user->id}}">
@csrf
@method('PATCH')
<input type="checkbox" name="result_status" id="result_status" onchange="this.form.submit()"
{{ $user->result_status ? 'checked' : '' }}>
</form></td>
</tr>
@endif
@endforeach
@endif
@if($users->count()=='0')
Nothing to show.
@endif
</tbody>
</table>
</div>
@endsection