Next, we want to build an info list (View) page for our Customers. This page has to display all the information we have on our Customer along with a list of Pipeline Status logs:

In this lesson, we will do the following:
- Create an InfoList View
- Update Table row click to point to the View page
- Create a custom component to display the Pipeline Status logs
Creating InfoList Page
Let's get to work and create a new file for our View:
php artisan make:filament-page ViewCustomer --resource=CustomerResource --type=ViewRecord
This should create the following file:
app/Filament/Resources/CustomerResource/Pages/ViewCustomer.php
namespace App\Filament\Resources\CustomerResource\Pages; use App\Filament\Resources\CustomerResource;use Filament\Resources\Pages\CreateRecord;use Filament\Resources\Pages\ViewRecord; class ViewCustomer extends ViewRecord{ protected static string $resource = CustomerResource::class;}
Once this is done, we can go ahead and create...
Hello there, i got this
foreach() argument must be of type array|object, null given
C:\laragon\www\crm\resources\views\infolists\components\pipeline-stage-history-list.blade.php: 2
Hi, this seems like a missed step somewhere. Could you add a bit more code on what you did or flare report share?
The error message says that there are no pipeline stages on your Customer, which is due to bad relationship name or a typo somewhere (could be missed code piece or anything else like that)