@extends('layouts.master') @section('contain') {{-- --}}

Assign Meal

{{-- --}}
@csrf

BreakFast

@if(isset($MealData)) @foreach ($MealData as $Mdata ) {{-- {{echo $Mdata->id ;}} --}} @foreach ($Mdata->meals as $meals) @if ($Mdata->id ==1) {{-- --}} @endif @endforeach @endforeach @endif
Select Title Description Media
{{$meals->title}} {{$meals->description}} @if (in_array($extention, $arrImgExtensions)) {{-- dd("image") --}} Not Available {{-- // check video file --}} @elseif (in_array($extention, $arrVideoExtensions)) @else {{ 'NA' }} @endif

Lunch

{{-- {{dd($MealData)}} --}} @if(isset($MealData)) @foreach ($MealData as $Mdata ) {{-- {{echo $Mdata->id ;}} --}} @foreach ($Mdata->meals as $meals) @if ($Mdata->id ==2) {{-- --}} @endif @endforeach @endforeach @endif
Select Title Description Media
{{$meals->title}} {{$meals->description}} @if (in_array($extention, $arrImgExtensions)) {{-- dd("image") --}} Not Available {{-- // check video file --}} @elseif (in_array($extention, $arrVideoExtensions)) @else {{ 'NA' }} @endif

Dinner

@if(isset($MealData)) @foreach ($MealData as $Mdata ) {{-- {{echo $Mdata->id ;}} --}} @foreach ($Mdata->meals as $meals) @if ($Mdata->id ==3) {{-- --}} @endif @endforeach @endforeach @endif
Select Title Description Media
{{$meals->title}} {{$meals->description}} @if (in_array($extention, $arrImgExtensions)) {{-- dd("image") --}} Not Available {{-- // check video file --}} @elseif (in_array($extention, $arrVideoExtensions)) @else {{ 'NA' }} @endif
@endsection