@extends('layouts.metronic', ['title' => 'NUTRIENȚI', 'subtitle' => (!empty($nutrient))?'Editare nutrient':'Adăugare nutrient']) @section('content')
@if(Session::has('success')) @endif @if ($errors->any())
@endif

{{ (!empty($nutrient))?'Editare nutrient':'Adăugare nutrient' }}

@if (!empty($nutrient)) @endif
@foreach($languages as $lang)
{{$lang['name']}}
@endforeach
Închide
@if (!empty($nutrient))

Intervale femei

@foreach($nutrient->rdd['female'] as $key => $rdd) @endforeach
Vârstă minimă Vârstă maximă Valoare rdd
{{ $rdd['min_age'] }}
{{ $rdd['max_age'] }}
{{ $rdd['value'] }}

Intervale bărbați

@foreach($nutrient->rdd['male'] as $key => $rdd) @endforeach
Vârstă minimă Vârstă maximă Valoare rdd
{{ $rdd['min_age'] }}
{{ $rdd['max_age'] }}
{{ $rdd['value'] }}

Produse cu conținut mare de {{$nutrient->ro['name']}}

@foreach($nutrient->products_to_show as $product) @if($product != null) @endif @endforeach
Nume
{{ ($product->ro!=null)?$product->ro['name']: $product[$product->languages[0]]['name'] }}

Rețete cu conținut mare de {{$nutrient->ro['name']}}

@foreach($nutrient->recipes_to_show as $recipe) @endforeach
Nume
{{ ($recipe->ro!=null)?$recipe->ro['name']:$recipe->en['name'] }}
@endif
@endsection @if (!empty($nutrient)) @section('modals') @endsection @endif @section('head') @endsection @section('script') @endsection @section('menuVariables') @endsection