@extends('layouts.portal') @section('title', $reviewer->full_name . ' — ' . config('app.name')) @section('page_title', $reviewer->full_name) @section('page_subtitle', ($reviewer->file_number ? $reviewer->file_number . ' · ' : '') . __('patients.age') . ': ' . ($summary['age'] ?? '—') . ($reviewer->gender ? ' · ' . __('common.' . $reviewer->gender) : '')) @section('page_actions') {{-- {{ __('common.edit') }} --}} {{ __('patients.visit_log') }} {{ __('patients.new_visit') }} @if ($latestVisit ?? null) {{ __('patients.edit_last_visit') }} @endif {{-- {{ __('menus.generate') }} --}}
@endsection @section('content') {{-- Nutrition snapshot --}}{{ __('patients.bmr') }}
{{ $summary['bmr'] !== null ? number_format($summary['bmr']) : '—' }}
{{ __('common.kcal') }}
{{ __('patients.tdee') }}
{{ $summary['tdee'] !== null ? number_format($summary['tdee']) : '—' }}
{{ __('common.kcal') }}
{{ __('patients.target_calories') }}
{{ $summary['target_calories'] !== null ? number_format($summary['target_calories']) : '—' }}
{{ $reviewer->dietType?->name }}
{{ __('patients.bmi') }}
{{ $summary['bmi'] }}
{{ __('patients.bmi_category.' . $summary['bmi_category']) }}
{{ $summary['macros'][$key] }}{{ __('common.grams') }}
{{ __('patients.' . $label) }}
{{ __('patients.water') }}: {{ $summary['water_litres'] }} L
{{ $menu->starts_on?->format('Y-m-d') }} · {{ $menu->duration_days }} {{ __('common.days') }} · {{ number_format($menu->target_calories) }} {{ __('common.kcal') }}
{{ __('menus.empty') }}
@endforelse{{ __('patients.measurement_optional_hint') }}
{{-- Period filter --}}| {{ __('patients.measured_on') }} | {{ __('patients.log_height_cm') }} | {{ __('patients.log_weight_kg') }} | {{ __('patients.log_muscle_mass_kg') }} | {{ __('patients.log_fat_mass_kg') }} | {{ __('patients.log_waist_cm') }} | {{ __('patients.consultant') }} |
|---|---|---|---|---|---|---|
| {{ $m->measured_on->format('Y-m-d') }} | {{ $m->height_cm ?? '—' }} | {{ $m->weight_kg ?? '—' }} | {{ $m->muscle_mass_kg ?? '—' }} | {{ $m->body_fat_percent ?? '—' }} | {{ $m->waist_cm ?? '—' }} | {{ $m->recorder?->name ?? '—' }} |
| {{ ($measurementFrom || $measurementTo) ? __('patients.no_measurements_in_range') : __('patients.no_measurements') }} | ||||||
{{ $trend['label'] }}
@if ($trend['change'] === null) {{ __('patients.trend_not_enough') }} @else {{ $trend['change'] > 0 ? '▲ +' : ($trend['change'] < 0 ? '▼ ' : '') }}{{ $trend['change'] }} @endif—
@endif{{ __('patients.email_log_hint') }}
| {{ __('patients.email_log_item') }} | {{ __('patients.email_log_type') }} | {{ __('patients.email_log_sent_to') }} | {{ __('patients.email_log_shared_on') }} | {{ __('patients.email_log_sent_by') }} | {{ __('patients.email_log_status') }} |
|---|---|---|---|---|---|
| @if ($log->loggable instanceof \App\Models\Attachment && $log->loggable->consultant_id === auth()->id()) {{ $log->itemLabel() }} @elseif ($log->loggable instanceof \App\Models\MenuPlan) {{ $log->itemLabel() }} @else {{ $log->itemLabel() }} @endif | {{ __('patients.email_log_types.' . $log->type) }} | {{ $log->recipient }} | {{ $log->formattedSentAt() }} | {{ $log->user?->name ?? '—' }} | isFailed() && $log->error) title="{{ $log->error }}" @endif> {{ __('patients.email_log_statuses.' . $log->status) }} |
| {{ __('patients.email_log_empty') }} | |||||
{{ __($label) }}
@if (filled($items))