@extends('layouts.app') @section('title', $product->name) @section('subtitle', 'Product Details - Admin View') @section('content')

{{ $product->name }}

Product details and management

@if($product->isRejected() && $product->rejection_reason)

Rejection Reason

{{ $product->rejection_reason }}

@endif

Product Images

@if($product->images && count($product->images) > 0)
@foreach($product->getImageUrls() as $index => $imageUrl)
{{ $product->name }} - Image {{ $index + 1 }}
Image {{ $index + 1 }}
@endforeach
@else

No images

@endif

Product Information

{{ ucfirst($product->status) }} @if($product->submitted_at) Submitted: {{ $product->submitted_at->format('M j, Y g:i A') }} @endif

{{ $product->user->name }}

{{ $product->user->email }}

@if($product->user->company_name)

{{ $product->user->company_name }}

@endif

${{ number_format($product->price, 2) }}

{{ $product->quantity }} units

{{ $product->category }}

{{ $product->description }}

{{ $product->created_at->format('M j, Y g:i A') }}

{{ $product->updated_at->format('M j, Y g:i A') }}

@if($product->isPending())
@csrf
@endif
@csrf @method('DELETE')
@endsection