@extends('layouts.default') @section('content')

{{ __('common.heading') }}

@foreach ($products as $product) @php $genericName = $product->getLocalizedValue('generic_name'); $brandNames = $product->getLocalizedValue('brand_names'); $therapeuticClass = $product->getLocalizedValue('therapeutic_class'); $categoryName = $product->category ? $product->category->getLocalizedValue('name') : ''; $json = json_encode( array_merge($product->toArray(), [ 'dmf_cep' => $product->dmf_number, 'generic_name' => $genericName, 'brand_names' => $brandNames, 'therapeutic_class' => $therapeuticClass, 'form' => $product->getLocalizedValue('form'), 'product_type' => $product->getLocalizedValue('product_type'), ]), JSON_UNESCAPED_UNICODE | JSON_HEX_APOS | JSON_HEX_QUOT ); $productUrl = url( '/product/' . $product->id . '/' . \Illuminate\Support\Str::slug($genericName) ); $search = mb_strtolower(implode(' ', array_filter([ $genericName, $brandNames, $therapeuticClass, $categoryName, ]))); @endphp @endforeach

No products found.

@stop