@extends('admin.layouts.app') @section('content')
@if(count($products)) @php $i=0; @endphp @foreach($products as $prod) @endforeach @endif
ID Product Name Categories Company Type Price Quantity size Actions
{{ ++$i }} {{ ucfirst($prod->product_name) }} {{ !empty($prod->category) ? ucfirst($prod->category->name) : '' }} {{ !empty($prod->company) ? ucfirst($prod->company->name) : '' }} {{ !empty($prod->product_type) ? str_replace('_',' ',ucfirst($prod->product_type)) : '' }} $ {{ !empty($prod->product_price) ? $prod->product_price : '' }} {{ !empty($prod->product_quantity) ? $prod->product_quantity : '' }} {{ !empty($prod->size) ? $prod->size->size : '' }}
@endsection