{{--@php $count = $this->user->alert->count(); $alerts = $this->user->alert->order_by('type','asc')->get(); @endphp--}} {{--@if($alerts->exists()) @if($count === 1) @php $box = 'note-warning'; if($alerts->icon === 'fa-link' OR $alerts->icon === 'fa-user' OR $alerts->icon === 'fa-check') $box = 'note-success'; if($alerts->icon === 'fa-lightbulb') $box = 'note-warning'; if($alerts->icon === 'fa-exclamation-triangle') $box = 'note-danger'; if($alerts->icon === 'fa-info') $box = 'note-info'; if($alerts->type === 'renewal') $box = 'note-warning'; @endphp @if($alerts->type === 'renewal' && setting('subscription_renewal_alert_suppress')) @elseif ($alerts->type === 'invitation' && (new Company())->where('admin_id', $this->user->id)->get()->exists()) @php $invitingCompany = new Company($alerts->company_id); @endphp