A model without a resource
Suppliers have no resource. FilamentWarpQuickLookPlugin::make()->look(Supplier::class, …) in the panel provider tells the plugin how to show them.
Note: Try it
Put the pointer on a supplier, then click it: the details list the supplier’s products.
| Name | Supplier |
|---|---|
|
Ballpoint pens (12)
|
Summit Office
|
|
Copy paper A3
|
Northwind Paper
|
|
Copy paper A4
|
Northwind Paper
|
|
Envelopes C5
|
Northwind Paper
|
|
Packing tape
|
Coastal Packaging
|
|
Ring binder
|
Summit Office
|
In your own Blade view
Wrap any text in <x-warp-quicklook::link :record="$supplier">. It works in your own pages and views.
Note: Try it
Put the pointer on a name in the lines below, then click it.
Suppliers: Atlas Hardware Coastal Packaging Northwind Paper Summit Office
Customers: Acme Corp Bluebird Foods Cedar & Pine Delta Logistics
In a widget
This widget lists the key accounts with the same Blade component. The two private accounts stay plain text: the component adds nothing to a record you may not view.
Note: Try it
Put the pointer on each name: Acme Corp and Delta Logistics have cards; the private accounts do not.