I am not too good in php but it seems that the file you have provided ('components/com_invoicing/views/invoices/tmpl/default.php'.)
is making reference to certain variables and functions in another file. That is why these
<table class="adminlist table table-striped">
<tr>
<th><?php echo JText::_('INVOICING_INVOICE_ID')?></th>
<th><?php echo JText::_('INVOICING_INVOICE_DATE')?></th>
<th><?php echo JText::_('INVOICING_INVOICE_STATUS')?></th>
<th><?php echo JText::_('INVOICING_INVOICE_NET_AMOUNT')?></th>
<th><?php echo JText::_('INVOICING_INVOICE_ACTIONS')?></th>
</tr>
are recognized in 'components/com_invoicing/views/invoices/tmpl/default.php'.
file.
I want the file where it is stated that if an order meets some requirements, it should write the text "Pending" else, it should write "Paid"
If I find this file, then I will add that the text "Pending" should have CSS class "pending" and also "Paid" should have CSS class "paid". Also I want to change the text "Paid" to "Active" to "Instead". I don't seem to find what I am looking for in 'components/com_invoicing/views/invoices/tmpl/default.php'. Please advise.
defined('_JEXEC') or die( 'Restricted access' );
$this->loadHelper('format');
JHtml::_('behavior.modal');
?>
<div class="row-fluid">
<div class="span12">
<fieldset>
<legend><?php echo JText::_('INVOICING_INVOICES')?></legend>
<table class="adminlist table table-striped">
<tr>
<th><?php echo JText::_('INVOICING_INVOICE_ID')?></th>
<th><?php echo JText::_('INVOICING_INVOICE_DATE')?></th>
<th><?php echo JText::_('INVOICING_INVOICE_STATUS')?></th>
<th><?php echo JText::_('INVOICING_INVOICE_NET_AMOUNT')?></th>
<th><?php echo JText::_('INVOICING_INVOICE_ACTIONS')?></th>
</tr>
<?php
foreach($this->items as $order) { ?>
<tr>
<td><?php echo InvoicingHelperFormat::formatInvoiceNumber($order) ?></td>
<td><?php echo date("d-m-Y",strtotime($order->created_on)) ?></td>
<td>
<?php echo InvoicingHelperFormat::formatInvoiceStatus($order->status) ?>
</td>
<td><?php echo InvoicingHelperFormat::formatPrice($order->net_amount,$order->currency_id); ?></td>
<td>
<?php if ($order->status != "CANCELLED") { /* ?>
<a target='_blank' href="<?php echo JRoute::_('index.php?option=com_invoicing&view=invoice&id='.$order->invoicing_invoice_id.'&tmpl=component')?>"></a>
<?php } else { ?>
<a href="<?php echo JRoute::_('index.php?option=com_invoicing&view=invoice&id='.$order->invoicing_invoice_id.'&layout=payment')?>"><?php echo JText::_('INVOICING_INVOICE_PAY')?></a>
<?php } ?> */
?>
<div id="pic_actions">
<a id="see_pic_actions" class="modal" rel="{handler: 'iframe', size: {x: 900, y: 600}}" href='<?php echo JRoute::_("index.php?option=com_invoicing&view=invoice&id=".$order->invoicing_invoice_id."&tmpl=component") ?>'></a>
<a id="pdf_pic_actions" href='<?php echo JRoute::_("index.php?option=com_invoicing&view=invoice&id=".$order->invoicing_invoice_id."&tmpl=component&format=pdf") ?>'></a>
<?php if ($order->status == "PENDING" || $order->status == "NEW") { ?>
<a id="pay_pic_actions" href='<?php echo JRoute::_("index.php?option=com_invoicing&view=invoice&id=".$order->invoicing_invoice_id."&layout=payment") ?>'></a>
<?php } ?>
</div>
<?php } ?>
</td>
</tr>
<?php } ?>
</table>
</fieldset>
</div>
</div>