<table >
    <thead>
        <tr>
            <th scope="col">{{ __('products.key') }}</th>
          <th scope="col">{{ __('products.name') }}</th>
            <th scope="col">{{ __('products.description') }}</th>
            <th scope="col">{{ __('products.category') }}</th>
            <th scope="col">{{ __('products.writer') }}</th>
            <th scope="col">{{ __('products.model') }}</th>
            <th scope="col">{{ __('products.show') }}</th>
            <th scope="col">{{ __('products.visit_counts') }}</th>
            <th scope="col" colspan="2">{{ __('dashboard.created_at') }}</th>
        </tr>
    </thead>
@php

        $vowels = array("&nbsp;", "&ndash;", "&bull;","\r\n","&ldquo;","&rdquo;");
 @endphp
    <tbody class="response">
        @foreach($products as $key=> $row)
<tr>
    
     <td>{{ $key+1 }}</td>
   <td>{{ productname($row->id) }}</td>
    <td>{{ str_replace($vowels, ' ', strip_tags(productdescription($row->id))) }}</td>
    <td>{{ categoryname($row->category_id) }}</td>
    <td>{{ $row->writer }}</td>
    <td>@if(is_null($row->model_id)){{ __('products.null') }} @else {{ modelname($row->model_id) }} @endif</td>
    <td>@if($row->show == 'yes'){{ __('products.yes') }} @else {{ __('products.no') }} @endif</td>
    <td> {{ $row->visit_counts }} </td>
   
    <td colspan="2">{{ \Carbon\Carbon::parse($row->created_at)->format('Y/m/d') }}</td>
</tr>
@endforeach
    </tbody>


</table>