@extends('hr_main') @section('title', '| '.$data['pageTitle']) @section('content')
{!! $data['pageTitle'] !!}
@if($data['departmentWiseHeadConfig'] == null) @else @endif
Department Wise Head
@if($data['departmentWiseHeadConfig'] != null) @foreach($data['departmentWiseHeadConfig'] as $key => $config)

Branch - {{ $data['branches'][$config->branch_id]['name'] }}

Department - {{ $data['departments'][$config->department_id]['name'] }}

Designation - {{ ($config->designation_id != null) ? $data['designations'][$config->designation_id]['name'] : 'N/A' }}

@if($config->employee_id != null)

Employee - {{ $data['employees'][$config->employee_id]['emp_id'] }} - {{ $data['employees'][$config->employee_id]['employee_name'] }}

@else

Employee - N/A

@endif @if(++$key != count($data['departmentWiseHeadConfig']))
@endif @endforeach @else No Result Found! @endif
@endsection