Hey, sorry by bad.
I didn't realize the items are getting displayed from the orderitems
table and not the items
table
So to fetch the item description, you will need to go to the file: app/Orderitem.php
Then add this code before the closing } of the file:
/**
* @return mixed
*/
public function item()
{
return $this->belongsTo('App\Item');
}
It should look like this:
Then in the file: resources/views/restaurantowner/viewOrder.blade.php
Add this:
<strong class="mr-2" style="width: 100%;">{{ $item->name }} <br> {!! $item->item->desc !!}</strong>