@foreach ($users as $user) @if ($user->status === 'approved') @endif @if ($user->status === 'rejected') @endif @if ($user->status === 'pending') @endif @endforeach
ID Nome Professor Créditos Expiração Status Nascimento
{{ $user->id }} {{ $user->user_profile->name }} Professores @isset($user->user_credit->credit) {{ $user->user_credit->credit }} @endisset @isset($user->user_credit->expiration_date) {{ date('d-m-Y', strtotime($user->user_credit->expiration_date)) }} @endisset AprovadoRejeitadoPendente {{ date('d-m-Y', strtotime($user->user_profile->birth_date)) }}