<?php
$layout = config_item('invoice_layout_view');
if (empty($layout)) {
    $layout = 'default';
}
if (!empty($title) && strtolower((string) $title) === 'invoice') {
    $layout = 'invoice_modern';
}

$this->load->view('admin/common/sales/pdf/' . $layout);
if (!empty($sales_info->item_layout)) {
    $this->load->view($sales_info->item_layout);
}
