@extends('layouts.appv2') @section('content') {{-- Table index start --}}

Employees

Manage Employee

@if ($message = Session::get('success')) @endif @if ($message = Session::get('error')) @endif
@foreach($departments as $department) @endforeach
@php $counter = 1; @endphp @foreach($departments as $department) @php $hasEmployee = false; @endphp @foreach($employees as $employee) @if ($employee->employee_department_id == $department->department_id) @php $hasEmployee = true; @endphp @endif @endforeach @if (!$hasEmployee) @endif @endforeach
No. Name Grade Unit Action
{{ strtoupper($department->department_name) }} DEPARTMENT
{{ $counter++ }} {{ $employee->employee_first_name }} {{ $employee->grade_code }} , {{ $employee->grade_name }} {{ $employee->unit_name }} Edit View
No Data
@endsection