@extends('layouts.app') @section('title', __('gym::lang.members')) @section('content') @include('gym::layouts.nav')

@lang('gym::lang.health') {{ $member->name }}

@component('components.widget')
{!! Form::open([ 'url' => action([\Modules\Gym\Http\Controllers\MemberController::class, 'store_health'], ['id' => $member->id]), 'method' => 'post', 'id' => 'create_health_tracking', ]) !!}
{!! Form::label('date', __('lang_v1.date') . ':') !!} {!! Form::text('date', null, [ 'class' => 'form-control health_date', 'placeholder' => __('lang_v1.date'), 'readonly', 'required', ]) !!}
{!! Form::label('neck', __('gym::lang.neck') . ':') !!} {!! Form::number('neck', null, ['class' => 'form-control', 'step' => '0.01']) !!}
{!! Form::label('left_arm', __('gym::lang.left_arm') . ':') !!} {!! Form::number('left_arm', null, ['class' => 'form-control', 'step' => '0.01']) !!}
{!! Form::label('right_arm', __('gym::lang.right_arm') . ':') !!} {!! Form::number('right_arm', null, ['class' => 'form-control', 'step' => '0.01']) !!}
{!! Form::label('chest', __('gym::lang.chest') . ':') !!} {!! Form::number('chest', null, ['class' => 'form-control', 'step' => '0.01']) !!}
{!! Form::label('upper_waist', __('gym::lang.upper_waist') . ':') !!} {!! Form::number('upper_waist', null, ['class' => 'form-control', 'step' => '0.01']) !!}
{!! Form::label('lower_waist', __('gym::lang.lower_waist') . ':') !!} {!! Form::number('lower_waist', null, ['class' => 'form-control', 'step' => '0.01']) !!}
{!! Form::label('hips', __('gym::lang.hips') . ':') !!} {!! Form::number('hips', null, ['class' => 'form-control', 'step' => '0.01']) !!}
{!! Form::label('left_thigh', __('gym::lang.left_thigh') . ':') !!} {!! Form::number('left_thigh', null, ['class' => 'form-control', 'step' => '0.01']) !!}
{!! Form::label('right_thigh', __('gym::lang.right_thigh') . ':') !!} {!! Form::number('right_thigh', null, ['class' => 'form-control', 'step' => '0.01']) !!}
{!! Form::label('calf', __('gym::lang.calf') . ':') !!} {!! Form::number('calf', null, ['class' => 'form-control', 'step' => '0.01']) !!}
{!! Form::label('height', __('gym::lang.height') . ':*') !!} {!! Form::number('height', null, ['class' => 'form-control', 'required', 'step' => '0.1']) !!}
{!! Form::label('weight', __('gym::lang.weight') . ':*') !!} {!! Form::number('weight', null, ['class' => 'form-control', 'required', 'step' => '0.1']) !!}
{!! Form::label('shoulders', __('gym::lang.shoulders') . ':') !!} {!! Form::number('shoulders', null, ['class' => 'form-control', 'step' => '0.01']) !!}
{!! Form::label('body_fat_percentage', __('gym::lang.body_fat_percentage') . ':') !!} {!! Form::number('body_fat_percentage', null, ['class' => 'form-control', 'step' => '0.01']) !!}
{!! Form::label('visceral_fat', __('gym::lang.visceral_fat') . ':') !!} {!! Form::number('visceral_fat', null, ['class' => 'form-control', 'step' => '0.01']) !!}
{!! Form::label('subcutaneous_fat', __('gym::lang.subcutaneous_fat') . ':') !!} {!! Form::number('subcutaneous_fat', null, ['class' => 'form-control', 'step' => '0.01']) !!}
{!! Form::label('bmi', __('gym::lang.bmi') . ':') !!} {!! Form::number('bmi', null, ['class' => 'form-control', 'step' => '0.01']) !!}
{!! Form::label('muscle_mass_percentage', __('gym::lang.muscle_mass_percentage') . ':') !!} {!! Form::number('muscle_mass_percentage', null, ['class' => 'form-control', 'step' => '0.01']) !!}
{!! Form::label('remarks', __('gym::lang.remarks') . ':') !!} {!! Form::textarea('remarks', null, ['class' => 'form-control', 'rows' => 3]) !!}
{!! Form::close() !!}
@endcomponent

@lang('gym::lang.previous_health_record_of') {{ $member->name }}

@component('components.widget')
@foreach ($health as $record) @endforeach
@lang('gym::lang.date') @lang('gym::lang.weight') @lang('gym::lang.height') @lang('gym::lang.bmi') @lang('gym::lang.body_fat_percentage') @lang('gym::lang.muscle_mass_percentage') @lang('gym::lang.neck') @lang('gym::lang.left_arm') @lang('gym::lang.right_arm') @lang('gym::lang.chest') @lang('gym::lang.upper_waist') @lang('gym::lang.lower_waist') @lang('gym::lang.hips') @lang('gym::lang.left_thigh') @lang('gym::lang.right_thigh') @lang('gym::lang.calf') @lang('gym::lang.shoulders') @lang('gym::lang.visceral_fat') @lang('gym::lang.subcutaneous_fat') @lang('gym::lang.remarks')
{{ @format_date($record->date) }} {{ $record->weight }} {{ $record->height }} {{ $record->bmi }} {{ $record->body_fat_percentage }} {{ $record->muscle_mass_percentage }} {{ $record->neck }} {{ $record->left_arm }} {{ $record->right_arm }} {{ $record->chest }} {{ $record->upper_waist }} {{ $record->lower_waist }} {{ $record->hips }} {{ $record->left_thigh }} {{ $record->right_thigh }} {{ $record->calf }} {{ $record->shoulders }} {{ $record->visceral_fat }} {{ $record->subcutaneous_fat }} {{ $record->remarks }}
@endcomponent
@endsection @section('javascript') @endsection