@extends('layouts.master') @section('superadmin')

New Employee

@if (Session::has('success')) @endif
{{--

Employee

--}}
@foreach ($employees as $employee) @endforeach
Employee Code Full Name Email Gender Department Action
{{ $employee->empenrollment }} {{ $employee->username }} {{ $employee->email }} {{ $employee->gender }} {{-- @php $assigned_roles = App\Models\User::find($employee->id)->roles()->pluck('fullname'); @endphp --}} @php foreach(App\Models\User::find($employee->id)->roles()->pluck('fullname') as $arole){ echo "".$arole.""; } @endphp {{-- @if ($employee->adminid == 0) Pending @else {{ Role::where('id','=',$employee->adminid)->pluck('name')->first() }} @endif --}} Approved
{{-- delete cordinator --}} @endsection