@extends('admin.layout') @section('title', 'Menu Items') @section('content') {{-- ── 5 Data Summary Cards ── --}} {{-- Table Card --}}
@if(request('search') || request('category')) Clear @endif
All @foreach($categories as $cat) {{ $cat->name }} @endforeach
@forelse($items as $item) @empty @endforelse
ItemCategoryBase PriceFlavorsModifiersAdd-onsFeaturedStatusActions
{{ $item->name }}
{{ $item->name }} {{ Str::limit($item->description,45) }}
{{ $item->category->name }} ₱{{ number_format($item->price,2) }} @php $flavors = $item->modifierGroups->where('type','flavor'); @endphp @if($flavors->count()) {{ $flavors->count() }} group{{ $flavors->count()>1?'s':'' }} @else @endif @php $mods = $item->modifierGroups->where('type','modifier'); @endphp @if($mods->count()) {{ $mods->count() }} group{{ $mods->count()>1?'s':'' }} @else @endif @php $addons = $item->modifierGroups->where('type','addon'); @endphp @if($addons->count()) {{ $addons->count() }} add-on{{ $addons->count()>1?'s':'' }} @else @endif @if($item->featured) Yes @else @endif
@csrf @method('DELETE')
No items found.
{{-- ══════════════════════════════════════════════════════ ADD / EDIT ITEM MODAL (shared, toggled by JS) ══════════════════════════════════════════════════════ --}} {{-- ══════════════════════════════════════════════════════ INLINE STYLES FOR MODIFIER BUILDER ══════════════════════════════════════════════════════ --}} @endsection