import React from "react"; import '../UtilComponents/App.css' const AdminReport = (props) => { return(

Report for every driver


{props.report.map((term) => { return( ) })}
Driver Email Driver Full Name Car make Car model Driver Grade Number Of Drives Total Money Made Number Of Different Requests Number Of Different Passengers Money Per Request Total kilometers driven
{term.driverEmail} {term.driverName} {term.driverSurname} {term.make} {term.model} {(Math.round(term.driverGrade * 100) / 100).toFixed(2)} {term.numberOfDrives} drives {(Math.round(term.totalMoneyMade * 100) / 100).toFixed(2)} MKD {term.numberOfDifferentRequests} requests {term.numberOfDifferentPassengers} passengers {(Math.round(term.averageMoneyPerRequest * 100) / 100).toFixed(2)} MKD {(Math.round(term.totalKmTravelled * 100) / 100).toFixed(2)} km
props.onDownloadReport()} style={{borderColor: 'black', backgroundColor: 'cyan', color: "black"}}>Download Report
) } export default AdminReport;