@extends('admin.layouts.main') @php $page_name = 'Product Infomation'; @endphp @section('content')

{{ $page_name }}

Map Image
@if ($product)
Basic Information

ID: {{ emptyTo_mess($product['id'], 'N/A') }}

Product Name: {{ emptyTo_mess($product['product_name'], 'N/A') }}

Category: {{ emptyTo_mess($product['category_name'], 'N/A') }}

Sub Category: {{ emptyTo_mess($product['sub_category_name'], 'N/A') }}

Brand: {{ emptyTo_mess($product['brand_name'], 'N/A') }}

Product Code: {{ emptyTo_mess($product['product_code'], 'N/A') }}

Unit: {{ emptyTo_mess($product['unit'], 'N/A') }}

In Stock: {{ $product['instock'] ? 'Yes' : 'No' }}

Pricing Information

Purchase Price: {{ emptyTo_mess($product['purchase_price'], 'N/A') }}

MRP: {{ emptyTo_mess($product['mrp'], 'N/A') }}

Discount: {{ emptyTo_mess($product['discount'], 'N/A') }}

GST: {{ emptyTo_mess($product['gst'], 'N/A') }}

Sales Price: {{ emptyTo_mess($product['sales_price'], 'N/A') }}

Branding Cost: {{ emptyTo_mess($product['branding_cost'], 'N/A') }}

Shipping Cost: {{ emptyTo_mess($product['shipping_cost'], 'N/A') }}

CGST: {{ emptyTo_mess($product['cgst'], 'N/A') }}

SGST: {{ emptyTo_mess($product['sgst'], 'N/A') }}

Additional Information

Weight: {{ emptyTo_mess($product['weight'], 'N/A') }}

Material: {{ emptyTo_mess($product['material'], 'N/A') }}

Size: {{ emptyTo_mess($product['size_name'], 'N/A') }}

HSN Code: {{ emptyTo_mess($product['hsn_code'], 'N/A') }}

{{-- product image --}} @if ($product['video'] != '')
@endif
Product Images
@for ($i = 1; $i <= 5; $i++) @php $imageField = 'product_image_' . $i; @endphp @if (!empty($product[$imageField]))
Product Image
@else
@endif @endfor
@csrf
Add More Information
@error('more_info_title')
{{ $message }}
@enderror
@error('more_info_image')
{{ $message }}
@enderror
@error('image_side')
{{ $message }}
@enderror
@error('more_info_description')
{{ $message }}
@enderror
More Information Banners
@foreach ($more_info as $k => $info)
@csrf
@if ($info->image_site === 'right')
@csrf
@csrf {{ $info->title }}
@else
@csrf {{ $info->title }}
@csrf
@endif
@csrf
image_site == 'left' ? 'checked' : '' }} disabled>
image_site == 'right' ? 'checked' : '' }} disabled>
@endforeach
@else @endif
@include('components.alertmodal', [ 'modal_id' => 'deletePro_imgModal', 'form_id' => 'deletePro_imgForm', 'action' => route('admin.deleteproductimg'), 'modal_title' => 'Alert!', 'input_id' => 'deletePro_imgId', 'modal_mess' => 'Are you sure you want to delete this Image?', 'button_type' => 'submit', 'button_id' => 'confirmDeletePro_imgButton', ]) @include('components.alertmodal', [ 'modal_id' => 'deleteBannerModal', 'form_id' => 'deleteBannerForm', 'action' => route('admin.deleteprojectbanner'), 'modal_title' => 'Alert!', 'input_id' => 'deleteBannerId', 'modal_mess' => 'Are you sure you want to delete this Banner?', 'button_type' => 'submit', 'button_id' => 'confirmDeleteBannerButton', ]) @endsection @section('script') @endsection