@extends('layouts.app') @section('title', 'Review Product Update') @section('content')
Quick Nav
Target Product
{{ $product->name }}
{{ $product->sku }}

Review Changes

Comparing live catalog data with vendor proposals.

Pending Review
@foreach(['name' => 'Title', 'short_description' => 'Short Description', 'description' => 'Description', 'category_id' => 'Category', 'brand_id' => 'Brand', 'stock_qty' => 'Stock', 'price' => 'Price', 'sale_price' => 'Sale Price'] as $key => $label) @if(isset($newData[$key])) @endif @endforeach
Field Name Live Data Proposed Change
{{ $label }}
@if($key == 'category_id') {{ \App\Models\Category::find($product->$key)->name ?? 'N/A' }} @elseif($key == 'brand_id') {{ \App\Models\Brand::find($product->$key)->name ?? 'N/A' }} @else {{ Str::limit($product->$key, 100) }} @endif
@if($key == 'category_id') {{ \App\Models\Category::find($newData[$key])->name ?? 'N/A' }} @elseif($key == 'brand_id') {{ \App\Models\Brand::find($newData[$key])->name ?? 'N/A' }} @else {{ Str::limit($newData[$key], 100) }} @endif
@if(isset($newData['primary_image']) || isset($newData['gallery_images']))
Media Comparison
@if(isset($newData['primary_image']))
Live Primary Image @if($product) @else
No Image
@endif
Proposed Primary Change
@endif @if(isset($newData['gallery_images']) || $product->galleries->count() > 0 || $product->images->where('is_primary', 0)->count() > 0)
Live Galleries
@foreach($product->galleries as $g) @endforeach @foreach($product->images->where('is_primary', 0) as $img) @endforeach
@if(isset($newData['gallery_images']))
Proposed New Gallery Images
@foreach($newData['gallery_images'] as $img) @endforeach
@endif
@endif
@endif
Decision Center
@csrf
Vendor Details
{{ substr($update->vendor->shop_name ?? 'V', 0, 1) }}
{{ $update->vendor->shop_name }}
ID: #{{ $update->vendor_id }}
{{ $update->vendor->user->email ?? 'N/A' }}
Requests: {{ $update->vendor->productUpdates()->count() }}

View Shop Profile
@endsection