@extends('layouts.app') @section('title', $product->exists ? 'Edit Product' : 'New Product') @php $restaurantDepartmentId = $departments->firstWhere('slug', 'restaurant')?->id; $restaurantCategories = $categories->where('department_id', $restaurantDepartmentId)->values(); $singleBranchId = (int) session('active_branch_id'); @endphp @section('content')

{{ $product->exists ? 'Edit product' : 'New Product' }}

Add prepared menu items or direct-sale products such as soda. Prepared items use recipes; direct-sale products maintain their own stock.

@csrf @if ($product->exists) @method('PUT') @endif
{{ \App\Models\Department::nameFor('restaurant', 'Restaurant') }}: choose whether this is a prepared item that uses ingredients or a direct-sale product such as soda.

Optional.

Orders for this product will be routed to the selected preparation display or printer.

@if ($product->image_path) @endif
Prepared menu item: select a preparation department and use a recipe to deduct ingredients automatically.
Direct-sale product: no recipe or preparation department is needed. Stock is deducted from inventory when the product is billed.
Cancel
@endsection