@extends('backend.layouts.master') @section('main-content')
@include('backend.layouts.notification')
Product Lists
Add Product
@if(count($products)>0) @foreach($products as $product) @php $sub_cat_info=DB::table('categories')->select('title')->where('id',$product->child_cat_id)->get(); // dd($sub_cat_info); $brands=DB::table('brands')->select('title')->where('id',$product->brand_id)->get(); @endphp {{-- Delete Modal --}} {{-- --}} @endforeach
S.N. Title Category Is Featured Price Discount Size Condition Brand Stock Photo Status Action
S.N. Title Category Is Featured Price Discount Size Condition Brand Stock Photo Status Action
{{$product->id}} {{$product->title}} {{$product->cat_info['title']}} @foreach($sub_cat_info as $data) {{$data->title}} @endforeach {{(($product->is_featured==1)? 'Yes': 'No')}} Rs. {{$product->price}} /- {{$product->discount}}% OFF {{$product->size}} {{$product->condition}} @foreach($brands as $brand) {{$brand->title}} @endforeach @if($product->stock>0) {{$product->stock}} @else {{$product->stock}} @endif @if($product->photo) @php $photo=explode(',',$product->photo); // dd($photo); @endphp {{$product->photo}} @else avatar.png @endif @if($product->status=='active') {{$product->status}} @else {{$product->status}} @endif
@csrf @method('delete')
{{$products->links()}} @else
No Products found!!! Please create Product
@endif
@endsection @push('styles') @endpush @push('scripts') @endpush