{{-- Quick-add modal. Posts as JSON to the normal store route; see resources/js/pages/quick-add.js --}} @php $isClient = $type === 'client'; $route = $isClient ? route('clients.store') : route('vendors.store'); $label = $isClient ? 'client' : 'vendor'; @endphp