This study developed a deterministic transmission model for the coronavirus disease of 2019 (COVID-19), considering various factors such as vaccination, awareness, quarantine, and treatment resource limitations for infected individuals in quarantine facilities. The proposed model comprised five compartments: susceptible, vaccinated, quarantined, infected, and recovery. It also considered awareness and limited resources by using a saturated function. Dynamic analyses, including equilibrium points, control reproduction numbers, and bifurcation analyses, were conducted in this research, employing analytics to derive insights. Our results indicated the possibility of an endemic equilibrium even if the reproduction number for control was less than one. Using incidence data from West Java, Indonesia, we estimated our model parameter values to calibrate them with the real situation in the field. Elasticity analysis highlighted the crucial role of contact restrictions in reducing the spread of COVID-19, especially when combined with community awareness. This emphasized the analytics-driven nature of our approach. We transformed our model into an optimal control framework due to budget constraints. Leveraging Pontriagin's maximum principle, we meticulously formulated and solved our optimal control problem using the forward-backward sweep method. Our experiments underscored the pivotal role of vaccination in infection containment. Vaccination effectively reduces the risk of infection among vaccinated individuals, leading to a lower overall infection rate. However, combining vaccination and quarantine measures yields even more promising results than vaccination alone. A second crucial finding emphasized the need for early intervention during outbreaks rather than delayed responses. Early interventions significantly reduce the number of preventable infections, underscoring their importance.