@php
$company = DB::table('g_locpar')->where('locn_cd', Auth::user()->proloc)->first();
@endphp
@if($company && !empty($company->comp_logo))
@else
{{ ($company && !empty($company->company)) ? strtoupper(substr($company->company, 0, 2)) : 'CP' }}
@endif
{{ ($company && !empty($company->company)) ? $company->company : '' }}
Welcome, {{ explode(' ', Auth::user()->username)[0] }}