{{ trans('front::messages.products.product-files') }}

@foreach ($product->prices()->whereHas('file')->orderBy('prices.ordering')->get() as $price)

{{ $price->file->title }}

{{ trans('front::messages.currency.prefix') }}{{ number_format($price->salePrice()) }} {{ trans('front::messages.currency.suffix') }}

@if ($price->hasDiscount()) {{ trans('front::messages.currency.prefix') }}{{ number_format($price->regularPrice()) }} {{ trans('front::messages.currency.suffix') }} @endif
{{ formatSizeUnits($price->file->size) }}
@if ($price->isDownloadable()) @if (auth()->check()) {{ trans('front::messages.products.download') }} @else {{ trans('front::messages.products.login-and-download') }} @endif @else @endif
@endforeach