@extends('layouts.portal') @section('title', __('onsite.details') . ' — ' . config('app.name')) @section('page_title', $consultation->patient_name ?? __('onsite.details')) @section('page_subtitle', $consultation->dietType?->name) @section('page_actions') {{ __('onsite.download_pdf') }} {{ __('onsite.back') }} @endsection @section('content')

{{ __('onsite.basic_info') }}

{{ __('onsite.visitor_name') }}
{{ $consultation->patient_name ?? '—' }}
{{ __('onsite.id_iqama_number') }}
{{ $consultation->id_number ?? '—' }}
{{ __('onsite.gender') }}
{{ $consultation->gender_label }}
{{ __('onsite.date_of_birth') }}
{{ $consultation->date_of_birth->format('Y-m-d') }} ({{ $consultation->age }} {{ __('onsite.years') }})
{{ __('onsite.weight_kg') }}
{{ $consultation->weight }} {{ __('common.kg') }}
{{ __('onsite.height_cm') }}
{{ $consultation->height }} {{ __('common.cm') }}
{{ __('onsite.activity_level') }}
{{ $consultation->activity_label }}

{{ __('onsite.physical_activity') }} & {{ __('onsite.ideal_body_weight') }}

{{ __('onsite.bmr') }}
{{ $consultation->bmr ? number_format($consultation->bmr, 0) . ' ' . __('common.kcal') . '/' . __('common.day') : '—' }}
{{ __('onsite.tdee') }}
{{ $consultation->tdee ? number_format($consultation->tdee, 0) . ' ' . __('common.kcal') . '/' . __('common.day') : '—' }}
{{ __('onsite.ibw_devine') }}
{{ $consultation->ibw_devine ? number_format($consultation->ibw_devine, 1) . ' ' . __('common.kg') : '—' }}
{{ __('onsite.weight_deviation') }}
@if (! is_null($consultation->weight_deviation)) {{ $consultation->weight_deviation > 0 ? '+' : '' }}{{ number_format($consultation->weight_deviation, 1) }} {{ __('common.kg') }} @else — @endif
@if ($consultation->carbs_g || $consultation->protein_g || $consultation->fat_g)

{{ __('onsite.macro_configuration') }}

{{ __('onsite.macro_carbs') }}

{{ number_format($consultation->carbs_g ?? 0, 1) }} {{ __('common.grams') }}

{{ __('onsite.macro_protein') }}

{{ number_format($consultation->protein_g ?? 0, 1) }} {{ __('common.grams') }}

{{ __('onsite.macro_fat') }}

{{ number_format($consultation->fat_g ?? 0, 1) }} {{ __('common.grams') }}

@endif @if ($consultation->notes)

{{ __('onsite.notes') }}

{{ $consultation->notes }}

@endif

{{ __('onsite.share_email') }}

@csrf
@error('email')

{{ $message }}

@enderror
@endsection