@extends('layouts.layout') @section('title', 'Packaging') @section('content') @php function getname($table,$id){ $result=DB::table('product_'.$table)->where('status','1')->where('id',$id)->first(); $column_name = $table.'_name'; return $result->$column_name; } function currency(){ $result=DB::table('membership_currency')->where('status','Active')->first(); return isset($result->currency_symbol)?$result->currency_symbol:''; } function tagname($id){ $result=DB::table('product_tags')->where('status','1')->where('id',$id)->first(); return isset($result->tag_name)?$result->tag_name:''; } function ingprocount($id) { return $result=DB::table('products')->where('status','1')->whereRaw('ingredients in ('.$id.')')->count(); } @endphp

Products / list of products

@if(count($products)>0) @foreach($products as $key=>$item) @php $productimg=DB::table('product_images')->where('product_id',$item->id)->where('is_delete','0')->orderBy('id','ASC')->limit('2')->get()->toArray(); @endphp
@foreach($productimg as $key=>$img) @php $imgurl1 = 'assets/images/icons/pricing-two-3.png'; if($img->image_name) { $imgurl1 = url('/').'/uploads/product_images/'.$img->image_name; } @endphp @endforeach
{{isset($item->product_name)?$item->product_name:''}}

{!!currency()!!} @if($item->product_type==3) {{number_format($item->product_price,2)}} @endif @if($item->price>0) {{number_format($item->price,2)}} @endif

@if($item->description)
  • {{isset($item->description)?$item->description:''}}
@endif
@endforeach @else

Looks like there are no products in this category!

@endif
@if(count($products)>0) @if($products->currentPage()==1) @if(count($products)>=16)
@endif @else
@endif @endif
@endsection