@php $configurationModel = \App\Models\Tenant\Configuration::first(); $phoneWhatsapp = $ecommerceConfiguration->phone_whatsapp ?? $configurationModel->phone_whatsapp ?? null; $defaultImage = $configurationModel->product_default_image ?? 'imagen-no-disponible.jpg'; $defaultImagePath = $defaultImage === 'imagen-no-disponible.jpg' ? asset('logo/imagen-no-disponible.jpg') : asset('storage/defaults/' . $defaultImage); $mainImagePath = ($record->image && $record->image !== 'imagen-no-disponible.jpg') ? asset('storage/uploads/items/'.$record->image) : $defaultImagePath; @endphp
@if ($record->category && $record->category->name) {{$record->category->name}} @endif

{{$record->description}}

@php $oldPrice = $record->sale_unit_price * 1.2; $savings = $oldPrice - $record->sale_unit_price; @endphp
{{ $record->currency_type['symbol'] }} {{ number_format($record->sale_unit_price, 2) }} {{ $record->currency_type['symbol'] }} {{ number_format($oldPrice, 2) }} Ahorras {{ $record->currency_type['symbol'] }} {{ number_format($savings, 2) }}