I'm a beginner in laravel. I have a index.blade.php file that data is in table form:
<table class="table table-striped">
<thead>
<tr>
<td>ID</td>
<td>Name</td>
<td>Available Date</td>
<td colspan = 2>Actions</td>
</tr>
</thead>
<tbody id="myTable">
@foreach($event_detail['participants'] as $participant)
<tr>
<td class="can_filter">{{ $participant['id'] }}</td>
<td class="can_filter" onmouseover="tooltip(this);">{{ $participant['name'] }}</td>
<td class="can_filter">{{ $participant['date'] }}</td>
<td>
<a href="{{ route('participants.edit', $participant['id']) }}" class="btn btn-primary">
Edit</a>
</td>
<td>
<form action="{{ route('participants.destroy', $participant['id']) }}" method="post">
@csrf
@method('DELETE')
<button class="btn btn-danger" type="submit">
Delete</button>
</form>
</td>
</tr>
@endforeach
</tbody>
</table>
and I want to show some eloquent data(participant name, date which is in mysql DB. and it's connected already.) with this "tooltip(this);" JS function:
$("tr").tooltip({
track: true,
$.ajax({
url:
type:'post',
data:
success: function(){
}
});
}
});
but I have no idea which attribute this tooltip function needs. any ideas?
trand there are multiple ajax spamming your server. Just a tip :)$participant->date(supposed there's "participant" table and "date" column in DB) ] on tooltip using ajax. And also you're right.. hmm.. thenonclickmight be better..