@section('title', ($product->seo_title ?: ($product->name . ' - ' . config('app.name', 'Bakies')))) @section('meta_description', ($product->seo_description ?: Str::limit(strip_tags($product->description), 160))) @section('meta_keywords', strtolower($product->name) . ', bakery, fresh pastry, ' . strtolower($product->category->name ?? 'treats')) @section('og_type', 'product') @if($product->images->first()) @section('og_image', asset('storage/' . $product->images->first()->image_path)) @endif @push('json-ld') @endpush
@if (session()->has('message'))
{{ session('message') }}
Cart
@endif @php $hasDiscount = ($product->discount_price && $product->discount_price > 0 && $product->discount_price < $product->price); $baseUnitPrice = $hasDiscount ? $product->discount_price : $product->price; $addOnsTotal = $this->addOnsTotal; $unitPrice = $baseUnitPrice + $addOnsTotal; $totalPayable = $unitPrice * $quantity; $totalOriginal = ($product->price + $addOnsTotal) * $quantity; $totalSavings = ($product->price - $baseUnitPrice) * $quantity; $cSettings = $product->customization_settings ?? []; $hasCustomization = !empty($cSettings['enabled']); @endphp
{{ $product->category->name ?? 'Fresh Daily' }}

{{ $product->name }}

Rs.{{ number_format($unitPrice, 2) }}
@if($hasDiscount)
Rs. {{ number_format($product->price, 2) }}
Save Rs. {{ number_format($product->price - $product->discount_price, 0) }} @endif
{!! $product->description !!}
@if($hasCustomization)
✨

Personalize Your Order

Handcrafted custom touches prepared fresh with love

{{-- 1. Custom Message on Cake / Card / Box --}} @if(!empty($cSettings['message_enabled']))
{{ mb_strlen($customMessage) }} / {{ $cSettings['message_max_length'] ?? 150 }}
@error('customMessage') {{ $message }} @enderror
@endif {{-- 2. Decorate Your Card --}} @if(!empty($cSettings['card_enabled'])) @php $cardPrice = (float) ($cSettings['card_price'] ?? 0); $cardOptions = $cSettings['card_options'] ?? []; @endphp
@if($cardPrice > 0) + Rs. {{ number_format($cardPrice, 0) }} @else Included Free @endif
@foreach($cardOptions as $opt) @php $isSelected = ($selectedCard === $opt); @endphp @endforeach
@endif {{-- 3. Decorate Your Box --}} @if(!empty($cSettings['box_enabled'])) @php $boxPrice = (float) ($cSettings['box_price'] ?? 0); $boxStyles = $cSettings['box_options'] ?? []; @endphp
@if($boxPrice > 0) + Rs. {{ number_format($boxPrice, 0) }} @else Included Free @endif
@foreach($boxStyles as $style) @php $isBoxSelected = ($selectedBox === $style); @endphp @endforeach
@endif
@endif
@if($product->ingredients)

✨ Ingredients

{{ $product->ingredients }}

@endif @if($product->allergens)

! Allergens

{{ $product->allergens }}

@endif
@if($product->images->first()) {{ $product->name }} @else
@if(Str::contains(strtolower($product->category->name ?? ''), 'cake')) 🎂 @elseif(Str::contains(strtolower($product->category->name ?? ''), ['bread', 'bun'])) 🍞 @elseif(Str::contains(strtolower($product->category->name ?? ''), 'cookie')) 🍪 @elseif(Str::contains(strtolower($product->category->name ?? ''), 'croissant')) 🥐 @else 🍰 @endif
@endif
{{ $hasDiscount ? 'Special Offer Price' : 'Total Price' }} @if($hasDiscount) Save Rs. {{ number_format($totalSavings, 0) }} @endif @if($addOnsTotal > 0) + Rs. {{ number_format($addOnsTotal * $quantity, 0) }} Add-ons @endif
Rs.{{ number_format($totalPayable, 2) }}
@if($hasDiscount)
Rs. {{ number_format($totalOriginal, 2) }}
@endif
@if($product->status !== 'available')
Out of Stock
@endif
{{ $quantity }}

Sweet Words

Hear from our lovely customers.

@if($reviews && $reviews->count() > 0)
{{ number_format($averageRating, 1) }}
★
({{ $reviews->count() }})
@endif @auth Write Review @else Log in to Review @endauth
@if($reviews && $reviews->count() > 0)
@foreach($reviews as $review)
@for($i = 1; $i <= 5; $i++) @if($i <= $review->rating) @else @endif @endfor
@if($review->comment)

"{{ $review->comment }}"

@endif
{{ $review->user->name }}
{{ $review->created_at->format('M Y') }}
@endforeach
@else
🥐

Be the First

There are no reviews for this delicious treat yet. Be the first to try it and share your thoughts!

@endif