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

{{translate('Template Product Settings')}}

{{----}} @foreach($homebanner as $key => $banner) @php $tempname = Templateimage::where('id',$banner->template_id)->select('template_name','template_category')->first(); $tempcategory = Templatecategory::where('id',$tempname->template_category)->select('name')->first(); $cat_name = Category::where('id',$banner->categoryid)->select('name')->first(); $subcat_name = SubCategory::where('id',$banner->subcategoryid)->select('name')->first(); $product_name = Product::where('id', $banner->product_id)->select('name')->first(); @endphp {{----}} @endforeach
# {{translate('Template Category Name')}} {{translate('Template Name')}} {{translate('Category Name')}} {{translate('Subcategory Name')}}{{translate('Product Name')}}{{translate('Options')}}
{{$key+1}} {{@$tempcategory->name}} {{@$tempname->template_name}} {{@$cat_name->name}} {{@$subcat_name->name}}{{@$product_name->name}}
{{$banner->product_id}}
@endsection @section('script') @endsection