@extends('backend.layouts.app') @section('content')
@foreach ($products as $product) @if ($product->inventorie_id != null) @else @endif @endforeach
Image SKU Name Category Subcategory Color Size Package Brand Quantity Price Sell Price Tag Status Date Action
@if ($product->rel_to_inventorie) @php $inventorie = $product->rel_to_inventorie @endphp @foreach ($inventorie->rel_to_attribute->take(1) as $attribute) Image @endforeach @endif @if ($product->rel_to_inventorie) @if ($product->rel_to_inventorie->sku != null) {{ $product->rel_to_inventorie->sku }} @else N/A @endif @endif @if ($product->name != null) {{ $product->name }} @else N/A @endif @if ($product->category_id != null) @if ($product->rel_to_cat != null) {{ $product->rel_to_cat->name }} @else C/N/A @endif @else N/A @endif @if ($product->subcategory_id != null) @if ($product->rel_to_subcat != null) {{ $product->rel_to_subcat->name }} @else C/N/A @endif @else N/A @endif @if ($product->rel_to_inventorie) @php $inventorie = $product->rel_to_inventorie @endphp @foreach ($inventorie->rel_to_attribute as $attribute) {{ $attribute->color_id }}, @endforeach @endif @if ($product->rel_to_inventorie) @php $inventorie = $product->rel_to_inventorie @endphp @foreach ($inventorie->rel_to_attribute as $attribute) {{ $attribute->size_id }}, @endforeach @endif @if ($product->rel_to_inventorie) @php $inventorie = $product->rel_to_inventorie @endphp @foreach ($inventorie->rel_to_attribute as $attribute) {{ $attribute->weight }}, @endforeach @else N/A @endif @if ($product->brand != null) {{ $product->brand }} @else N/A @endif @if ($product->rel_to_inventorie) @php $inventorie = $product->rel_to_inventorie @endphp @foreach ($inventorie->rel_to_attribute as $attribute) {{ $attribute->quantity }}, @endforeach @endif @if ($product->rel_to_inventorie) @php $inventorie = $product->rel_to_inventorie @endphp @foreach ($inventorie->rel_to_attribute as $attribute) {{ $attribute->price }} Tk, @endforeach @endif @if ($product->rel_to_inventorie) @php $inventorie = $product->rel_to_inventorie @endphp @foreach ($inventorie->rel_to_attribute as $attribute) {{ $attribute->sell_price }} Tk, @endforeach @endif @if ($product->tag != null) {{ Str::limit($product->tag, 10, '...') }} @else N/A @endif @if ($product->status == 1)
Active
@else
Deactive
@endif
{{ $product->created_at->format('d-m-Y') }}
Image @if ($product->sku != null) {{ $product->sku }} @else N/A @endif @if ($product->name != null) {{ $product->name }} @else N/A @endif @if ($product->category_id != null) @if ($product->rel_to_cat != null) {{ $product->rel_to_cat->name }} @else C/N/A @endif @else N/A @endif @if ($product->subcategory_id != null) @if ($product->rel_to_subcat != null) {{ $product->rel_to_subcat->name }} @endif @endif @if ($product->color_id != null) {{ $product->color_id }} @endif @if ($product->size_id != null) {{ $product->size_id }} @endif @if ($product->weight != null) {{ $product->weight }} @endif @if ($product->brand != null) {{ $product->brand }} @else N/A @endif @if ($product->quantity != null) {{ $product->quantity }} @else N/A @endif @if ($product->price != null) {{ $product->price }} Tk @else N/A @endif @if ($product->sell_price != null) {{ $product->sell_price }} Tk @else N/A @endif @if ($product->tag != null) {{ $product->tag }} @else N/A @endif @if ($product->status == 1)
Active
@else
Deactive
@endif
{{ $product->created_at->format('d-m-Y') }}
@endsection