@php $companies = auth()->user() ? auth()->user()->getAllowedCompanies() : \App\Models\Company::orderBy('name')->get(); $activeCompanyId = currentCompanyId(); $activeCompany = $companies->where('id', $activeCompanyId)->first(); $switchableCompanies = (auth()->user()->role === 'admin') ? $companies->where('mode', '!=', 'cash') : $companies; $cashModeActive = $activeCompany && $activeCompany->mode === 'cash'; $companyColors = [1 => '#04a9f5', 2 => '#6610f2', 3 => '#fd7e14']; $activeColor = $companyColors[$activeCompanyId] ?? '#4361ee'; @endphp {{-- Cash Mode Modal --}} @if(auth()->user()->role === 'admin')
@if($errors->has('password')) @endif @endif