@if (Session::has('success'))
{{ Session::get('success') }}
@php
Session::forget('success');
@endphp
@endif
{{--
Employee
--}}Employee Code | Full Name | 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 |