@php $not_intern_roles = [ 'content_writer', 'graphic_designer', 'client', 'operations_supervisor', 'assistant_supervisor', 'top_management', 'accounting', 'admin', ]; @endphp
@if ($users->whereNotIn('role', $not_intern_roles)->first())
Add Intern
@foreach ($users as $user) @if (!in_array($user->roles->position, $not_intern_roles))
User Profile

{{ $user->firstname }} {{ substr($user->middlename, 0, 1) }}. {{ $user->lastname }}

{{-- {{ \App\Models\School::where('id', $user->school_id)->first()->description ?? 'No school' }} --}} {{ $user->school }}

@endif @endforeach

Showing 1 - 10 of {{ count($users) }}

Page 1 of
@else

No Interns Yet.

Add Intern
@endif