larazeus popover pop under table header/footer
Hello, having a problem, when i add a popover in a table, it's showing under the tablefooter/header.
Here the popover code:
the blade.php content:
I didnt had this problem before, maybe the last update had broke something?
PopoverColumn::make("leads")
->getStateUsing(function ( Dossiers $record){
$leads = Dossiers::withCount('leads')->whereId($record->id)->first();
$leadsSuffix = $leads->leads_count>1? __("leads"):__("lead");
return $leads->leads_count." ".$leadsSuffix;
})
->translateLabel()
->searchable()
->trigger('click')
->placement('bottom')
->offset(10)
->popOverMaxWidth('none')
->icon('heroicon-s-eye')
->content(fn($record) => view('fragments.leads', ['record' => $record])),
PopoverColumn::make("leads")
->getStateUsing(function ( Dossiers $record){
$leads = Dossiers::withCount('leads')->whereId($record->id)->first();
$leadsSuffix = $leads->leads_count>1? __("leads"):__("lead");
return $leads->leads_count." ".$leadsSuffix;
})
->translateLabel()
->searchable()
->trigger('click')
->placement('bottom')
->offset(10)
->popOverMaxWidth('none')
->icon('heroicon-s-eye')
->content(fn($record) => view('fragments.leads', ['record' => $record])),
@php($leads = $record->leads()->get())
<div style="padding: 15px">
@forelse($leads as $lead)
<div style="word-wrap: break-word; width: 300px; padding-bottom: 10px">
<span class="text-gray-500">
<b>{{__("Leads title")}}:</b> {{$lead->leads_title}}
</span>
<br>
<b>
{{__("Full name")}}:
</b>
<i style="word-wrap: break-word;">
{{$lead->leads_nom}} {{$lead->leads_prenom}}
</i>
<br>
@if(!empty($lead->leads_raison_sociale))
<b>
{{__("Leads raison sociale")}}:
</b>
<i style="word-wrap: break-word;">
{{$lead->leads_raison_sociale}}
</i>
<br>
@endif
</div>
@if (!$loop->last)
<hr>
@endif
@empty
{{__("No data")}}
@endforelse
</div>
@php($leads = $record->leads()->get())
<div style="padding: 15px">
@forelse($leads as $lead)
<div style="word-wrap: break-word; width: 300px; padding-bottom: 10px">
<span class="text-gray-500">
<b>{{__("Leads title")}}:</b> {{$lead->leads_title}}
</span>
<br>
<b>
{{__("Full name")}}:
</b>
<i style="word-wrap: break-word;">
{{$lead->leads_nom}} {{$lead->leads_prenom}}
</i>
<br>
@if(!empty($lead->leads_raison_sociale))
<b>
{{__("Leads raison sociale")}}:
</b>
<i style="word-wrap: break-word;">
{{$lead->leads_raison_sociale}}
</i>
<br>
@endif
</div>
@if (!$loop->last)
<hr>
@endif
@empty
{{__("No data")}}
@endforelse
</div>
2 Replies
Sounds like a bug in the plugin. Please use #lara-zeus-popover for support with the plugin.
It was indeed a bug, and it's corrected