@extends('layouts.app') @section('title') Show Product | {{ config('app.name') }} @endsection @section('content')

Product Details

{{ $product->name }}

Created : {{ date('d M, Y', strtotime($product->created_at)) }}
@if ($product->is_approved == 0) @else @endif

Price :

₹{{ $product->amount }} @if ($product->amount < $product->old_amount) ₹{{ $product->old_amount }} @endif

CRC Value :

{{ $product->crc_value + 0 }} @if ($product->crc_type == 1) % @else (No's) @endif

E-Coins :

{{ $product->e_coin + 0 }} @if ($product->e_coin_type == 1) % @else (No's) @endif

Cashback Points :

{{ $product->cashback_points + 0 }} @if ($product->cashback_points_type == 1) % @else (No's) @endif

Available Stock (Qty) :

{{ $product->in_stock_qty + 0 }}

eCoin Redeem Value :

{{ $product->ecoin_redeem_value + 0 }} @if ($product->ecoin_redeem_type == 1) % @else (No's) @endif

Maximum eCoin Redeem Value :

{{ $product->maximum_ecoin_redeem_value != 0 ? $product->maximum_ecoin_redeem_value : 'No limit' }}
@if ($product->pricings->isNotEmpty())
Pricing Info :
@foreach ($product->pricings as $pricing) @endforeach
Default Variant Unit Label MRP Discount Type Discount Value Selling Price Shipping Status
@if ($pricing->is_default) Default @else - @endif {{ $pricing->variant?->name ?? '-' }} {{ $pricing->unit?->name ?? '-' }} {{ $pricing->label }} ₹{{ number_format($pricing->mrp, 2) }} {{ $pricing->discount_type ? ucfirst($pricing->discount_type) : '-' }} {{ $pricing->discount_value + 0 }} ₹{{ number_format($pricing->selling_price, 2) }} {{ $pricing->shipping_cost > 0 ? '₹' . number_format($pricing->shipping_cost, 2) : 'Free' }} @if ($pricing->status) Active @else Inactive @endif
@endif
Description :

{{ $product->description }}

Specification :

Product Code:

{{ $product->product_code }}

HSN Code:

{{ $product->hsn_code }}

GST %:

{{ $product->gst_percentage }}%

Shipping Code:

{{ $product->shipping_cost > 0 ? '₹' . $product->shipping_cost : 'Free' }}
Features

Product Status

@if ($product->status == 1) Active @else Inactive @endif

Eligible Delivery Only In Tamilnadu?

@if ($product->is_delivery_within_tamilnadu == 1) Yes @else No @endif

Stock Status

@if ($product->is_in_stock == 1) In Stock @else Out of stock @endif

Approval Status

@if ($product->is_approved == 1) Approved @elseif ($product->is_approved == 2) Rejected @else Pending @endif

Approval Remarks:

{{ $product->approval_remarks }}

Approval At:

{{ $product->approved_at ? date('d M, Y H:i A', strtotime($product->approved_at)) : '-' }}
@if ($product->product_info_image)
@php $bannerExt = strtolower(pathinfo($product->product_info_image, PATHINFO_EXTENSION)); $isBannerPdf = $bannerExt === 'pdf'; @endphp
{{ $isBannerPdf ? 'Product Info PDF' : 'Product Info Image' }}
@endif @if ($product->product_info_video) @endif
@endsection