$booking_system->getRouteKey(), 'key' => [ 'public' => $booking_system->getPublicKey(), 'route' => $booking_system->getRouteKey(), ], 'bus_name' => $booking_system->bus_name, 'source' => $booking_system->source, 'destination' => $booking_system->destination, 'date' => $booking_system->date, 'time' => $booking_system->time, 'total_tickets' => $booking_system->total_tickets, 'sold_tickets' => $booking_system->sold_tickets, 'available_tickets' => $booking_system->available_tickets, 'url' => [ 'public' => trans_url('booking_system/'.$booking_system->getPublicKey()), 'user' => guard_url('booking_system/booking_system/'.$booking_system->getRouteKey()), ], 'status' => trans('app.'.$booking_system->status), 'created_at' => format_date($booking_system->created_at), 'updated_at' => format_date($booking_system->updated_at), ]; } }