Proyecto shipsGo. ¿Qué es shipsGo? ShipsGo, es una plataforma que brinda mecanismos para hacer seguimiento de tus embarques, con lo que puedes mantenerte enterado de la trayectoria de tu carga, desde el momento en que zarpa la motonave, incluyendo los movimientos que suceden en el trayecto de recorrido hasta que la carga llega a su destino. Requerir seguimiento a shipsGo. Selección de los DO: Contamos con un robot que revisa la base de datos con un determinado intervalo de tiempo, en busca de los DO, que cuentan con numero de BL y esté definida la fecha de zarpe de la motonave. Solicitar seguimiento a shipsGo: Con os DO seleccionados, Se hace un requerimiento a shipsGo, para que se disponga a suministrarnos la información de seguimiento. Estados de las solicitudes en shipsGo: NEW - The shipment has not been checked by the ShipsGo system yet. INPROGRESS - The carrier hasn't provided any information about the shipment yet. ShipsGo system will continue to check periodically. BOOKED - The shipment has been reserved with the carrier for transport, but it has not yet been loaded. LOADED - The shipment has been loaded onto the vessel, but it has not yet departed from the port of loading. SAILING - The shipment is currently in transit, on its way to the port of discharge. ARRIVED - The shipment's vessel has arrived at the port of discharge, but the shipment has not yet been discharged from the vessel. DISCHARGED - The shipment has been discharged from the vessel at the port of discharge. UNTRACKED - There is no available tracking information for the shipment. Container/MBL/Booking number might be invalid, or the carrier may not have a public tracking system. El filtro del KPI en nuestro código PHP (Negocio) En el método render() de nuestro componente Livewire, definimos la métrica Embarques Activos de la siguiente manera: 'activos' => $todosLosEnvios->whereNotIn('status', ['DISCHARGED', 'ARRIVED'])->count(),