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

{{translate(@$type.' Product Setting')}}

@if($type == 'category')
@php $categorydata = \App\Product::where('products.is_sortable', 1)->groupBy('category_id')->pluck('category_id')->toArray(); @endphp
@endif
@csrf
@forelse($ProductOrder as $key => $ProductOrd) @php if($type == 'category'){ $active = $ProductOrd->ordering; $productid = $ProductOrd->id; }elseif($type == 'featured'){ $active = $ProductOrd->featured_ordering; $productid = $ProductOrd->id; }elseif($type == 'flash'){ $active = $ProductOrd->flash_ordering; $productid = $ProductOrd->product_id; } @endphp @empty @endforelse
Sr. Product Image Product Name Category Sorting
{{$key+1}}
Image
{{$ProductOrd->name}} {{ @$ProductOrd->category->name }}
No Data Found
@endsection @section('script') @endsection