<?php
if ( ! defined( 'ABSPATH' ) ) {
	exit; // Prevent direct access to the script.
}
$profile_id    = gigneo_active_profile_id();
$profile_type  = gigneo_profile_type( $profile_id );
$platform_type = gigneo_platform_type();
$credit_system = gigneo_has_credit_system();

//Stats
$template_args = array(
	'profile_id'    => $profile_id,
	'profile_type'  => $profile_type,
	'platform_type' => $platform_type,
	'credit_system' => $credit_system,
);
?>
<div id="gn-account-spending-wrapper" class="gn-account-main-wrapper">
		<?php
		//Stats
		gigneo_load_template( 'dashboard/account/parts/spending/stat', false, $template_args );
		?>
		<div class="row">
			<div class="col-lg-8 col-md-12">
				<?php
				//Earning
				gigneo_load_template( 'dashboard/account/parts/spending/overview', false, $template_args );
				?>
			</div>
			<div class="col-lg-4 col-md-12">
				<?php
				//Payouts
				gigneo_load_template( 'dashboard/account/parts/spending/payout', false, $template_args );
				?>
			</div>
		</div>
		<?php
		//Invoices
		gigneo_load_template( 'dashboard/account/parts/spending/invoice', false, $template_args );
		?>
</div>
<?php
