@extends('admin.tw.layout') @section('title','Products') @section('content')

All Products

Add Product
@forelse(($Product ?? []) as $item) @empty @endempty
Product Price Stock Created Actions
@php $thumb = isset($item->image_one) && $item->image_one && $item->image_one !== '0' ? url('/uploads/products/'.$item->image_one) : null; @endphp @if($thumb) {{ $item->name ?? 'Product' }} @else @endif
{{ $item->name ?? $item->title ?? '—' }}
SKU: {{ $item->sku ?? '—' }}
{{ isset($item->price) ? number_format((float)$item->price, 2) : '—' }} @php $inStock = ($item->stock ?? '') === 'In Stock'; @endphp @if($inStock) @else @endif {{ $item->stock ?? '—' }} {{ isset($item->created_at) ? \Carbon\Carbon::parse($item->created_at)->format('d M Y') : '—' }} Edit Delete

No products found

Add your first product
@endsection