Please kindly check my english grammar below:

Dear Sir,

My late attendance at work was due to the transportation were leaving at our accommodation at 8:30 am and our duty time would start at 9:00 am the distance going to work would be imposssible to reach on time since that time has a heavy traffic. transportation would be leaving from accommodation at least in early time at 8:00 am to avoid late coming at work.

we should need your help at this time kindly inform or advise to our driver mr, koby that he should be leaving from accommodation as early as 8:00 am. afternoon shift would be much better since the transportation were leaving from accommodation at 12:30 noon and the work would start at 2:00pm it's enough time to avoid late coming at work place.

thank you for you kind support and understanding.
i look forward to hearing your prompt advise or inform to the driver mr. koby regading this matter.

thank you and best regards.

a. The letter itself is really bad. You are asking the boss of advice? He will throw the letter away, mumbling why can't you figure how to get to work on time. That part of work is your responsibility.

b. I know, it is an assignment.
b1. When are you supposed to capitalize the first letter of a word? Review that lesson, you missed it, or forgot it. https://www.grammarbook.com/punctuation/capital.asp
b2. Use of pronouns. The second paragraph begins with "we". You are not British royality, and suspect you meant "I". If it is "we", you need to explain.

Dear Sir,

I apologize for my late attendance at work. The reason for my delay was that the transportation from our accommodation did not depart until 8:30 am, while our duty time begins at 9:00 am. Additionally, the distance to our workplace is challenging to cover in a timely manner due to heavy traffic during that time. To prevent further tardiness, it would be beneficial if the transportation could leave from our accommodation at 8:00 am, allowing us sufficient time to reach work.

Furthermore, for the afternoon shift, it would be even more convenient if the transportation departed from our accommodation at 12:30 pm, as work starts at 2:00 pm. This schedule adjustment would provide ample time to avoid being late to the workplace.

I kindly request your assistance in informing or advising our driver, Mr. Koby, about the need to leave from the accommodation earlier. Your support and understanding are greatly appreciated. I am eagerly awaiting your prompt advice or communication with Mr. Koby regarding this matter.

Thank you and best regards.