@component('components.backend.card.card-table')
@slot('header')
{{ __('text.list') }} {{ __('menu.product') }} {{ $data['category']->name }}
@endslot
@slot('thead')
{{ __('field.product_name') }} |
{{ __('field.category_name') }} |
{{ __('field.thumbnails') }} |
{{ __('field.price') }} |
{{ __('field.created_at') }} |
{{ __('field.action') }} |
@endslot
@slot('tbody')
@foreach ($data['category']->Products()->get() as $product)
{{ $product->name }} |
{{ $product->category->name }} |
 |
{{ $product->price }} |
{{ $product->created_at }} |
{{ __('button.edit') }}
{{ __('button.detail') }}
{{ __('button.delete') }}
|
@endforeach
@endslot
@endcomponent