@extends('backend.template.layouts.template-base')
@section('title', 'Vital Kitchen - ' . $product->name)
@section('content')
{{ $product->short_description }} {{ $product->name }} {{ $product->name_tamil ?: '-' }} {{ $product->group?->name ?: '-' }} {{ $product->product_code }} {{ $product->min_order_qty }} {{ $product->max_order_qty }} {{ $product->seo->image_alt ?: '-' }} {{ $product->seo->meta_title ?: '-' }} {{ $product->seo->meta_description ?: '-' }} {{ $product->seo->schema ?: '-' }} {{ $product->seo->h1 ?: '-' }}
Edit Product
Duplicate Product
@else
@endif
{{ $product->name }}
@if ($product->short_description)
Product Info
Ingredients
Total: {{ $product->ingredients->count() }} |
MRP (Standards): ₹{{ number_format($product->ingredients->where('pivot.ingredient_type', 'standard')->sum('mrp'), 2) }}
@php
$allIngredients = $product->ingredients;
$ungrouped = $allIngredients->filter(fn($i) => is_null($i->pivot->group_id));
$grouped = $allIngredients->filter(fn($i) => !is_null($i->pivot->group_id));
$sno = 1;
@endphp
{{-- Ungrouped --}}
@foreach ($ungrouped as $ing)
S.No
Image
Ingredient Name
Variant & Units
Price ₹
Type
Pre-Suggested
@endforeach
{{-- Grouped --}}
@foreach ($product->ingredientGroups as $group)
@php $members = $grouped->filter(fn($i) => $i->pivot->group_id === $group->id); @endphp
@if ($members->count())
{{ $sno++ }}
@if ($ing->image)
@else
@endif
{{ $ing->name }}
{{ $ing->name_tamil }}{{ $ing->variant_label }}
₹{{ number_format($ing->mrp, 2) }}
@if ($ing->pivot->ingredient_type === 'standard')
Standard
@else
Dressing
@endif
@if ($ing->pivot->ingredient_type === 'standard')
Mandatory
@else
@if ($ing->pivot->is_suggested)
Yes
@else
No
@endif
@endif
@foreach ($members as $ing)
{{ $sno++ }}
{{ $group->label }}
• {{ $members->count() }} ingredients
@if($group->section_type) | {{ str_replace('_', ' ', $group->section_type) }} @endif
@if($group->min_dressings || $group->max_dressings) | Pick {{ $group->min_dressings }}–{{ $group->max_dressings }} @endif
@endforeach
@endif
@endforeach
@if ($product->ingredients->isEmpty())
@else
@endif
{{ $ing->name }}
{{ $ing->name_tamil }}{{ $ing->variant_label }}
₹{{ number_format($ing->mrp, 2) }}
@if ($ing->pivot->ingredient_type === 'standard')
Standard
@else
Dressing
@endif
@if ($ing->pivot->ingredient_type === 'standard')
Mandatory
@elseif ($ing->pivot->is_suggested)
Yes
@else
No
@endif
@endif
No ingredients added.
SEO Settings