@extends('layouts.app') @section('content')
@include('layouts.partials.breadcrumb', ['title' => $title])
@can('ingredient.create') Add @endcan
{{-- --}} @forelse ($ingredients as $key => $ingredient) {{-- @dd($ingredient->fabricCategory) --}} {{-- --}} @empty @endforelse
S.N TitleFabric CategoryIngredient Category Ingredient Code Status Action
{{ $key + 1 }} {{ $ingredient->name }}{{ optional($ingredient->fabricCategory)->title }}{{ optional($ingredient->category)->title }} {{ $ingredient->code }} {!! $ingredient->status_name !!}
@can('ingredient.show') @endcan @can('ingredient.edit') @endcan @can('ingredient.destroy') @endcan
@endsection