@extends('admin.layouts.app') @section('title', get_setting('site_name').' | '.__('Monthly Staff Information')) @section('content')
{{ __('Monthly Staff Information') }}
@if($report)
{{ __('Project wise staff position') }}
{{ __('Export Excel') }}
{{ __('PROJECT WISE STAFF POSITION Up to :date', ['date' => $report['asOfLabel']]) }}
@foreach($report['departments'] as $department) @endforeach @foreach($report['rows'] as $row) @foreach($report['departments'] as $department) @php $n = $row['deptCounts'][$department->id] ?? 0; @endphp @endforeach @endforeach @foreach($report['departments'] as $department) @php $n = $report['footer']['full_time']['deptCounts'][$department->id] ?? 0; @endphp @endforeach @foreach($report['footer']['highlights'] as $highlight) @foreach($report['departments'] as $department) @php $n = $highlight['deptCounts'][$department->id] ?? 0; @endphp @endforeach @endforeach @foreach($report['departments'] as $department) @php $n = $report['footer']['part_time']['deptCounts'][$department->id] ?? 0; @endphp @endforeach @foreach($report['departments'] as $department) @php $n = $report['footer']['grand']['deptCounts'][$department->id] ?? 0; @endphp @endforeach
{{ __('POSITION') }} {{ __('Name of Project') }} {{ __('No. of Staff') }}
{{ $department->name }} {{ __('Male') }} {{ __('Female') }} {{ __('Total') }}
{{ $row['name'] }}@if($n > 0){{ $n }}@endif@if($row['male'] > 0){{ $row['male'] }}@endif @if($row['female'] > 0){{ $row['female'] }}@endif @if($row['total'] > 0){{ $row['total'] }}@endif
@endif @endsection