| 1 | import React from "react";
|
|---|
| 2 | import Potrosuvac from "../../assets/images/regularUser.jpg";
|
|---|
| 3 | import Menager from "../../assets/images/manager.jpg";
|
|---|
| 4 | import Vozac from "../../assets/images/food-driver.jpg";
|
|---|
| 5 | import Admin from "../../assets/images/admin.jpg";
|
|---|
| 6 | import {Card, CardContent, CardHeader, Grid, Typography} from "@mui/material";
|
|---|
| 7 | import {UserRole} from "../../services/user-service";
|
|---|
| 8 | import {formatDate} from "../functions";
|
|---|
| 9 |
|
|---|
| 10 | const PaymentCard = ({payment}) => {
|
|---|
| 11 | return (
|
|---|
| 12 | <Card variant="elevation" className={"card-zoom"}>
|
|---|
| 13 | <CardHeader title={`Transaction Number #${payment.id}`}/>
|
|---|
| 14 | <CardContent>
|
|---|
| 15 | <Grid container direction={"column"} justifyContent={"start"} alignItems={"start"}>
|
|---|
| 16 | <Typography className={"text-center"} variant="h5">
|
|---|
| 17 | <b>Order Number: </b> #{payment.naracka.id}
|
|---|
| 18 | </Typography>
|
|---|
| 19 | <Typography className={"text-center"} variant="h5">
|
|---|
| 20 | <b>Total :</b> {payment.iznos} MKD
|
|---|
| 21 | </Typography>
|
|---|
| 22 | <Typography className={"text-center"} variant="h5">
|
|---|
| 23 | <b>Transaction Type: </b> {payment.nacinNaPlakjane}
|
|---|
| 24 | </Typography>
|
|---|
| 25 | <Typography className={"text-center"} variant="h5">
|
|---|
| 26 | <b>Date: </b> {formatDate(payment.naracka.datum)}
|
|---|
| 27 | </Typography>
|
|---|
| 28 | <Typography className={"text-center"} variant="h5">
|
|---|
| 29 | <b>Order Status:</b> {payment.naracka.status}
|
|---|
| 30 | </Typography>
|
|---|
| 31 | </Grid>
|
|---|
| 32 | </CardContent>
|
|---|
| 33 | </Card>
|
|---|
| 34 | )
|
|---|
| 35 | }
|
|---|
| 36 |
|
|---|
| 37 | export default PaymentCard; |
|---|