@extends('layouts.app') @section('content') <div class="page-content"> <div class="container-fluid"> @include('layouts.partials.breadcrumb', ['title' => $title]) <div class="row"> <div class="col-md-8"> <div class="card card-body p-4"> <div> <div class="table-responsive"> <table class="table-borderless mb-0 table"> <tbody> <tr> <th><span class="fw-medium">Ingredient Name</span></th> <td>{{ $ingredient->name }}</td> </tr> <tr> <th><span class="fw-medium">Ingredient Code</span></th> <td>{{ $ingredient->code }}</td> </tr> <tr> <th><span class="fw-medium">Category</span></th> <td>{{ optional($ingredient->category)->title }}</td> </tr> {{-- <tr> <th><span class="fw-medium">Fabric Category</span></th> <td>{{ optional($ingredient->fabricCategory)->title }}</td> </tr> --}} <tr> <th><span class="fw-medium">Description</span></th> <td>{{ optional($ingredient->desc) }}</td> </tr> <tr> <th><span class="fw-medium">Status</span></th> <td>{{ $ingredient->status }}</td> </tr> </tbody> </table> </div> </div> </div> <div class="mb-3 text-end"> <a href="{{ route('ingredient.index') }}" class="btn btn-secondary w-sm">Back</a> </div> </div> </div> </div> </div> @endsection @push('js') <script src="{{ asset('assets/js/pages/form-validation.init.js') }}"></script> @endpush