@extends('admin::layouts.master') @section('content')
| @lang('partials.s_n') | @lang('partials.sku') | @lang('partials.title') | @lang('sidebar.category') | @lang('partials.is_featured') | @lang('partials.price') | @lang('messages.discount') | @lang('partials.tags') | @lang('sidebar.brands') | @lang('partials.quantity') | @lang('partials.image') | @lang('partials.status') | Associated Document | @lang('sidebar.attributes') | @lang('partials.action') |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ $loop->iteration }} | {{ $product['sku'] ?? 'N/A' }} | {{ $product['title'] ?? '' }} | {{ isset($product['categories']) ? implode(', ', array_column($product['categories'], 'title')) : 'N/A' }} | {{ !empty($product['is_featured']) ? 'Yes' : 'No' }} | {{ $product['price'] ?? '' }} | {{ $product['discount'] ?? '' }} | @if(isset($product['tags']) && is_array($product['tags'])) {{ implode(', ', array_column($product['tags'], 'title')) }} @else N/A @endif | {{ $product['brand']['title'] ?? 'N/A' }} | {{ $product['stock'] ?? '' }} |
|
{{ ucfirst($product['status'] ?? '') }} |
@if($productId)
@php
// Get documents for this product
$documents = \Modules\Documents\Models\Documents::where('associated_product_id', $productId)->get();
@endphp
@if($documents->count() > 0)
@foreach($documents as $document)
@else
No Documents
{{ Str::limit($document->title, 15) }}
@endforeach
{{ $document->type }} | {{ $document->product_page_location }} Add Document @endif @else N/A @endif |
@if(!empty($product['attributes']))
|
|
| No products found! | ||||||||||||||