List of Promissory Notes

@foreach($lists as $list)
Notice: Undefined variable: list in D:\xampp\htdocs\dmmc\dmmc.back0118\resources\views\accounting\ajax\displaypromissorynotes.blade.php on line 25

Notice: Trying to get property of non-object in D:\xampp\htdocs\dmmc\dmmc.back0118\resources\views\accounting\ajax\displaypromissorynotes.blade.php on line 25
@endforeach
Create Date PN No. Student Name Course / Strand
Yr. Level / Section
Due Date Status Amount Actions
{{++$x}} {{date_format(date_create($list->transaction_date),"F d, Y")}} {{str_pad($list->pn_no,4,"0",STR_PAD_LEFT)}} {{$list->lastname}} {{$list->extensionname}}, {{$list->firstname}} {{$list->middlename}} @if($list->program_code != "Senior High School") {{$list->program_code}} / @endif {{$list->track}} / {{$list->section}} {{date_format(date_create($list->due_date),"F d, Y")}} @if($list->pn_status == 0) Unpaid @else Paid @endif {{number_format($list->amount,2)}} @if($list->pn_status == 0) Update@endif Print
TOTAL{{number_format($total,2)}}