@extends('layouts.app') @section('content')
{{ strtoupper(substr($user->name, 0, 1)) }}

{{ $user->name }}

{{ $user->role_display }}

@if($user->is_active) Active @else Inactive @endif
  • Email {{ $user->email }}
  • Phone {{ $user->phone ?: 'Not provided' }}
  • Member Since {{ $user->created_at->format('M j, Y') }}
  • Last Login {{ $user->last_login_at ? $user->last_login_at->format('M j, Y g:i A') : 'Never' }}
  • Email Verified @if($user->email_verified_at) Yes @else No @endif
@if($user->id !== auth()->id())
@csrf @method('PATCH')
@csrf
@endif

Notification Preferences

@if($user->notificationPreferences)
Alert Types:
  • Frost Alerts
  • Freeze Alerts
  • Weather Alerts
  • System Alerts
Channels:
  • Email
  • SMS
  • In-App
@else

No notification preferences set. Using default settings.

@endif

Recent Notifications

@if($recentNotifications->count() > 0)
@foreach($recentNotifications as $notification)
{{ $notification->created_at->format('M j, Y') }}
{{ $notification->created_at->format('g:i A') }}

@if(isset($notification->data['title'])) {{ $notification->data['title'] }} @else {{ class_basename($notification->type) }} @endif

@if(isset($notification->data['message'])) {{ $notification->data['message'] }} @else {{ $notification->data['body'] ?? 'No message content' }} @endif
@endforeach
@else

No recent notifications.

@endif

Role Permissions

@php $permissions = match($user->role) { 'admin' => [ 'User Management' => 'Full access to create, edit, and delete users', 'System Settings' => 'Can modify system-wide configurations', 'Data Access' => 'Access to all data and reports', 'Notification Management' => 'Can configure system notifications', 'Field Management' => 'Full access to all field operations' ], 'manager' => [ 'User Management' => 'Can create and edit users (except admins)', 'Data Access' => 'Access to all operational data', 'Field Management' => 'Can manage field operations and assignments', 'Reports' => 'Access to all reports and analytics' ], 'worker' => [ 'Field Updates' => 'Can update field data and conditions', 'Task Management' => 'Can view and update assigned tasks', 'Data Entry' => 'Can enter field observations and measurements', 'Notifications' => 'Receives relevant field alerts' ], 'user' => [ 'View Data' => 'Can view public field data and reports', 'Notifications' => 'Receives general notifications', 'Profile Management' => 'Can update own profile and preferences' ], default => [] }; @endphp
@foreach($permissions as $permission => $description)
{{ $permission }}

{{ $description }}

@endforeach

Quick Actions

@csrf
@if($user->id !== auth()->id())
@csrf @method('DELETE')
@endif
@endsection