@extends('layouts.app') @section('title', 'Product Masters - Quotation App') @section('styles') @endsection @section('content')
@if(session('success'))
✓ {{ session('success') }}
@endif

Product Masters

@if($productMasters->count() > 0) @foreach($productMasters as $master) @endforeach
# Product Name Models Accessories Actions
{{ $loop->iteration }} {{ $master->product_name }} {{ $master->products->unique('product_model')->count() }} models @php $stdCount = count($master->getStandardAccessoriesArray()); $optCount = count($master->getOptionalAccessoriesArray()); @endphp @if($stdCount > 0 || $optCount > 0)
@if($stdCount > 0) ✓ {{ $stdCount }} std @endif @if($optCount > 0) ◇ {{ $optCount }} opt @endif
@else - @endif
View Edit
@csrf @method('DELETE')
@else

No Product Masters yet

Click the "Add Master" button to create your first product master.

@endif
@endsection