@extends('layouts.admin') @section('title', 'Products — Admin') @section('heading', 'Products') @section('content')
@foreach ($products as $p) @endforeach
ProductOwnerStatus
{{ $p->name }} @if($p->is_featured)Featured@endif @unless($p->is_visible)Hidden@endunless
{{ collect([$p->category, $p->company?->name])->filter()->implode(' · ') }}
{{ $p->user->name }}
@csrf
@if ($p->is_visible)@include('admin.partials-reason', ['action' => route('admin.products.remove', $p), 'confirm' => 'Remove '.$p->name.' from the public profile?', 'button' => 'Remove'])@endif
{{ $products->links() }} @endsection