@extends('admin.layouts.app') @section('panel') @php $pageTitle = 'Vendor Product Details'; @endphp @push('breadcrumb-plugins') Back @endpush
@php $status = $product->vendor_product_status ?? 'approved'; $badge = ['pending'=>'badge--warning','approved'=>'badge--success','rejected'=>'badge--danger'][$status] ?? 'badge--secondary'; $autoShow = (bool)($product->auto_show_on_approve ?? false); @endphp
PRODUCT REVIEW

{{ $product->name }}

Vendor product details, image, price, stock এবং approval action।

{{ ucfirst($status) }} @if($autoShow) Auto Show @endif

{{ $product->name }}

Code{{ $product->product_code ?? $product->code ?? '-' }}
Category{{ $product->category->name ?? '-' }}
Sub Category{{ $product->subCategory->name ?? '-' }}
Stock{{ $product->stock ?? 0 }}
Customer Price৳{{ number_format((float)($product->customer_price ?? 0), 2) }}
Reseller Price৳{{ number_format((float)($product->reseller_price ?? 0), 2) }}
Auto Show @if($autoShow) Enabled @else Disabled @endif
{{ strtoupper(substr($product->vendor->name ?? 'V', 0, 1)) }}
{{ $product->vendor->name ?? '-' }} {{ $product->vendor->mobile ?? $product->vendor->email ?? '-' }}
{!! nl2br(e($product->description ?? 'No description')) !!}
@if(!empty($product->rejected_reason))
Rejected Reason: {{ $product->rejected_reason }}
@endif
@if($status === 'pending')
@csrf
@csrf
@endif @if($status === 'approved')
@csrf
@endif
@endsection @push('style') @endpush