@auth @if(auth()->user() && auth()->user()->hasRole('company')) @php $companySubscription = Auth::user()->companySubscription()->with('plan')->first(); $planName = $companySubscription && $companySubscription->plan ? $companySubscription->plan->title : 'Free Plan'; $renewDate = null; if ($companySubscription && $companySubscription->status === 'active' && $companySubscription->current_period_end) { $renewDate = \Carbon\Carbon::parse($companySubscription->current_period_end)->format('M j, Y'); } @endphp
{{ $planName }} @if($renewDate) Renews {{ $renewDate }} @endif
@endif @endauth
{{ strtoupper(substr(auth()->user()->name, 0, 1)) }}
@auth
{{ strtoupper(substr(auth()->user()->name, 0, 1)) }}
{{ Auth::user()->name }}

{{ Auth::user()->email }}

Profile @if(auth()->user()->hasRole('company')) Subscription @endif
@csrf
@endauth