@if (isset($file_type) && $file_type == 'excel') @php $total = 0; @endphp @foreach ($shiftCards as $shift) @php $total += $shift->present_employees; @endphp @endforeach
{{ $organization->name }}
Shift Attendance Report {{ \Carbon\Carbon::parse($date)->format('j, F, Y') }}
Shift Present
{{ $shift->name }} {{ $shift->present_employees }}
Total {{$total}}
@else

{{ $organization->name }}

Shift Attendance Report

{{ \Carbon\Carbon::parse($date)->format('j, F, Y') }}

@php $total = 0; @endphp @foreach ($shiftCards as $shift) @php $total += $shift->present_employees; @endphp @endforeach
Shift Present
{{ $shift->name }} {{ $shift->present_employees }}
Total {{$total}}
@endif