@extends('layouts.mainlayout') @section('title', 'Employee Leave Log Report') @section('main')
| Name | Team | Engagement | Balance | Action |
|---|---|---|---|---|
| {{ $user->name . ' ' . $user->lastName }} | {{ $user['team']}} | {{$user['engagement']}} | @php $totalLeaveBalance = 0; foreach($user['leaveBalances'] as $leaveBalance) { $totalLeaveBalance += $leaveBalance['leave_balance']; } @endphp{{ $totalLeaveBalance }} | View Log |