Diabetic retinopathy, glaucoma, and age-related macular degeneration are among the leading causes of global visual loss. Early detection and diagnosis of these conditions are crucial to reduce vision loss and improve patient outcomes. In recent years, deep learning algorithms have shown great potential in automating the diagnosis and categorization of eye disorders using medical photos. For this purpose, the ResNet-50 architecture is employed in a deep learning-based strategy. The approach involves fine-tuning a pre-trained ResNet-50 model using over 5,000 retinal pictures from the ODIR dataset, covering ten different ocular diseases. To enhance the model's generalization performance and avoid overfitting, various data augmentation techniques are applied to the training data. The model successfully detects glaucoma-related ocular illnesses, including cataract, diabetic retinopathy, and healthy eyes. Performance evaluation using metrics like accuracy, precision, recall, and F1-score shows that the model achieved 92.60% accuracy, 93.54% precision, 91.60% recall, and an F1-score of 91.68%. These results indicate that the proposed strategy outperforms many state-of-the-art approaches in the detection and categorization of eye disorders. This success underscores the potential of deep learning-based methods in automated ocular illness identification, facilitating early diagnosis and timely treatment to ultimately improve patient outcomes.