@extends('layouts.app' ) @section('title') All Employees @stop @section('breadcrumb') @stop @section('content')
@permission('create-employee') @endpermission

All Employee

@foreach($allEmployees as $employee) @if($employee->designation) @else @endif @if($employee->department) @else @endif @if($employee->status == \App\Employee::active) @elseif($employee->status == \App\Employee::pending) @elseif($employee->status == \App\Employee::terminated) @else @endif @endforeach
Emp # Name Designation Department Status Action
{{$employee->employee_id}} {{$employee->name}}{{$employee->designation->name}}{{$employee->department->name}}ActivePendingTerminated @permission('view-employee') @endpermission @permission('edit-employee') @endpermission @permission('delete-employee') @endpermission
@stop @section('js') @stop