@if($object->picture_filename)
@endif
|
{{$object->id}}
|
{{$object->admin_title}}
|
@if($object->child_categories)
{{$object->child_categories->sum('products_count')}}
@else
0
@endif
|
{{$object->views_count}}
|
{{$object->is_active ? 'yes' : 'no'}}
|
{{$object->created_at->diffForHumans()}} |
{!!Form::open(['route' => ['admin.products-categories.destroy', $object->id], 'method' => 'delete'])!!}
{!!Form::close()!!}
|
@foreach($object->child_categories as $child_category)
@if($child_category->picture_filename)
@endif
|
{{$child_category->id}}
|
{{$child_category->admin_title}}
|
{{$child_category->products_count}}
|
{{$child_category->views_count}}
|
{{$child_category->is_active ? 'yes' : 'no'}}
|
{{$child_category->created_at->diffForHumans()}} |
{!!Form::open(['route' => ['admin.products-categories.destroy', $child_category->id], 'method' => 'delete'])!!}
{!!Form::close()!!}
|
@endforeach
@endforeach