@extends('layouts.bootstrap') @section('title', 'Confirm Product Merge') @section('header')

Confirm Product Merge

Back to Selection
@endsection @section('content')
@if($errors->any()) @endif @if(session('error')) @endif
Products to Merge ({{ $products->count() }})
@foreach($products as $product) @endforeach
Product Name Category Price Country Unit
{{ $product->name }} @if($product->description)
{{ Str::limit($product->description, 60) }} @endif
@if($product->category) {{ $product->category->name }} @if($product->subcategory)
{{ $product->subcategory->name }} @endif @else Not set @endif
@if($product->price) ৳{{ number_format($product->price, 2) }} @else Not set @endif {{ $product->country_of_origin ?? 'Not set' }} {{ $product->measurement_unit ?? 'Not set' }}
Merge Preview
Average Price: @php $avgPrice = $products->whereNotNull('price')->avg('price'); @endphp @if($avgPrice) ৳{{ number_format($avgPrice, 2) }} @else Not available @endif
Primary Category: {{ $products->first()->category->name ?? 'Not set' }}
Primary Country: {{ $products->first()->country_of_origin ?? 'Not set' }}
Primary Unit: {{ $products->first()->measurement_unit ?? 'Not set' }}
Merge Configuration
@csrf @foreach($products as $product) @endforeach
@error('merged_name')
{{ $message }}
@enderror
This will be the name of the new consolidated product.
@error('merge_reason')
{{ $message }}
@enderror
Optional explanation for the merge operation.
Important Notice
  • Original products will be archived (soft deleted)
  • All tender associations will be transferred to the new product
  • Merge history will be preserved for audit purposes
  • This action cannot be easily undone
Cancel
@push('scripts') @endpush @endsection