1 {headerTemplate assets='common|datatables|datatables-colreorder|datatables-dt|datatables-bs'}
2 <a href=
"{$CURRENT_ACTION}action=edit" onclick=
"top.restoreSession()" class=
"btn btn-secondary btn-add">{xlt t='Add a Company'}
</a>
3 <div class=
"table-responsive pt-3">
4 <table class=
"table table-striped" id=
"insurance">
7 <th>{xlt t='Name'}
</th>
8 <th>{xlt t='Address'}
</th>
9 <th>{xlt t='City, State, ZIP'}
</th>
10 <th>{xlt t='Phone'}
</th>
11 <th>{xlt t='Fax'}
</th>
12 <th>{xlt t='Payer ID'}
</th>
13 <th>{xlt t='Default X12 Partner'}
</th>
14 <th>{xlt t='Deactivated'}
</th>
18 {foreach from=$icompanies item=insurancecompany}
21 <a href=
"{$CURRENT_ACTION}action=edit&id={$insurancecompany->id|attr_url}" onclick=
"top.restoreSession()">
22 {$insurancecompany-
>name|text}
25 <td>{$insurancecompany-
>address-
>line1|text} {$insurancecompany-
>address-
>line2|text}
</td>
26 <td>{$insurancecompany-
>address-
>city|text} {$insurancecompany-
>address-
>state|upper|text} {$insurancecompany-
>address-
>zip|text}
</td>
27 <td>{$insurancecompany-
>get_phone()|text}
</td>
28 <td>{$insurancecompany-
>get_fax()|text}
</td>
29 <td>{$insurancecompany-
>cms_id|text}
</td>
30 <td>{$insurancecompany-
>get_x12_default_partner_name()|text}
</td>
31 <td>{if $insurancecompany-
>get_inactive() eq
1}{xlt t='Yes'}{/if}
</td>
35 <td>{xlt t='No Insurance Companies Found'}
</td>
36 <!-- DataTables requires the number of cols in the table header match the table body,
37 https://datatables.net/manual/tech-notes/18 -->
51 $(document
).ready(function () {
52 $('#insurance').DataTable();