@php $companies = \App\Models\Company::whereNotNull('name_english')->whereNotNull('name_chinese')->orderBy('created_at', 'desc')->get()->take(5); if ($companies && ! auth()->user()->adminActiveCompany) { auth()->user()->update([ 'admin_active_company_id' => $companies->first()->id, ]); } @endphp

{{ __("Hi, :Name Welcome back!", ['name' => auth()->user()->name]) }}