-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnewEmptyPHP.php
132 lines (107 loc) · 4.83 KB
/
newEmptyPHP.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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
@if(!$box)
<div class="col-lg-12"><h1 class="white-text">{{$response}}</h1></div>
<div class="col-lg-12"><a href="/timeclock"><button class="btn btn-danger btn-rounded btn-block my-4 waves-effect z-depth-0"
>
Go Back to main screen
</button></a></div>
@endif
<div class="row white-text">
<!--Show Box Details for verifications-->
<div class="col-4">
<div class="row white-text">
<h1>Box ID: {{$box->box_number}}</h1>
</div>
<div class="row">
Box Contains The Following Drugs
</div>
<div class="row">
<table class="table">
<thead class="white-text">
<tr class="white-text">
<th>Drug</th>
<th>Lot Number</th>
<th>Exp Date</th>
</tr>
</thead>
<tbody>
<tr class="white-text">
<td>Morphine</td>
<td>14555</td>
<td>02/09/2019</td>
</tr>
<tr class="white-text">
<td>Fentnyl</td>
<td>14555</td>
<td>02/09/2019</td>
</tr>
<tr class="white-text">
<td>Versed</td>
<td>14555</td>
<td>02/09/2019</td>
</tr>
</tbody>
</table>
</div>
</div>
<!--Check if narcotic log has an open entry for the box scanned-->
@if(!$narclog)
<!--If not log for the box assigned to another employee allow employee to check out the box-->
@else
<!--If box is checked out update the log with whom is checking the box in-->
<div class="row white-text">
<div class="col-sm-12">
<h3>Assigned to: EMPLOYEE ASSIGNED</h3>
</div>
</div>
</div>
@endif
<div class="col-6">
<!--Check what the employee ants to do??? Check in or Out-->
@if($info == true)
@endif
<!--Check if narcotic log has an open entry for the box scanned-->
@if(!$narclog)
<!--If not log for the box assigned to another employee allow employee to check out the box-->
<h1 class="white-text">You are signing out narcotics</h1>
{!! Form::open(['route' => 'narcoticlog.store', 'id' => 'badrunsheets-form']) !!}
@csrf
<div class="mb-form">
<input type="password" class="form-control clock_id" id="out_signature" name="out_signature"></input>
<label class="white-text" for="out_signature">Scan your ID badge to sign out.</label>
</div>
<div class="mb-form">
<input type="password" class="form-control clock_id" id="witness_out" name="witness_out"></input>
<label class="white-text" for="witness_out">Witness scan your ID badge to sign out.</label>
</div>
<input type="hidden" class="form-control clock_id" id="box" name="box" value="{{$box->id}}"></input>
<input type="hidden" class="form-control clock_id" id="time_out" name="time_out" value="{{date('Y-m-d H:i:s')}}"></input>
<input type="hidden" class="form-control clock_id" id="status" name="status" value="1"></input>
<button class="btn btn-outline-info btn-rounded btn-block my-4 waves-effect z-depth-0"
type="submit">
Sign Out
</button>
</form>
@else
<!--If box is checked out update the log with whom is checking the box in-->
<h1 class="white-text">You are signing in narcotics</h1>
{!! Form::open(['route' => ['narcoticlog.update', $narclog->id], 'id' => 'narcoticlog-form']) !!}
@method('PUT')
@csrf
<div class="mb-form">
<input type="password" class="form-control clock_id" id="in_signature" name="in_signature"></input>
<label class="white-text" for="demo">Scan your ID badge to sign in.</label>
</div>
<div class="mb-form">
<input type="password" class="form-control clock_id" id="witness_in" name="witness_in"></input>
<label class="white-text" for="witness_in">Witness scan your ID badge to sign in.</label>
</div>
<input type="hidden" class="form-control clock_id" id="time_out" name="time_in" value="{{date('Y-m-d H:i:s')}}"></input>
<input type="hidden" class="form-control clock_id" id="status" name="status" value="2"></input>
<button class="btn btn-outline-info btn-rounded btn-block my-4 waves-effect z-depth-0"
type="submit">
Sign Narcotics In
</button>
{!! Form::close() !!}
@endif
</div>
</div>