@extends('layouts.seller') @section('content') @if(Auth::user()->role_as == 10)
@else

Products Page

Add Product
@foreach ($products as $item) @if (Auth::id() === $item->user->id) @endif @endif @endforeach
Items left Category Name Selling Price Action Publish
{{$item->qty}} {{$item->category->name ?? ''}} {{$item->name}} @foreach ($productPrices[$item->id]->sortByDesc('created_at') as $productPrice) @if ($productPrice->is_active == 1) ₱{{ number_format($productPrice->price, 2, '.', ',') }} @break @endif @endforeach @if ($item->user_id == auth()->user()->id) @if ($item->status == 2) Blocked @else
@csrf @method('PUT')
@endif
{!! $products->links('pagination::bootstrap-4') !!}
@endif @endsection