| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304 | import React, { Component } from 'react';import Link from "next/link";import { Row, Col, Card, CardHeader, CardBody, Table, Button } from 'reactstrap';import { Line } from 'react-chartjs-2';function TableRadar({ listData, to, linkName, jadwal, pemeriksaan, sanksi, keberatan, banding, perbaikan, cabutSanksi, all_Laporan, tuntasDitutup, tuntasCabutsanksi, delegasi }) {    return (        <Card className="card-default">            <CardBody style={{                outerWidth: "700"            }}>                <Table bordered responsive>                    <thead>                        <tr >                            <th rowspan="2"                                style={{                                    verticalAlign: "middle",                                    textAlign: "center",                                }}                            >Wilayah LLDikti\Menu</th>                            <th                                rowspan="2"                                style={{                                    color: "black",                                    verticalAlign: "middle",                                }}>Jumlah Laporan</th>                            <th                                colSpan="2"                                style={{                                    backgroundColor: '#e8f2f1',                                    color: "black",                                    textAlign: "center",                                }}>Pelaporan Tuntas</th>                            <th                                rowspan="2"                                style={{                                    backgroundColor: '#80b1ff',                                    color: "black",                                    textAlign: "center",                                    verticalAlign: "middle",                                }}>1. Penjadwalan Evaluasi</th>                            <th                                rowspan="2"                                style={{                                    backgroundColor: '#de8383',                                    color: "black",                                    textAlign: "center",                                    verticalAlign: "middle",                                }}>2. Pemeriksaan</th>                            <th                                rowspan="2"                                style={{                                    backgroundColor: '#fdda80',                                    color: "black",                                    textAlign: "center",                                    verticalAlign: "middle",                                }}>3. Sanksi</th>                            <th                                rowspan="2"                                style={{                                    backgroundColor: '#cfab80',                                    color: "black",                                    textAlign: "center",                                    verticalAlign: "middle",                                }}>4. Keberatan</th>                            <th                                rowspan="2"                                style={{                                    backgroundColor: '#ef90df',                                    color: "black",                                    textAlign: "center",                                    verticalAlign: "middle",                                }}>5. Banding</th>                            <th                                rowspan="2"                                style={{                                    backgroundColor: '#80df89',                                    color: "black",                                    textAlign: "center",                                    verticalAlign: "middle",                                }}>6. Dokumen Perbaikan</th>                            <th                                rowspan="2"                                style={{                                    backgroundColor: '#a3d4d1',                                    color: "black",                                    textAlign: "center",                                    verticalAlign: "middle",                                }}>7. Permohonan Pencabutan Sanksi</th>                            <th                                rowspan="2"                                id='cabutSanksi'                                style={{                                    // backgroundColor: '#e8f2f1',                                    color: "black",                                    textAlign: "center",                                    verticalAlign: "middle",                                }}>Pelaporan Tuntas                                <hr style={{                                    // backgroundColor: 'black',                                    color: "black",                                }}></hr>                                Cabut Sanksi                            </th>                            <th                                rowspan="2"                                style={{                                    backgroundColor: '#e8f2f1',                                    color: "black",                                    textAlign: "center",                                    verticalAlign: "middle",                                }}>Lihat Laporan</th>                        </tr>                        <tr>                            <th                                style={{                                    color: "black",                                    textAlign: "center",                                    verticalAlign: "middle",                                }}                            >Ditutup</th>                            <th>Delegasi LLDIKTI</th>                        </tr>                    </thead>                    {listData.map((data) => {                        return (                            <tr key={data.id}>                                <td>{data.pembina.name}</td>                                <Link                                    href={{                                        pathname: all_Laporan,                                        query: { id: data.pembina.id },                                    }}                                >                                    <td style={{                                        color: "black",                                        textAlign: "center",                                        cursor: "pointer",                                    }}>{data.jumlah_laporan}</td>                                </Link>                                <Link                                    href={{                                        pathname: tuntasDitutup,                                        query: { id: data.pembina.id },                                    }}                                >                                    <td style={{                                        color: "black",                                        textAlign: "center",                                        cursor: "pointer",                                    }}>{data.jumlah_ditutup}</td>                                </Link>                                <Link                                    href={{                                        pathname: delegasi,                                        query: { id: data.pembina.id },                                    }}                                >                                    <td style={{                                        color: "black",                                        textAlign: "center",                                        cursor: "pointer",                                    }}>{data.jumlah_delegasi}</td>                                </Link>                                <Link                                    href={{                                        pathname: jadwal,                                        query: { id: data.pembina.id },                                    }}                                >                                    <td style={{                                        backgroundColor: '#80b1ff',                                        color: "black",                                        textAlign: "center",                                        cursor: "pointer"                                    }}>{data.jumlah_jadwal_evaluasi}</td>                                </Link>                                <Link                                    href={{                                        pathname: pemeriksaan,                                        query: { id: data.pembina.id },                                    }}                                >                                    <td style={{                                        backgroundColor: '#de8383',                                        color: "black",                                        textAlign: "center",                                        cursor: "pointer",                                    }}>{data.jumlah_pemeriksaan}</td>                                </Link>                                <Link                                    href={{                                        pathname: sanksi,                                        query: { id: data.pembina.id },                                    }}                                >                                    <td style={{                                        backgroundColor: '#fdda80',                                        color: "black",                                        textAlign: "center",                                        cursor: "pointer",                                    }}>{data.jumlah_sanksi}</td>                                </Link>                                <Link                                    href={{                                        pathname: keberatan,                                        query: { id: data.pembina.id },                                    }}                                >                                    <td style={{                                        backgroundColor: '#cfab80',                                        color: "black",                                        textAlign: "center",                                        cursor: "pointer",                                    }}>{data.jumlah_keberatan}</td>                                </Link>                                <Link                                    href={{                                        pathname: banding,                                        query: { id: data.pembina.id },                                    }}                                >                                    <td style={{                                        backgroundColor: '#ef90df',                                        color: "black",                                        textAlign: "center",                                        cursor: "pointer",                                    }}>{data.jumlah_banding}</td>                                </Link>                                <Link                                    href={{                                        pathname: perbaikan,                                        query: { id: data.pembina.id },                                    }}                                >                                    <td style={{                                        backgroundColor: '#80df89',                                        color: "black",                                        textAlign: "center",                                        cursor: "pointer",                                    }}>{data.jumlah_pemantauan_perbaikan}</td>                                </Link>                                <Link                                    href={{                                        pathname: cabutSanksi,                                        query: { id: data.pembina.id },                                    }}                                >                                    <td style={{                                        backgroundColor: '#a3d4d1',                                        color: "black",                                        textAlign: "center",                                        cursor: "pointer",                                    }}>{data.jumlah_pencabutan_sanksi}</td>                                </Link>                                <Link                                    href={{                                        pathname: tuntasCabutsanksi,                                        query: { id: data.pembina.id },                                    }}                                >                                    <td style={{                                        color: "black",                                        textAlign: "center",                                        cursor: "pointer",                                    }}>{data.jumlah_diterima}</td>                                </Link>                                <td>                                    <div className="ml-auto" style={{                                        textAlign: "center",                                        marginLeft: "auto",                                        marginRight: "auto",                                    }}>                                        <Link                                            href={{                                                pathname: to,                                                query: { id: data.pembina.id },                                            }}                                        >                                            <Button className="btn-login" color >                                                <span className="font-color-white">                                                    {linkName}                                                </span>                                            </Button>                                        </Link>                                    </div>                                </td>                            </tr>)                    })}                </Table>            </CardBody>        </Card>    )}export default TableRadar
 |