Pass user in array

This commit is contained in:
Marcus Moore 2024-09-19 17:23:47 -07:00
parent 8364d26c9b
commit 2d2d5bdc7e
No known key found for this signature in database
2 changed files with 316 additions and 314 deletions

View file

@ -612,7 +612,7 @@ class UsersController extends Controller
$this->authorize('view', $user);
return view('users.print')
->with('show_user', $user)
->with('users', [$user])
->with('settings', Setting::getSettings());
}

View file

@ -2,6 +2,7 @@
@section('content')
@foreach($users as $show_user)
<h3>
{{ trans('general.assigned_to', ['name' => $show_user->present()->fullName()]) }}
{{ ($show_user->employee_num!='') ? ' (#'.$show_user->employee_num.') ' : '' }}
@ -342,5 +343,6 @@
</tr>
</table>
@endforeach
@endsection