@extends('layouts.main') @section('title', 'Dashboard - Prolytics Connect') @section('content')
{{ strtoupper(substr(auth()->user()->name, 0, 1)) }}
@if($dashboardType === 'super-admin')

Super Admin Dashboard

Welcome back, {{ $user->name }}!
@elseif($dashboardType === 'company') @if(auth()->user()->hasRole('company-user'))

User Dashboard

Hello, {{ $user->name }}!
@if($user->parentCompany) Company: {{ $user->parentCompany->company ?? $user->parentCompany->name }} @endif @else

Company Dashboard

Hello, {{ $user->name }}!
{{ $user->company ?? 'Your Company' }} @endif @else

Welcome to Prolytics Connect

Hello, {{ $user->name }}!
@endif
@if($dashboardType === 'super-admin') @endif
@if($dashboardType === 'super-admin') @include('partials.dashboard.super-admin-content') @elseif($dashboardType === 'company') @include('partials.dashboard.company-content') @else @include('partials.dashboard.default-content') @endif
@endsection @section('scripts') @endsection