<div class="col-sm-6"> <div class="form-group"> <label class="control-label"><i class="fa fa-clipboard"></i>Internal Notes</label> <div class="append-icon"> <?php echo $lead->internal_notes;?> </div> </div> </div> <div class="col-sm-6"> <div class="form-group"> <label class="control-label"><i class="fa fa-group"></i>Assigned Partner</label> <div class="append-icon"> <?php echo customer_name($lead->assigned_partner_id)->name; ?> </div> </div> </div> </div> </div> </div> </div> </div> <!-- END PAGE CONTENT -->
<th>Invoice Number</th> <th>Date</th> <th>Customer</th> <th>Due Date</th> <th>Balance</th> <th>Status</th> <th><?php echo $this->lang->line('options'); ?></th> </tr> </thead> <tbody> <?php if( ! empty($invoices) ){?> <?php foreach( $invoices as $invoice){ ?> <tr id="invoice_id_<?php echo $invoice->id; ?>"> <td><a href="<?php echo base_url('customer/invoices/view/'.$invoice->id); ?>"><?php echo $invoice->invoice_number; ?></a></td> <td><?php echo date('m/d/Y',$invoice->invoice_date); ?></td> <td><?php echo customer_name($invoice->customer_id)->name; ?></td> <td><?php echo date('m/d/Y',$invoice->due_date); ?></td> <td><?php echo $invoice->unpaid_amount; ?></td> <td><?php echo $invoice->status; ?></td> <td style="width: 12%;"><a href="<?php echo base_url('customer/invoices/view/'.$invoice->id); ?>" class="edit btn btn-sm btn-default"><i class="fa fa-search-plus"></i></a> </td> </tr> <?php } ?> <?php } ?> </tbody> </table>
<th>Customer</th> <th>Salesperson</th> <th>Total</th> <th>Status</th> <th><?php echo $this->lang->line('options'); ?></th> </tr> </thead> <tbody> <?php if( ! empty($quotations) ){?> <?php foreach( $quotations as $quotation){ ?> <tr id="quotation_id_<?php echo $quotation->id; ?>"> <td><a href="<?php echo base_url('customer/salesorder/view/'.$quotation->id); ?>"><?php echo $quotation->quotations_number; ?></a></td> <td><?php echo date('m/d/Y H:i',$quotation->date); ?></td> <td><?php echo customer_name($quotation->customer_id)->name; ?></td> <td><?php echo $this->staff_model->get_user_fullname($quotation->sales_person); ?></td> <td><?php echo $quotation->grand_total; ?></td> <td><?php echo $quotation->status; ?></td> <td style="width: 12%;"><a href="<?php echo base_url('customer/salesorder/view/'.$quotation->id); ?>" class="edit btn btn-sm btn-default"><i class="fa fa-search-plus"></i></a> </td> </tr> <?php } ?> <?php } ?> </tbody> </table>
</div> </div> </li> <?php } ?> <?php } ?> </ul> </div> <div class="tab-pane fade" id="tab6_ivo2"> <ul class="todo-list"> <?php if( ! empty($staff_invoices_by_team) ){?> <?php foreach( $staff_invoices_by_team as $team_invoices){ ?> <li> <span class=""><?php echo $team_invoices->invoice_number; ?> - <?php echo $team_invoices->payment_term;; ?> </span> <div class="todo-date clearfix"> <div class=""><?php echo customer_name($team_invoices->customer_id)->name; ?> - <?php echo $team_invoices->unpaid_amount;; ?> </div> </div> </li> <?php } ?> <?php } ?> </ul> </div> </div> <div class="clearfix m-t-10"> <div class="pull-right"> <a href="<?php echo base_url('admin/invoices/'); ?>" class="btn btn-sm btn-dark add-task">OPEN INVOICES</a> </div> </div> </div>
</div> </div> </div> <div class="row"> <div class="col-md-12"> <div class="form-group"> <label for="field-1" class="control-label"></label> <textarea name="message_body" id="message_body" cols="80" rows="10" class="cke-editor"> <p>Hello <?php echo customer_name($salesorder->customer_id)->name; ?>,</p> <p>Here is your order confirmation from Demo Company: </p> <p style="border-left: 1px solid #8e0000; margin-left: 30px;"> <strong>REFERENCES</strong><br> Invoice number: <strong><?php echo $invoice->invoice_number;?></strong><br> Invoice total: <strong><?php echo $invoice->grand_total; ?></strong><br> Invoice date: <?php echo date('m/d/Y',$invoice->invoice_date); ?> <br> </p> </textarea> </div> </div>
</div> </div> </div> <div class="row"> <div class="col-md-12"> <div class="form-group"> <label for="field-1" class="control-label"></label> <textarea name="message_body" id="message_body" cols="80" rows="10" class="cke-editor"> <p>Hello <?php echo customer_name($quotation->customer_id)->name; ?>,</p> <p>Here is your order confirmation from Demo Company: </p> <p style="border-left: 1px solid #8e0000; margin-left: 30px;"> <strong>REFERENCES</strong><br> Order number: <strong><?php echo $quotation->quotations_number;?></strong><br> Order total: <strong><?php echo $quotation->grand_total; ?></strong><br> Order date: <?php echo date('m/d/Y H:i',$quotation->date); ?> <br> </p> </textarea> </div> </div>
<div class="col-sm-6"> <div class="form-group"> <label class="control-label"><i class="fa fa-clipboard"></i>Internal Notes</label> <div class="append-icon"> <?php echo $opportunity->internal_notes;?> </div> </div> </div> <div class="col-sm-6"> <div class="form-group"> <label class="control-label"><i class="fa fa-group"></i>Assigned Partner</label> <div class="append-icon"> <?php echo customer_name($opportunity->assigned_partner_id)->name; ?> </div> </div> </div> </div> </div> </div> </div> </div> </div> <!-- END PAGE CONTENT -->
<th>Customer</th> <th>Salesperson</th> <th>Total</th> <th>Status</th> <th><?php echo $this->lang->line('options'); ?></th> </tr> </thead> <tbody> <?php if( ! empty($salesorder) ){?> <?php foreach( $salesorder as $order){ ?> <tr id="order_id_<?php echo $order->id; ?>"> <td><a href="<?php echo base_url('admin/salesorder/view/'.$order->id); ?>"><?php echo $order->quotations_number; ?></a></td> <td><?php echo date('m/d/Y H:i',$order->date); ?></td> <td><?php echo customer_name($order->customer_id)->name; ?></td> <td><?php echo $this->staff_model->get_user_fullname($order->sales_person); ?></td> <td><?php echo $order->grand_total; ?></td> <td><?php echo $order->status; ?></td> <td style="width: 12%;"> <?php if (check_staff_permission('sales_orders_write')){?> <a href="<?php echo base_url('admin/salesorder/update/'.$order->id); ?>" class="edit btn btn-sm btn-default dlt_sm_table"><i class="icon-note"></i></a> <?php }?> <?php if (check_staff_permission('sales_orders_delete')){?> <a href="javascript:void(0)" class="delete btn btn-sm btn-danger dlt_sm_table" data-toggle="modal" data-target="#modal-basic<?php echo $order->id; ?>"><i class="glyphicon glyphicon-trash"></i></a> <?php }?> </td>
<th>Call Summary</th> <th>Contact</th> <th>Responsible</th> <th><?php echo $this->lang->line('options'); ?></th> </tr> </thead> <tbody> <?php if( ! empty($logged_calls) ){?> <?php foreach( $logged_calls as $logged_call){ ?> <tr id="logged_call_id_<?php echo $logged_call->id; ?>"> <td><?php echo date('m/d/Y',$logged_call->date); ?></td> <td><?php echo $logged_call->call_summary; ?></td> <td><?php echo customer_name($logged_call->company_id)->name;?></td> <td><?php echo $this->staff_model->get_user($logged_call->resp_staff_id)->first_name.' '.$this->staff_model->get_user($logged_call->resp_staff_id)->last_name; ?></td> <td style="width: 12%;"> <?php if (check_staff_permission('logged_calls_write')){?> <a href="<?php echo base_url('admin/logged_calls/update/'.$logged_call->id); ?>" class="edit btn btn-sm btn-default dlt_sm_table"><i class="icon-note"></i></a> <?php }?> <?php if (check_staff_permission('logged_calls_delete')){?> <a href="javascript:void(0)" class="delete btn btn-sm btn-danger dlt_sm_table" data-toggle="modal" data-target="#modal-basic<?php echo $logged_call->id; ?>"><i class="glyphicon glyphicon-trash"></i></a> <?php }?> </td> </tr> <div class="modal fade" id="modal-basic<?php echo $logged_call->id; ?>" tabindex="-1" role="dialog" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content">
<div id="send_email_ajax"> <?php if($this->session->flashdata('message')){echo $this->session->flashdata('message');}?> </div> <form id="send_email" name="send_email" class="form-validation" accept-charset="utf-8" enctype="multipart/form-data" method="post"> <div class="modal-body"> <div class="row"> <div class="col-md-12"> <div class="form-group"> <label for="field-1" class="control-label">Assign Customer</label> <select name="assign_customer_id" id="assign_customer_id" class="form-control" data-search="true"> <option value=""></option> <?php foreach( $customers as $customer){ ?> <option value="<?php echo $customer->id;?>"><?php echo customer_name($customer->id)->name;?></option> <?php }?> </select> </div> </div> </div> <div class="row"> <div class="col-md-12"> <div class="form-group"> <label for="field-1" class="control-label">Recipients</label> <select name="to_email_id[]" id="to_email_id" class="form-control" data-search="true" multiple> <?php foreach( $staffs as $staff){ ?> <option value="<?php echo $staff->id;?>"><?php echo $staff->first_name.' '.$staff->last_name.' ('.$staff->email.')';?></option> <?php }?>
<th>Contact</th> <th>Responsible</th> <th><?php echo $this->lang->line('options'); ?></th> </tr> </thead> <tbody> <?php if( ! empty($contracts) ){?> <?php foreach( $contracts as $contract){ ?> <tr id="contract_id_<?php echo $contract->id; ?>"> <td><?php echo date('m/d/Y',$contract->start_date); ?></td> <!--<td><?php echo date('m/d/Y',$contract->end_date); ?></td>--> <td><?php echo $contract->description; ?></td> <td><?php echo customer_name($contract->company_id)->name;?></td> <td><?php echo $this->staff_model->get_user($contract->resp_staff_id)->first_name.' '.$this->staff_model->get_user($contract->resp_staff_id)->last_name; ?></td> <td style="width: 22%;"> <?php $next_week= strtotime(date('m/d/Y',strtotime('+'.config('contract_renewal_days').' days'))); $expiration_date= $contract->end_date; $today= strtotime(date('m/d/Y'));?> <?php if ($expiration_date < $today) { ?>
<th>Amount</th> <th>Invoice Number</th> <th>Company Name</th> <th>Staff User</th> <th><?php echo $this->lang->line('options'); ?></th> </tr> </thead> <tbody> <?php if( ! empty($invoice_payments) ){?> <?php foreach( $invoice_payments as $payment){ ?> <tr id="payment_id_<?php echo $payment->id; ?>"> <td><?php echo $payment->payment_received; ?></td> <td><a href="<?php echo base_url('admin/invoices/view/'.$payment->invoice_id); ?>"><?php echo $this->invoices_model->get_invoice($payment->invoice_id)->invoice_number; ?></a></td> <td><?php echo customer_name($this->invoices_model->get_invoice($payment->invoice_id)->customer_id)->name; ?></td> <td><?php echo $this->staff_model->get_user_fullname($payment->staff_id);?></td> <td style="width: 12%;"> <a href="javascript:void(0)" class="delete btn btn-sm btn-danger dlt_sm_table" data-toggle="modal" data-target="#modal-basic<?php echo $invoice->id; ?>"><i class="glyphicon glyphicon-trash"></i></a></td> </tr> <div class="modal fade" id="modal-basic<?php echo $invoice->id; ?>" tabindex="-1" role="dialog" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true"><i class="icons-office-52"></i></button> <h4 class="modal-title"><strong>Confirm</strong></h4> </div> <div class="modal-body"> Are you sure you want to delete this?<br> </div>