mahmoudtrageh
1 month ago

How Can I use if condition in this code (algolia search in laravel)

Posted 1 month ago by mahmoudtrageh

instantsearch.widgets.hits({ container: '#hits', templates: { item(hit) {

    return `
    <!--begin::Card-->
    	<div class="card card-custom gutter-b">
        		<div class="card-body">
      			<!--begin::Top-->
            		<div class="d-flex">
               			 <!--begin::Pic-->
               			 <div class="flex-shrink-0 mr-7">
                    			<div class="symbol symbol-50 symbol-lg-120">
                            			<img alt="Pic" src="`+ hit.image_url +`" />
                   				 </div>
                			</div>

Please sign in or create an account to participate in this conversation.