@php $statusClass = function ($status) { return match($status) { 'active','approved','selected','received','completed','complete','paid' => 'green', 'rejected','cancelled','suspended','blacklisted','failed' => 'red', 'submitted','under_review','pending','partial','partial_received' => 'yellow', 'ordered','sent','acknowledged' => 'blue', default => '' }; }; @endphp @auth

@yield('page_title', 'Dashboard')

Signed in as {{ auth()->user()->name }}
Role: {{ strtoupper(auth()->user()->role) }}
@csrf
@include('layouts.partials.messages') @yield('content')
@else @yield('content') @endauth