@extends('layouts.master') @section('title') Customer Details @endsection @section('css') @endsection @section('content')
#Details #{{$customer->id_customer}}
fullname {{$customer->fullname}}
phone {{$customer->phoneNumber}}
email {{$customer->email}}
status
date {{date('d M Y', strtotime($customer->date_add))}}
@if (isset($customer->health_info))
#Customer Health Info #{{$customer->health_info->id}}
gender {{$customer->health_info->gender}}
birth date {{$customer->health_info->birth_date}}
weight {{$customer->health_info->weight}}
height {{$customer->health_info->height}}
fat level @switch($customer->health_info->fat_level) @case(1) UNDERWEIGHT @break @case(2) NORMAL @break @case(3) OVERWEIGHT @break @case(4) OBESE @break @case(5) EXTREMELY_OBESE @break @default Undefined @endswitch
fitness level {{$customer->health_info->fitness_level}}
is diseased ? {{$customer->health_info->is_diseased}}
disease type {{$customer->health_info->disease_type}}
is smoke ? {{$customer->health_info->is_smoke}}
goal {{$customer->health_info->goal}}
account type {{$customer->health_info->account_type}}
@endif
@endsection @section('js') @endsection