@extends('apex-layouts.main') @section("title",($model->title)?ucfirst($model->title):"Add A New Nutrition") @section('header-right') @if($model->exists) @endif Go Back @endsection @section('content')
@if ($model->exists) @method('PUT') @endif @csrf

Nutrition Info

@if ($errors->has('title')) {{ $errors->first('title') }} @endif
@if ($errors->has('unit')) {{ $errors->first('unit') }} @endif
@endsection