Add page breaks for each user

This commit is contained in:
Marcus Moore 2024-09-23 15:26:15 -07:00
parent 8ac5c0e471
commit a02e250b22
No known key found for this signature in database

View file

@ -37,6 +37,10 @@
size: A4; size: A4;
} }
#start_of_user_section {
break-before: page;
}
.print-logo { .print-logo {
max-height: 40px; max-height: 40px;
} }
@ -77,6 +81,7 @@
@endif @endif
@foreach($users as $show_user) @foreach($users as $show_user)
<div id="start_of_user_section"> {{-- used for page breaks when printing --}}</div>
<h3> <h3>
{{ trans('general.assigned_to', ['name' => $show_user->present()->fullName()]) }} {{ trans('general.assigned_to', ['name' => $show_user->present()->fullName()]) }}
{{ ($show_user->employee_num!='') ? ' (#'.$show_user->employee_num.') ' : '' }} {{ ($show_user->employee_num!='') ? ' (#'.$show_user->employee_num.') ' : '' }}