@php
/** @var \Money\Money $money */
if (! isset($productWithPricing) || ! $productWithPricing instanceof \App\Dto\ProductWithPricingDto) {
throw new \InvalidArgumentException('Product must be an instance of ProductWithPricingDto to view prices.');
}
@endphp
@if (Gate::allows('viewPrices', $productWithPricing))
@money($money)
@else
{{ '-.--' }}
@endif