+@php
+ $technical_sheet = $product->getMediaUrl('technical_sheet', false)
+@endphp
<div data-product-id="{{$id}}" class="product-grid-item bg-grey-200">
{{-- Image holder --}}
<a href="{{ $product->getEntity()->URL }}">
<h3><a class="text-navy" href="{{ $product->getEntity()->URL }}">{{ $product->get('reference') }}</a>
</h3>
<div class="product-highlights text-sm">
- {{ $product->get('name') }}
+ <cart-add :product-id="{{ $id }}" class="align-middle">
+ {{ __('Ajouter à ma sélection') }}
+ <template v-slot:success-message>
+ @svg('tick', 'w-4 mr-3') {{ __('Produit ajouté') }}
+ </template>
+ </cart-add>
+ </div>
+ <div class="links mt-4">
+ <div class="link">
+ <a href="{{ $product->getEntity()->URL }}">
+ {{ __('En savoir plus') }}
+ </a>
+ </div>
+
+ @if($technical_sheet)
+ <div class="link technical_sheet">
+ <a target="_blank" href="{{ $technical_sheet }}">
+ {{ __('Télécharger la fiche') }}
+ </a>
+ </div>
+ @endif
</div>
- <p class="mt-4">
- <a href="{{ $product->getEntity()->URL }}">
- {{ __('Voir la fiche produit') }}
- </a>
- </p>
</div>
@include('partials.product-schema')