<div id="wpcsr-parcels">
    <div id="wpcsr-rate-wrapper" class="wpcsr-section">
        <div class="wpcsr-rate-wrap one-half first">
            <h3><?php echo wpcsr_shipment_rate_details_label(); ?></h3>
            <table class="wpcargo form-table wpcsr-table-colored">
                <tr>
                    <th><strong><?php echo wpcsr_shipment_rate_label(); ?>:</strong></th>
                    <td><?php echo $rateInfo->brand; ?></td>
                </tr>
                <tr>
                    <th><strong><?php echo wpcsr_service_variation_label(); ?>:</strong></th>
                    <td><?php echo $rateInfo->service; ?></td>
                </tr>
                <tr>
                    <th><strong><?php echo wpcsr_weight_label(); ?>:</strong></th>
                    <td>
                        <?php echo ($rateInfo->min_weight == $rateInfo->max_weight ) ? format_wpcsr_currency( $rateInfo->min_weight, false ) :  format_wpcsr_currency( $rateInfo->min_weight, false ).' - '. format_wpcsr_currency( $rateInfo->max_weight, false ); ?> <?php echo wpcsr_weight_unit(); ?>
                        </td>
                </tr>
                <tr>
                    <th><strong><?php echo wpcsr_zone_variation_label(); ?>:</strong></th>
                    <td><?php echo $rateInfo->zone; ?></td>
                </tr>
                <tr>
                    <th><strong><?php echo wpcsr_origin_label(); ?></strong></th>
                    <td><?php echo wpcsr_get_origin( $post->ID ); ?></td>
                </tr>
                <tr>
                    <th><strong><?php echo wpcsr_destination_label(); ?></strong></th>
                    <td><?php echo wpcsr_get_destination( $post->ID ); ?></td>
                </tr>
                <tr>
                    <th class="label"><strong><?php echo wpcsr_declared_weight_label(); ?>:</strong></th>
                    <td class="weight float_right"><?php echo format_wpcsr_currency( $package_weight ).' '.wpcsr_weight_unit(); ?></td>
                </tr>
                <tr>
                    <th class="label"><strong><?php echo wpcsr_rate_label(); ?>:</strong></th>
                    <td class="shipping_rate float_right" ><?php echo format_wpcsr_currency( $rate_price, true ); ?></td>
                </tr>
                <?php if( $protection ): ?>
                    <tr>
                        <th><strong><?php echo wpcsr_protection_label(); ?></strong></th>
                        <td><?php echo format_wpcsr_currency( $rateInfo->rate_protection, true ); ?></td>
                    </tr>
                    <tr>
                        <th><strong><?php echo wpcsr_protection_coverage_label(); ?></strong></th>
                        <td><?php echo format_wpcsr_currency( $rateInfo->coverage, true ); ?></td>
                    </tr>
                <?php endif; ?>
                <?php if( $is_pickup ): ?>
                    <tr class="in-protection">
                        <th class="label"><strong><?php echo wpcsr_pickup_rate_label(); ?>:</strong></th>
                        <td class="shipping_protection float_right"><?php echo format_wpcsr_currency( $pickup_rate, true ); ?></td>
                    </tr>
                <?php endif; ?>
            </table>
        </div>
        <?php if( $has_warehouse ): ?>
            <?php
                $method     = get_post_meta( $post->ID, 'pickup_method', true );
                $name       = get_post_meta( $post->ID, 'pickup_address_name', true );
                $phone      = get_post_meta( $post->ID, 'pickup_phone', true );
                $address1   = get_post_meta( $post->ID, 'pickup_address1', true );
                $address2   = get_post_meta( $post->ID, 'pickup_address2', true );
                $city       = get_post_meta( $post->ID, 'pickup_city', true );
                $postcode   = get_post_meta( $post->ID, 'pickup_postcode', true );
                $country    = get_post_meta( $post->ID, 'pickup_country', true );
                $state      = get_post_meta( $post->ID, 'pickup_state', true );
            ?>
            <div class="wpcsr-rate-wrap one-half">
                <div id="pickup-address" class="wpcsr-section">
                    <?php if( !empty( $method ) ): ?>
                        <h3><?php echo wpcsr_pickup_information_label(); ?></h3>
                        <table class="wpcargo form-table wpcsr-table-colored">
                            <tr>
                                <th><strong><?php echo wpcsr_delivery_method_label(); ?>:</strong></th>
                                <td><?php echo $method; ?></td>
                            </tr>
                            <tr>
                                <th><strong><?php echo wpcsr_warehouse_label(); ?>:</strong></th>
                                <td><?php echo $name; ?></td>
                            </tr>
                            <tr>
                                <th><strong><?php echo wpcsr_phone_form_label(); ?>:</strong></th>
                                <td><?php echo $phone; ?></td>
                            </tr>
                            <tr>
                                <th><strong><?php echo wpcsr_address1_label(); ?>:</strong></th>
                                <td><?php echo $address1; ?></td>
                            </tr>
                            <tr>
                                <th><strong><?php echo wpcsr_address2_label(); ?>:</strong></th>
                                <td><?php echo $address2; ?></td>
                            </tr>
                            <tr>
                                <th><strong><?php echo wpcsr_city_label(); ?>:</strong></th>
                                <td><?php echo $city; ?></td>
                            </tr>
                            <tr>
                                <th><strong><?php echo wpcsr_postcode_zip_label(); ?>:</strong></th>
                                <td><?php echo $postcode; ?></td>
                            </tr>
                            <tr>
                                <th><strong><?php echo wpcsr_country_label(); ?>:</strong></th>
                                <td><?php echo $country; ?></td>
                            </tr>
                            <tr>
                                <th><strong><?php echo wpcsr_state_county_label(); ?></strong></th>
                                <td><?php echo $state; ?></td>
                            </tr>
                        </table>
                    <?php else: ?>
                        <h3><?php echo wpcsr_enter_delivery_method_label(); ?>:</h3>
                        <table class="wpcargo form-table">
                            <tr>
                                <th><strong><?php echo wpcsr_delivery_method_label(); ?></strong></th>
                                <td>
                                    <input type="radio" name="pickup_method" value="<?php echo wpcsr_dropoff_label(); ?>" checked="checked"/>
                                    <?php echo wpcsr_dropoff_label(); ?>
                                    <br/>
                                    <input type="radio" name="pickup_method" value="<?php echo wpcsr_pickup_label(); ?>"/>
                                    <?php echo wpcsr_pickup_label(); ?>
                                </td>
                            </tr>
                            <tr>
                                <th><strong><?php echo wpcsr_address1_label(); ?>:</strong></th>
                                <td><input id="pickup_address1" type="text" name="pickup_address1" value="" required="required" autocomplete="off" ></td>
                            </tr>
                            <tr>
                                <th><strong><?php echo wpcsr_address2_label(); ?>:</strong></th>
                                <td><input id="pickup_address2" type="text" name="pickup_address2" value="" autocomplete="off"></td>
                            </tr>
                            <tr>
                                <th><strong><?php echo wpcsr_city_label(); ?>:</strong></th>
                                <td><input id="pickup_city" type="text" name="pickup_city" value="" autocomplete="off"></td>
                            </tr>
                            <tr>
                                <th><strong><?php echo wpcsr_postcode_zip_label(); ?></strong></th>
                                <td><input id="pickup_postcode" type="text" name="pickup_postcode" value="" required="required" autocomplete="off" ></td>
                            </tr>
                            <tr>
                                <th><strong><?php echo wpcsr_country_label(); ?>:</strong></th>
                                <td><input id="pickup_country" type="text" name="pickup_country" value="" required="required" autocomplete="off" ></td>
                            </tr>
                            <tr>
                                <th><strong><?php echo wpcsr_state_county_label(); ?></strong></th>
                                <td><input id="pickup_state" type="text" name="pickup_state" value="" autocomplete="off" ></td>
                            </tr>
                        </table>
                    <?php endif; ?>
                </div>
                <?php do_action( 'wpcsr_after_pickup_address_meta' ); ?>
            </div>
        <?php endif; ?>
        <div class="clear" style="clear:both;"></div>
    </div>
</div>