@extends('layouts.app') @section('title', 'Profile - ' . config('app.name')) @section('header-left')

Profile & Preferences

@endsection @section('content') @if (session('success'))
{{ session('success') }}
@endif
{{-- Profile --}}

Profile

@csrf @method('PUT')
@error('name')

{{ $message }}

@enderror
@error('email')

{{ $message }}

@enderror
@error('timezone')

{{ $message }}

@enderror
{{-- Notification preferences --}} @php $prefs = $user->notification_preferences ?? []; $emailEnabled = $prefs['email_enabled'] ?? true; $slackDmEnabled = $prefs['slack_dm_enabled'] ?? false; $slackChannelEnabled = $prefs['slack_channel_enabled'] ?? false; $teamNotificationsEnabled = $prefs['team_notifications_enabled'] ?? false; $pushEnabled = $prefs['push_enabled'] ?? false; $quietHoursEnabled = $prefs['quiet_hours_enabled'] ?? false; $startTime = $prefs['start_time'] ?? '22:00'; $endTime = $prefs['end_time'] ?? '08:00'; $hasSupervisees = $user->supervisees()->exists(); @endphp

Notification preferences

@csrf @method('PUT')
@if ($hasSupervisees) @endif

Quiet hours

@endsection