<?php
/**
 * İşlem eklenti kolonu
 *
 * @var GPOS_Transaction $transaction
 *
 * @package GurmeHub
 */

defined( 'ABSPATH' ) || exit;

$plugin                = $transaction->get_plugin();
$plugin_transaction_id = $transaction->get_plugin_transaction_id();
$edit_url              = apply_filters( 'gpos_payment_plugin_edit_page_link', get_edit_post_link( $plugin_transaction_id ), $plugin, $plugin_transaction_id );
?>
<?php if ( $plugin ) : ?>
	<a target="_blank" href="<?php echo esc_url( $edit_url ); ?>" class="payment-plugin">
		<span>#<?php echo esc_html( $plugin_transaction_id ); ?></span>
		<img src="<?php echo esc_url( GPOS_ASSETS_DIR_URL . "/images/plugin-logo/{$plugin}.svg" ); ?>" alt="<?php echo esc_attr( $plugin ); ?>" class="<?php echo esc_attr( $plugin ); ?>">
	</a>
<?php endif; ?>
