vacation report
{{-- --}}

{{ $user['company'] }}

Vacation Report


Employee :

{{ $user['name']}} - {{ $user["id"] }}

From :

{{$date}}-01-01

To :

{{$date}}-12-01

Department :

{{ $user['department'] }} - {{ $user["position"] }}

Annual Vacation :{{ $user->annual_vacation }}

Sick Vacation :{{ $user->sick_vacation }}


@php($total_annual = 0) @php($total_sick = 0) @foreach ($vacations as $item) @php($total_annual += $item->type == 1 ? $item->period : 0) @php($total_sick += $item->type == 0 ? $item->period : 0) @endforeach
Vacation Date Vacation End Date Period Annual Vacation Sick Vacation
{{$item->date}} {{$item->endDate}} {{$item->period}} {{$item->type == 1 ? $item->period : ""}} {{$item->type == 0 ? $item->period : ""}}
Total - {{$total_annual + $total_sick}} {{$total_annual}} {{$total_sick}}