render() {
    
    return (
        <Container className="card mt-2">
            <Row className="card-header">
                <Col>
                    <Row className="d-flex flex-row">
                        <Col sm={8} className="h2">Recipient Detail</Col>
                        <Col sm={4} className="justify-content-end btn-sm d-flex flex-row">
                            <Button href="/data">Return</Button>
                        </Col>
                    </Row>
                </Col>
            </Row>
            <Row className="card-body">
                <h2 className="title">General Information</h2>
                <Table className="striped bordered hover table table-bordered table-striped mb-0">
                    <thead>
                        <tr>
                            <th>ID</th>
                            <th>First Name</th>
                            <th>Last Name</th>
                            <th>Phone</th>
                            <th>Quantity</th>
                        </tr>
                    </thead>
                    <tbody>
                            <tr key={this.state.id}>
                            <td>{this.state.id}</td>
                            <td>{this.state.first_name}</td>
                            <td>{this.state.last_name}</td>
                            <td>{this.state.phone}</td>
                            <td>{this.state.quantity}</td>
                        </tr>
                    </tbody>
                </Table>
            </Row>
            <Row className="card-body">
                <h2 className="title">Address Information</h2>
                <Table className="striped bordered hover table table-bordered table-striped mb-0">
                    <thead>
                        <tr>
                            <th>Address</th>
                            <th>Apt #</th>
                            <th>City</th>
                            <th>State</th>
                            <th>Zip Code</th>
                            <th>Center?</th>
                        </tr>
                    </thead>
                    <tbody>
                            <tr key={this.state.location.address}>
                            <td>{this.state.location.address}</td>
                            <td>{this.state.location.room_number ? this.state.location.room_number : "N/A"}</td>
                            <td>{this.state.location.city}</td>
                            <td>{this.state.location.state}</td>
                            <td>{this.state.location.zipcode}</td>
                            <td>{this.state.location.is_center ? "Yes" : "No"}</td>
                        </tr>
                    </tbody>
                </Table>
            </Row>
            <Row className="card-body">
                <h2 className="title">Languages</h2>
                <Table className="striped bordered hover table table-bordered table-striped mb-0">
                    <thead>
                        <tr>
                            <th colSpan={this.showLanguages().length}>Languages Selected</th>
                        </tr>
                    </thead>
                    <tbody>
                            <tr key={this.state.languages}>
                            {this.showLanguages().map(l => 
                                <td>{l}</td>)}
                        </tr>
                    </tbody>
                </Table>
            </Row>
            <Row className="card-body">
                <h2 className="title">Recipient Notes</h2>
                <Table className="striped bordered hover table table-bordered table-striped mb-0">
                    <thead>
                        <tr>
                            <th>Comments</th>
                        </tr>
                    </thead>
                    <tbody>
                            <tr key={this.state.comments}>
                            <td>{this.state.comments}</td>
                        </tr>
                    </tbody>
                </Table>
            </Row>
        </Container>
    );
}
/**
 * The render method used to display the component. 
 * @returns The HTML to be rendered.
 */
The render method used to display the component.
@returns The HTML to be rendered.
The render method used to display the component . @returns The HTML to be rendered .
render() {
    return (
        <Container className="card mt-2">
            <Row className="card-header">
                <Col>
                    <Row className="d-flex flex-row">
                        <Col sm={8} className="h2">Recipient Detail</Col>
                        <Col sm={4} className="justify-content-end btn-sm d-flex flex-row">
                            <Button href="/data">Return</Button>
                        </Col>
                    </Row>
                </Col>
            </Row>
            <Row className="card-body">
                <h2 className="title">General Information</h2>
                <Table className="striped bordered hover table table-bordered table-striped mb-0">
                    <thead>
                        <tr>
                            <th>ID</th>
                            <th>First Name</th>
                            <th>Last Name</th>
                            <th>Phone</th>
                            <th>Quantity</th>
                        </tr>
                    </thead>
                    <tbody>
                            <tr key={this.state.id}>
                            <td>{this.state.id}</td>
                            <td>{this.state.first_name}</td>
                            <td>{this.state.last_name}</td>
                            <td>{this.state.phone}</td>
                            <td>{this.state.quantity}</td>
                        </tr>
                    </tbody>
                </Table>
            </Row>
            <Row className="card-body">
                <h2 className="title">Address Information</h2>
                <Table className="striped bordered hover table table-bordered table-striped mb-0">
                    <thead>
                        <tr>
                            <th>Address</th>
                            <th>Apt #</th>
                            <th>City</th>
                            <th>State</th>
                            <th>Zip Code</th>
                            <th>Center?</th>
                        </tr>
                    </thead>
                    <tbody>
                            <tr key={this.state.location.address}>
                            <td>{this.state.location.address}</td>
                            <td>{this.state.location.room_number ? this.state.location.room_number : "N/A"}</td>
                            <td>{this.state.location.city}</td>
                            <td>{this.state.location.state}</td>
                            <td>{this.state.location.zipcode}</td>
                            <td>{this.state.location.is_center ? "Yes" : "No"}</td>
                        </tr>
                    </tbody>
                </Table>
            </Row>
            <Row className="card-body">
                <h2 className="title">Languages</h2>
                <Table className="striped bordered hover table table-bordered table-striped mb-0">
                    <thead>
                        <tr>
                            <th colSpan={this.showLanguages().length}>Languages Selected</th>
                        </tr>
                    </thead>
                    <tbody>
                            <tr key={this.state.languages}>
                            {this.showLanguages().map(l => 
                                <td>{l}</td>)}
                        </tr>
                    </tbody>
                </Table>
            </Row>
            <Row className="card-body">
                <h2 className="title">Recipient Notes</h2>
                <Table className="striped bordered hover table table-bordered table-striped mb-0">
                    <thead>
                        <tr>
                            <th>Comments</th>
                        </tr>
                    </thead>
                    <tbody>
                            <tr key={this.state.comments}>
                            <td>{this.state.comments}</td>
                        </tr>
                    </tbody>
                </Table>
            </Row>
        </Container>
    );
}
render ( ) { return ( < Container className = "card mt-2" > < Row className = "card-header" > < Col > < Row className = "d-flex flex-row" > < Col sm = { 8 } className = "h2" > Recipient Detail < / Col > < Col sm = { 4 } className = "justify-content-end btn-sm d-flex flex-row" > < Button href = "/data" > Return < / Button > < / Col > < / Row > < / Col > < / Row > < Row className = "card-body" > < h2 className = "title" > General Information < / h2 > < Table className = "striped bordered hover table table-bordered table-striped mb-0" > < thead > < tr > < th > ID < / th > < th > First Name < / th > < th > Last Name < / th > < th > Phone < / th > < th > Quantity < / th > < / tr > < / thead > < tbody > < tr key = { this . state . id } > < td > { this . state . id } < / td > < td > { this . state . first_name } < / td > < td > { this . state . last_name } < / td > < td > { this . state . phone } < / td > < td > { this . state . quantity } < / td > < / tr > < / tbody > < / Table > < / Row > < Row className = "card-body" > < h2 className = "title" > Address Information < / h2 > < Table className = "striped bordered hover table table-bordered table-striped mb-0" > < thead > < tr > < th > Address < / th > < th > Apt # < / th > < th > City < / th > < th > State < / th > < th > Zip Code < / th > < th > Center? < / th > < / tr > < / thead > < tbody > < tr key = { this . state . location . address } > < td > { this . state . location . address } < / td > < td > { this . state . location . room_number ? this . state . location . room_number : "N/A" } < / td > < td > { this . state . location . city } < / td > < td > { this . state . location . state } < / td > < td > { this . state . location . zipcode } < / td > < td > { this . state . location . is_center ? "Yes" : "No" } < / td > < / tr > < / tbody > < / Table > < / Row > < Row className = "card-body" > < h2 className = "title" > Languages < / h2 > < Table className = "striped bordered hover table table-bordered table-striped mb-0" > < thead > < tr > < th colSpan = { this . showLanguages ( ) . length } > Languages Selected < / th > < / tr > < / thead > < tbody > < tr key = { this . state . languages } > { this . showLanguages ( ) . map ( l => < td > { l } < / td > ) } < / tr > < / tbody > < / Table > < / Row > < Row className = "card-body" > < h2 className = "title" > Recipient Notes < / h2 > < Table className = "striped bordered hover table table-bordered table-striped mb-0" > < thead > < tr > < th > Comments < / th > < / tr > < / thead > < tbody > < tr key = { this . state . comments } > < td > { this . state . comments } < / td > < / tr > < / tbody > < / Table > < / Row > < / Container > ) ; }
The render method used to display the component.
The render method used to display the component .