@extends('user.layouts.master') @section('content')

Our Menu

@csrf
@if($cartCount > 0) @endif

Categories

@foreach ($products as $item)
{{ $item->category_name }}
{{ $item->name }}
Prices: @foreach($item->sizes->take(3) as $size)
@php $hasDiscount = $item->discount_percentage && $item->discountPrice; $originalPrice = $size->price; $discountedPrice = round($size->price - ($size->price * $item->discount_percentage / 100), 2); @endphp @if ($hasDiscount) MMK {{ $discountedPrice }} MMK {{ $originalPrice }} @else MMK {{ $originalPrice }} @endif
@endforeach

{{ Str::words($item->description, 8, '...') }}

@csrf @if(count($item->sizes ?? []) > 0) @endif
@endforeach
@endsection @section('scripts') @endsection