resources / views / PDF /
# Attendance.Blade
resources / views / Employee / attendance.blade.php
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Attendance Record</title>
<style>
body{
padding: 20px;
}
table{
width: 100%;
border-collapse: collapse;
}
table thead th{
padding: 10px;
color: #fff;
background: #6d7fcc;
border: 2px solid #dee2e6;
}
table tbody td{
padding: 5px 15px;
border: 2px solid #dee2e6;
}
.bg-primary{
background: #6d7fcc;
}
.text-primary{
color: #6d7fcc;
}
.text-white{
color: white;
}
.align-items-center {
align-items: center !important;
}
.justify-content-between {
justify-content: space-between !important;
}
.d-flex {
display: flex !important;
}
.fw-bold {
font-weight: 700 !important;
}
.text-center {
text-align: center !important;
}
.mb-0 {
margin-bottom: 0 !important;
}
</style>
</head>
<body>
<div class="">
<h3 class="text-center text-primary">Attendance Record Lists</h3>
<small>
<span style="color: #3c4ea8">Report Date:</span> {{ \Carbon\Carbon::now()->format('d / M / Y') }}
</small>
<br>
<small>
<span style="color: #3c4ea8">Report Time:</span> {{ \Carbon\Carbon::now()->format('H : i : s A') }}
</small>
<table class="table table-bordered">
<thead class="bg-primary text-white">
<tr>
<th>Name</th>
<th>Date</th>
<th>Check In Time</th>
<th>Check Out Time</th>
</tr>
</thead>
<tbody>
@foreach($attendances as $a)
<tr>
<td>{{ optional($a->employeeCheckInfo)->name }}</td>
<td>{{ $a->Indate }}</td>
<td>{{ $a->checkIn_time }}</td>
<td>{{ $a->checkOut_time }}</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</body>
</html>
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
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
← Salary