@extends('layouts.bootstrap') @section('title', 'Products') @section('header')
| Product Name | Status | Category | Subcategory | Country | Price | Unit | Created By | Created | Actions |
|---|---|---|---|---|---|---|---|---|---|
|
{{ $product->name }}
@if($product->description)
{{ Str::limit($product->description, 50) }} @endif |
@if($product->isComplete())
Complete
@else
Incomplete
{{ $product->getCompletionPercentage() }}% done @endif |
{{ $product->category->name ?? '-' }} | {{ $product->subcategory->name ?? '-' }} | {{ $product->country_of_origin ?? '-' }} | @if($product->price) ${{ number_format($product->price, 2) }} @else - @endif | @if($product->measurement_unit) {{ $product->measurement_unit }} @else - @endif | {{ $product->creator->name }} | {{ $product->created_at->format('M d, Y') }} |
@if(auth()->user()->canManage())
@if($product->isIncomplete())
Complete
@endif
@endif
@if(auth()->user()->canManage())
|
@if(request()->hasAny(['search', 'category_id', 'subcategory_id'])) Try adjusting your filters or search terms. @else Get started by adding your first product. @endif
@if(auth()->user()->canManage()) Add Product @endif