<?php

// PT-fix-3.7.5 (PC2 #3/4): admin partial — required by Plugin Check v2.0.
defined( 'ABSPATH' ) || exit;
if ( !function_exists( 'BSD_Split_Pay_Stripe_Connect_Woo\\Inc\\Admin\\render_transfers_list_table' ) ) {
    function render_transfers_list_table() {
    }

}
if ( !function_exists( 'render_list_table_screenshot' ) ) {
    function render_list_table_screenshot() {
        $image_path = SPP_PLUGIN_ASSETS . '/stripe-connect-transfers-table.png';
        $upgrade_url = admin_url( 'admin.php?page=bsd-split-pay-stripe-connect-woo-settings-pricing' );
        ?>
		<section>
			<h1><?php 
        esc_html_e( 'PRO Feature', 'bsd-split-pay-stripe-connect-woo' );
        ?></h1>
			<p>
				<?php 
        /* translators: %1$s = opening upgrade link tag, %2$s = closing link tag. */
        printf( esc_html__( 'To view transfer details in the WP dashboard or export transfers in CSV format, please %1$sUpgrade >%2$s', 'bsd-split-pay-stripe-connect-woo' ), '<a href="' . esc_url( $upgrade_url ) . '">', '</a>' );
        ?>
			</p>
			<p>
				<?php 
        esc_html_e( 'You can also view Transfers in the', 'bsd-split-pay-stripe-connect-woo' );
        ?> <a
						href="https://dashboard.stripe.com/connect/transfers"
						target="_blank" rel="noopener noreferrer"><?php 
        esc_html_e( 'Stripe Dashboard', 'bsd-split-pay-stripe-connect-woo' );
        ?></a>. <?php 
        esc_html_e( 'Be sure to switch to TEST mode or LIVE mode accordingly.', 'bsd-split-pay-stripe-connect-woo' );
        ?>
			</p>
			<span class="grayed-export-button-wrapper disabled">
				<a href="javascript:;"><?php 
        esc_html_e( 'Export to CSV', 'bsd-split-pay-stripe-connect-woo' );
        ?></a>
			</span>
		</section>
		<figure>
			<img src="<?php 
        echo esc_attr( $image_path );
        ?>"
				alt="<?php 
        esc_attr_e( 'Blurred example of Stripe Connect Transfers list table', 'bsd-split-pay-stripe-connect-woo' );
        ?>"
				style="width:100%">
		</figure>
		<?php 
    }

}
?>

<div class='bsd-scsp-settings'>
	<?php 
if ( function_exists( 'BSD_Split_Pay_Stripe_Connect_Woo\\bsdwcscsp_fs' ) ) {
    render_list_table_screenshot();
    if ( BSD_Split_Pay_Stripe_Connect_Woo\bsdwcscsp_fs()->is_not_paying() ) {
    }
} else {
    render_list_table_screenshot();
}
?>

</div>
