@extends('backend.layouts.app') @section('content')
@foreach ($inventorys as $inventory) @endforeach
Image Title SKU Brand Inventory Status Date Action
@if ($inventory->rel_to_attribute->isNotEmpty() && $inventory->rel_to_attribute->first()->image) Image @else No image available @endif {{ $inventory->title }} {{ $inventory->sku }} @if ($inventory->brand != null) {{ $inventory->brand }} @else N/A @endif @foreach ($inventory->rel_to_attribute as $attribute) @if ($attribute->color_id) color: {{ $attribute->color_id }}, @endif @if ($attribute->size_id) size: {{ $attribute->size_id }}, @endif @if ($attribute->weight) Package: {{ $attribute->weight }}, @endif Price: {{ $attribute->price }}, Sell Price: {{ $attribute->sell_price }}, Quantity: {{ $attribute->quantity }},
@endforeach
@if ($inventory->status == 1)
Active
@else
Deactive
@endif
{{ $inventory->created_at->format('d-m-Y') }}
@endsection