@extends('layouts.portal') @section('title', __('onsite.add') . ' — ' . config('app.name')) @section('page_title', __('onsite.add')) @section('page_actions') {{ __('onsite.back') }} @endsection @push('head') @endpush @section('content')
{{-- Wizard progress --}}
1
{{ __('onsite.basic_info') }}
2
{{ __('onsite.physical_activity') }}
3
{{ __('onsite.ideal_body_weight') }}
4
{{ __('onsite.diet_type_selection') }}
5
{{ __('onsite.eer_cutoff_range') }}
6
{{ __('onsite.macro_configuration') }}
7
{{ __('onsite.excluded_components') }}
8
{{ __('onsite.meal_distribution') }}
9
{{ __('onsite.weekly_meal_planner') }}
10
{{ __('onsite.summary_notes') }}
@csrf {{-- STEP 1 — Basic Information --}}
{{ __('onsite.basic_info') }}
{{ __('onsite.min_age_10') }}
kg
cm
@php $activities = [ 'sedentary' => ['icon'=>'ri-sofa-line', 'mult'=>'1.0'], 'lightly_active' => ['icon'=>'ri-walk-line', 'mult'=>'1.5'], 'moderately_active' => ['icon'=>'ri-run-line', 'mult'=>'1.7'], 'very_active' => ['icon'=>'ri-cycling-line', 'mult'=>'1.8'], ]; @endphp @foreach ($activities as $key => $act)
{{ __('onsite.activity.' . $key) }}
× {{ $act['mult'] }}
@endforeach
{{-- STEP 2 — Physical Activity / EER --}}
{{ __('onsite.physical_activity') }} — {{ __('onsite.caloric_needs') }}
{{ __('onsite.eer_calculation') }}
{{ __('onsite.eer') }}
kcal / day
{{ __('onsite.eer_adjusted') }}
kcal / day
{{-- STEP 3 — IBW --}}
{{ __('onsite.ideal_body_weight') }} (IBW)
{{ __('onsite.bmi_title') }}
{{ __('onsite.ideal_body_weight') }}
kg
{{ __('onsite.excess_weight') }}
kg
BMI{{ __('onsite.status') }}
< 18.4{{ __('onsite.underweight') }}
18.5 - 24.9{{ __('onsite.normal_weight') }}
25.0 - 39.9{{ __('onsite.overweight') }}
≥ 40.0{{ __('onsite.obese') }}
{{-- STEP 4 — Diet Type --}}
{{ __('onsite.diet_type_selection') }}
@php $dietIcons = [ 'diabetes' => ['ri-hospital-line', 'text-danger'], 'weight_reduction' => ['ri-arrow-down-line', 'text-warning'], 'ketogenic' => ['ri-drop-line', 'text-info'], 'building_muscles' => ['ri-boxing-line', 'text-success'], 'healthy_weight' => ['ri-heart-line', 'text-primary'], ]; $dietSlugMap = [ 'diabetes' => 'diabetes', 'weight_reduction' => 'weight-loss', 'ketogenic' => 'keto', 'building_muscles' => 'muscle-building', 'healthy_weight' => 'maintain-weight', ]; @endphp @foreach ($dietIcons as $key => [$icon, $tone])
{{ __('onsite.diet_' . ($key === 'weight_reduction' ? 'weight_reduction' : ($key === 'building_muscles' ? 'building_muscles' : $key))) }}
0% - {{ $key === 'diabetes' || $key === 'weight_reduction' ? '100' : '120' }}% EER
@endforeach
{{-- STEP 5 — EER Cutoff Range --}}
{{ __('onsite.eer_cutoff_range') }}
{{ __('onsite.cutoff_range_note') }}
{{ __('onsite.eer_minimum') }}
kcal / day
{{ __('onsite.eer_maximum') }}
kcal / day

{{ __('onsite.eer_minimum') }}
1500
{{ __('onsite.selected_eer') }}
2500
{{ __('onsite.eer_maximum') }}
3500
{{ __('onsite.eer_selected_for_nutrition') }}
{{ __('onsite.selected_diet') }}:
{{-- STEP 6 — Macro Configuration --}}
{{ __('onsite.nutrition_goals') }}
{{ __('onsite.selected_diet') }}:
@foreach (['carbs' => 'text-primary', 'protein' => 'text-info', 'fat' => 'text-warning'] as $macro => $tone)
{{ __('onsite.macro_' . $macro) }}
{{ $macro === 'carbs' ? 50 : 25 }}%
@endforeach
{{-- STEP 7 — Dislike / Allergy Exclusions --}}
{{ __('onsite.excluded_components') }}
{{ __('onsite.selected_diet') }}:
{{ __('onsite.excluded_components_help') }}
{{ __('onsite.components_search_hint') }}
{{-- STEP 8 — Meal Distribution --}}
{{ __('onsite.meal_distribution') }}
{{ __('onsite.selected_diet') }}:
{{ __('onsite.total_daily_calories') }}: 0 kcal
@foreach (['breakfast' => ['ri-sun-line', 'text-success'], 'lunch' => ['ri-lunch-box-line', 'text-warning'], 'dinner' => ['ri-moon-line', 'text-danger']] as $meal => [$icon, $tone])
{{ __('onsite.' . $meal) }}
{{ __('onsite.food_group') }} % {{ __('onsite.calories') }} {{ __('onsite.grams') }}
{{ __('onsite.total') }} 0 0
@endforeach
{{-- STEP 9 — Weekly Meal Planner --}}
{{ __('onsite.weekly_meal_planner') }}
{{ __('onsite.selected_diet') }}:
{{-- Auto-generated preliminary menu — the consultant reviews/edits it below before continuing. --}}
{{ __('onsite.generated_menu_title') }}

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

{{-- Applying the generated menu above fills this in: one card per meal with its chart and an Edit control to swap components, replacing the old food-group browser + separate preview step. --}}
{{ __('onsite.validation_note') }} {{ __('onsite.meal_planner_validation_help') }}
{{-- STEP 10 — Summary --}}
{{ __('onsite.summary_notes') }}
{{-- Navigation --}}
@endsection @push('scripts') @endpush