@extends('layouts.app') @section('title', 'POS Products') @section('nav_pos', 'bg-teal-50 text-teal-700 font-semibold') @section('page_title', 'Product Catalog') @section('page_subtitle', 'Manage POS products and services') @section('content') @if(session('success'))

{{ session('success') }}

@endif @if($errors->any())
@endif @php $catLabels = [ 'food_beverage' => 'Food & Bev', 'laundry' => 'Laundry', 'telephone' => 'Telephone', 'minibar' => 'Minibar', 'damage' => 'Damage', 'other' => 'Misc', ]; $catColors = [ 'food_beverage' => 'bg-orange-50 text-orange-700 border-orange-200', 'laundry' => 'bg-blue-50 text-blue-700 border-blue-200', 'telephone' => 'bg-purple-50 text-purple-700 border-purple-200', 'minibar' => 'bg-amber-50 text-amber-700 border-amber-200', 'damage' => 'bg-red-50 text-red-600 border-red-200', 'other' => 'bg-gray-50 text-gray-500 border-gray-200', ]; @endphp
Back to POS
{{-- Add Product --}}
@csrf
{{-- Image upload --}}
{{-- Preview --}}

JPG, PNG, GIF or WebP · max 2 MB

{{-- Product table --}}

{{ $products->count() }} Products

@if($products->isEmpty())
No products yet. Add the first one above.
@else @foreach($products as $product) {{-- Thumbnail --}} {{-- Name --}} {{-- Category --}} {{-- Price --}} {{-- Status --}} {{-- Actions --}} {{-- Hidden edit form (multipart for file upload) --}} @endforeach
Name Category Price Status
@if($product->image_path) {{ $product->name }}
@else @endif

{{ $product->name }}

@if($product->description)

{{ $product->description }}

@endif {{-- Image controls in edit mode --}}
@if($product->image_path) @endif
{{ $catLabels[$product->category] ?? $product->category }} ₱{{ number_format($product->price, 0) }} @if($product->active) Active @else Inactive @endif
@csrf @method('PATCH')
@csrf @method('DELETE')
{{-- Edit mode save/cancel --}}
@endif
@endsection