@extends('backend.layouts.app') @section('title', $data['p_heading']) @section('content')
{{ $data['p_heading'] }}

{{ $data['p_description'] }}

@if(sizeof($data['products']) > 0)
@foreach($data['products'] as $product) @php $image = $product->image; $path = '/up_data/products/images/thumbnails/'.$image; if(trim($image) == null && !file_exists($path)) $path = '/up_data/na.jpg'; @endphp @endforeach
ID Image Name Category SKU Type Visibility Price Status Actions
{{ $product->id }}
{{ $product->name }} @foreach($product->categories as $category) • {{ $category->name }}
@endforeach
{{ $product->sku }} @if($product->type == 'simple') Simple @elseif($product->type == 'child') Sub Product @else Configurable
{{ \App\Models\Product::getSubItemsCount($product->id) }} Sub Items @endif
@if($product->type == 'child') Not Visible Individually @else {{ \App\Models\Product::$visibility[$product->visibility] }} @endif @if($product->type == 'simple' || $product->type == 'child') $ {{ number_format($product->price_catalog, 2) }} @else Multiple
{{ \App\Models\Product::getSubItemsPriceRange($product->id) }} @endif
@if($product->status == 'Y') Active @else In-active @endif @if($product->type == 'child') @else
@method('DELETE') @csrf
@endif
@else Sorry!, no products found. @endif
@stop