<tr x-data="{ show: true }" x-show="show">
    <td class="product-thumbnail">
        @if($wishlistItem->model->firstMedia)
            <a href="{{ route('product.show', $wishlistItem->model->slug) }}">
                <img src="{{ asset('storage/images/products/' . $wishlistItem->model->firstMedia->file_name) }}"
                     alt="{{ $wishlistItem->model->name }}" width="70">
            </a>
        @else
            <img src="{{ asset('img/no-img.png') }}" alt="{{ $wishlistItem->model->name }}" width="70"/>
        @endif
    </td>
    <td class="product-name"><a href="{{ route('product.show', $wishlistItem->model->slug) }}">{{ $wishlistItem->model->name }}</a></td>
    <td class="product-name">
        <a wire:click="moveToCart('{{ $wishlistItem->rowId }}')"
           x-on:click="show = false"
           style="cursor: pointer;" class="text-success">
            {{__("Move to cart")}}
        </a>
    </td>
    <td class="product-price-cart">
        <span class="amount">${{ format_amount($wishlistItem->model->price,true) }}</span>
    </td>
    <td>
        <a wire:click.prevent="removeFromWishlist('{{ $wishlistItem->rowId }}')"
           x-on:click="show = false"
           style="cursor: pointer;">
            <i class="fas fa-trash-alt text-muted"></i>
        </a>
    </td>
</tr>
