@extends('layouts.seller.app') @section('title', 'Store Product | Chemical Wholesale') @php $categories = Common::allCategory(); @endphp @section('content')

All Products

Manage all your Products.

@csrf
Reset @if (Common::getPermission('7')) Add New @endif
@include('layouts.seller.flash')
@if (count($products) > 0) @foreach ($products as $product) @php $status = (!$product->draft) ? 'Draft' : (($product->status) ? 'Published' : 'Draft'); $images = @$product->getimages ? @$product->getimages->groupby('section') : ''; $assignedCategory = !empty(@$product->assignedCategory()) ? @$product->assignedCategory()->pluck('category_id')->toArray() : []; $categoryName = !empty($assignedCategory) ? $category->whereIn('id', $assignedCategory)->pluck('name')->implode(',') : '--'; @endphp @endforeach @else @endif
Name Category Price Added by Status
{{ @$categoryName }} ${{ number_format(@$product->getpackage[0]->price, 2) }} {{ @$product['getCreatedBy']['first_name'] }} {{ @$status }}
No products to show. @if (Common::getPermission('7')) Add your first product @endif
@endsection @push('css') @endpush @push('js') @endpush