@php $main_image = $item->images[0]->path; foreach ($item->images as $image) { if ($image->chosen_one == true) { $main_image = $image->path; } } @endphp @extends('main', [ 'title' => 'Les détails du produit ' . $item->libelle, 'image' => asset('storage/public/produits/' . $main_image), 'type' => $item->rapide_description, ]) @section('content')
{!! $item->rapide_description !!}
{{ number_format($item->prix, 0, null, ' ') }} F CFA