hope my solution solves your problem. To ensure the status attribute works correctly, modify your query to include the columns needed for the accessor:y and avoid additional queries.
$tickets = Tickets::select('id', 'title', 'date', 'payment', 'total', 'active')
->limit(100)
->get();
This way, all the necessary data for the custom attribute is fetched in the initial query.
Thanks