@extends('layouts.admin') @section('content')
@include('includes.form-error') @include('includes.form-success')
@foreach($productss as $productt) @foreach($productt as $prod) @break @endforeach @endforeach
Name Category Type Clicks
{{strlen($prod->product->name) > 30 ? substr($prod->product->name,0,30).'...' : $prod->product->name}} {{$prod->product->category->name}}
@if($prod->product->subcategory_id != null) {{$prod->product->subcategory->name}}
@if($prod->product->childcategory_id != null) {{$prod->product->childcategory->name}} @endif @endif
{{$prod->product->type}} {{$productt->count('product_id')}}
@endsection @section('scripts') @endsection