@extends('layouts.metronic', ['title' => 'NUTRIENȚI', 'subtitle' => (!empty($nutrient))?'Editare nutrient':'Adăugare nutrient'])
@section('content')
@if(Session::has('success'))
{{Session::get('success')}}
@endif
@if ($errors->any())
@foreach ($errors->all() as $error)
- {{ $error }}
@endforeach
@endif
@if (!empty($nutrient))
Vârstă minimă |
Vârstă maximă |
Valoare rdd |
|
@foreach($nutrient->rdd['female'] as $key => $rdd)
{{ $rdd['min_age'] }}
|
{{ $rdd['max_age'] }}
|
{{ $rdd['value'] }}
|
|
@endforeach
Vârstă minimă |
Vârstă maximă |
Valoare rdd |
|
@foreach($nutrient->rdd['male'] as $key => $rdd)
{{ $rdd['min_age'] }}
|
{{ $rdd['max_age'] }}
|
{{ $rdd['value'] }}
|
|
@endforeach
|
Nume |
|
@foreach($nutrient->products_to_show as $product)
@if($product != null)
|
{{ ($product->ro!=null)?$product->ro['name']: $product[$product->languages[0]]['name'] }}
|
|
@endif
@endforeach
|
Nume |
|
@foreach($nutrient->recipes_to_show as $recipe)
|
{{ ($recipe->ro!=null)?$recipe->ro['name']:$recipe->en['name'] }}
|
|
@endforeach
@endif
@endsection
@if (!empty($nutrient))
@section('modals')