@extends('user.layouts.master') @section('content') Our Menu @csrf {{ $orderCount == 0 ? 'No orders to view' : 'View your order' }} @if($cartCount > 0) View Cart @endif Categories All Categories @foreach ($categories as $item) {{ $item->name }} @endforeach @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) sizes) === 1 ? 'disabled' : '' }}> @foreach($item->sizes as $size) {{ strtoupper($size->size[0]) }} @endforeach @endif ✏️ @endforeach Add Special Instructions {{ $products->links() }} @endsection @section('scripts') @endsection
{{ Str::words($item->description, 8, '...') }}