@if(empty($reports))
No record available.
@endif @foreach($reports as $department)
{{ucwords($department['name'])}}
{{$department['time']}} ({{round($department['duration'] * 100 / $totalMinutes, 2)}} %) @can('manage_users') - [Cost: {{ number_format($department['cost']) }}] @endcan

@foreach($department['clients'] as $client)
{{ucwords($client['name'])}}
{{$client['time']}} ({{round($client['duration'] * 100 / $totalMinutes, 2)}} %) @can('manage_users') - [Cost: {{ number_format($client['cost']) }}] @endcan
@foreach($client['projects'] as $project)
{{ucwords($project['name'])}}
{{$project['time']}} ({{round($project['duration'] * 100 / $client['duration'], 2)}} %) @can('manage_users') - [Cost: {{number_format($project['cost'])}}] @endcan
@foreach($project['users'] as $user)
{{ucwords($user['name'])}}
{{$user['time']}} ({{round($user['duration'] * 100 / $project['duration'], 2)}} %) @can('manage_users') - [Cost: {{ number_format($user['cost'])}}] @endcan
@foreach($user['tasks'] as $task)
{{$task['name']}} {{$task['time']}}
@endforeach
@endforeach
@endforeach
@endforeach
@endforeach