{{-- Modal de Aceite do Termo de Cessão de Uso --}} {{-- Exibido automaticamente para usuário Master quando terms_accepted = false --}} @php $showTermsModal = false; if (auth()->check() && !auth()->user()->is_master) { $clientId = session('active_client_id', session('client_id')); if ($clientId) { $termsClient = \App\Models\Client::withoutGlobalScopes()->find($clientId); $showTermsModal = $termsClient && !$termsClient->terms_accepted; } } @endphp @if($showTermsModal) @endif