<?php defined('BASEPATH') or exit('No direct script access allowed'); ?>
<?php if(isset($client)){ ?>
	<h4 class="customer-profile-group-heading"><?php echo _l('credit_notes'); ?></h4>

	<?php if(has_permission('proformas','','create')){ ?>
		<a href="<?php echo admin_url('proformas/proforma?customer_id='.$client->userid); ?>" class="btn btn-info pull-left new new-proforma-list mright5"> <i class="plus-icon-new fa-sharp fa-solid fa-plus"></i> <?php //INACTIVE: echo _l('create_new_proforma'); ?></a>
	<?php } ?>
	<?php if(!isset($project)){ ?>
		<a href="<?php echo admin_url('proformas/recurring'); ?>" class="btn btn-info pull-left">
			<?php echo _l('proformas_list_recurring'); ?>
		</a>
	<?php } ?>
	<?php
	$this->load->view('admin/proformas/table_client_html');
	?>
<?php } ?>
