@extends('layouts.customer') @section('content')

Ingredients

@if(request()->get('status') == 'archived') All Ingredients @else Add Ingredient Archived Ingredients @endif @if(request()->get('status') == 'archived') {!! Form::open(['method' => 'POST','route' => ['ingredients.restore-all', [$account]],'style'=>'display:inline']) !!} {!! Form::submit('Restore All', ['class' => 'btn btn-info btn-sm']) !!} {!! Form::close() !!} @endif
@if ($message = Session::get('success'))

{{ $message }}

@endif
@php //print_r($ingredients); @endphp
@if($ingredients) @php $i = 0; @endphp @foreach($ingredients as $ingredient) {{-- --}} @endforeach @else

No records found!

@endif
ID Name Products Added on Last Updated Action
IN-{{ ++$i }} {{ $ingredient->name }} {{ $ingredient->menu_item_count <= 1 ? $ingredient->menu_item_count . ' product' : $ingredient->menu_item_count . ' products' }} {{ $ingredient->created_at }} {{ $ingredient->updated_at }}
@endsection