@extends('layouts.app') @section('title', $product->exists ? 'Edit Product' : 'New Product') @php $restaurantDepartmentId = $departments->firstWhere('slug', 'restaurant')?->id; $barDepartmentId = $departments->firstWhere('slug', 'bar')?->id; $restaurantCategories = $categories->where('department_id', $restaurantDepartmentId)->values(); $barCategories = $categories->where('department_id', $barDepartmentId)->values(); @endphp @section('content')
Choose the business branch, department and category. Stock is maintained once per branch; categories distinguish products.