<?php
/* Smarty version 3.1.34-dev-7, created on 2020-05-26 14:19:29
  from '/Applications/MAMP/htdocs/apstrix/crm-backend/ui/theme/default/projects_list.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.34-dev-7',
  'unifunc' => 'content_5eccb4f13f2208_53223032',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '31ac4c5e270da8bec734aa1c72695f70f15639ff' => 
    array (
      0 => '/Applications/MAMP/htdocs/apstrix/crm-backend/ui/theme/default/projects_list.tpl',
      1 => 1581002483,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_5eccb4f13f2208_53223032 (Smarty_Internal_Template $_smarty_tpl) {
$_smarty_tpl->_loadInheritance();
$_smarty_tpl->inheritance->init($_smarty_tpl, true);
?>


<?php 
$_smarty_tpl->inheritance->instanceBlock($_smarty_tpl, 'Block_7198175845eccb4f1372b90_72788522', "style");
?>


<?php 
$_smarty_tpl->inheritance->instanceBlock($_smarty_tpl, 'Block_3080912545eccb4f138f511_87081323', "content");
?>



<?php 
$_smarty_tpl->inheritance->instanceBlock($_smarty_tpl, 'Block_10872339715eccb4f13efad0_62828643', "script");
$_smarty_tpl->inheritance->endChild($_smarty_tpl, ((string)$_smarty_tpl->tpl_vars['layouts_admin']->value));
}
/* {block "style"} */
class Block_7198175845eccb4f1372b90_72788522 extends Smarty_Internal_Block
{
public $subBlocks = array (
  'style' => 
  array (
    0 => 'Block_7198175845eccb4f1372b90_72788522',
  ),
);
public function callBlock(Smarty_Internal_Template $_smarty_tpl) {
?>

    <link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->tpl_vars['app_url']->value;?>
ui/lib/footable/css/footable.core.min.css" />
    <style>
        .contact-box {
        <?php if ($_smarty_tpl->tpl_vars['config']->value['nstyle'] == 'dark_mode') {?>
            background-color: rgba(255,255,255,.05);
            border: 1px solid #394156;
        <?php } else { ?>
            background-color: #ffffff;
            border: 1px solid #e7eaec;
        <?php }?>
            padding: 20px;
            margin-bottom: 20px;
        }

        .contact-box > a {
            color: inherit;
        }

        .img-fluid {
            max-width: 100%;
            height: auto;
        }

        .rounded-circle {
            border-radius: 50%!important;
        }











    </style>
<?php
}
}
/* {/block "style"} */
/* {block "content"} */
class Block_3080912545eccb4f138f511_87081323 extends Smarty_Internal_Block
{
public $subBlocks = array (
  'content' => 
  array (
    0 => 'Block_3080912545eccb4f138f511_87081323',
  ),
);
public function callBlock(Smarty_Internal_Template $_smarty_tpl) {
?>



    <div class="row">
        <div class="col-md-6">
            <h3 class="ibilling-page-header">Projects</h3>
        </div>
        <div class="col-md-6 text-right">
            <a href="<?php echo $_smarty_tpl->tpl_vars['_url']->value;?>
projects/project" class="btn btn-primary">Create New Project</a>
        </div>
    </div>

    <div class="row">
        <div class="col-md-12">
            <div class="tabs-container">



                <div class="row">

                    <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['projects']->value, 'project');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['project']->value) {
?>

                        <div class="col-lg-6">
                            <div class="contact-box">
                                <a class="row" href="<?php echo $_smarty_tpl->tpl_vars['_url']->value;?>
projects/view/<?php echo $_smarty_tpl->tpl_vars['project']->value->id;?>
">

                                    <div class="col-xs-8">
                                        <h3><strong><?php echo $_smarty_tpl->tpl_vars['project']->value->name;?>
</strong></h3>
                                        <br>

                                        <p>
                                            <strong>Project Manager:</strong>
                                            <?php if ($_smarty_tpl->tpl_vars['project']->value->project_manager_id && isset($_smarty_tpl->tpl_vars['staffs']->value[$_smarty_tpl->tpl_vars['project']->value->project_manager_id])) {?>
                                                <?php echo $_smarty_tpl->tpl_vars['staffs']->value[$_smarty_tpl->tpl_vars['project']->value->project_manager_id]->fullname;?>

                                            <?php }?>
                                        </p>


                                        <p><strong>Client: </strong> <?php if ($_smarty_tpl->tpl_vars['project']->value->contact_id && isset($_smarty_tpl->tpl_vars['contacts']->value[$_smarty_tpl->tpl_vars['project']->value->contact_id])) {?>
                                                <?php echo $_smarty_tpl->tpl_vars['contacts']->value[$_smarty_tpl->tpl_vars['project']->value->contact_id]->account;?>

                                            <?php }?>
                                        </p>

                                        <p><strong>Budget: </strong><?php if ($_smarty_tpl->tpl_vars['project']->value->budget) {?>
                                                <?php echo formatCurrency($_smarty_tpl->tpl_vars['project']->value->budget,$_smarty_tpl->tpl_vars['project']->value->currency);?>

                                            <?php }?>
                                        </p>

                                        <p><strong>Status: </strong><?php echo $_smarty_tpl->tpl_vars['project']->value->status;?>
</p>
                                        <p><strong>Start Date: </strong><?php echo $_smarty_tpl->tpl_vars['project']->value->start_date;?>
</p>
                                        <p><strong>Due Date: </strong><?php echo $_smarty_tpl->tpl_vars['project']->value->due_date;?>
</p>


                                    <div>

                                    </div>

                                        <address>




                                        </address>
                                    </div>

                                </a>
                                <div>

                                    <a href="<?php echo $_smarty_tpl->tpl_vars['_url']->value;?>
projects/view/<?php echo $_smarty_tpl->tpl_vars['project']->value->id;?>
" class="btn btn-primary" data-toggle="tooltip" data-placement="top" title="<?php echo $_smarty_tpl->tpl_vars['_L']->value['View'];?>
"><i class="fa fa-file-text-o"></i></a>
                                    <a href="<?php echo $_smarty_tpl->tpl_vars['_url']->value;?>
projects/project/<?php echo $_smarty_tpl->tpl_vars['project']->value->id;?>
" class="btn btn-info " data-toggle="tooltip" data-placement="top" title="<?php echo $_smarty_tpl->tpl_vars['_L']->value['Edit'];?>
"><i class="fa fa-pencil"></i></a>


                                    <a href="<?php echo $_smarty_tpl->tpl_vars['_url']->value;?>
projects/delete/<?php echo $_smarty_tpl->tpl_vars['project']->value->id;?>
" class="btn btn-danger  cdelete" id="iiddd" data-toggle="tooltip" data-placement="top" title="<?php echo $_smarty_tpl->tpl_vars['_L']->value['Delete'];?>
"><i class="fa fa-trash"></i></a>

                                </div>

                            </div>

                        </div>

                        <?php
}
} else {
?>

                        <p>No data to display</p>
                    <?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>


                </div>































            </div>
        </div>
    </div>


<?php
}
}
/* {/block "content"} */
/* {block "script"} */
class Block_10872339715eccb4f13efad0_62828643 extends Smarty_Internal_Block
{
public $subBlocks = array (
  'script' => 
  array (
    0 => 'Block_10872339715eccb4f13efad0_62828643',
  ),
);
public function callBlock(Smarty_Internal_Template $_smarty_tpl) {
?>


    <?php echo '<script'; ?>
 type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['app_url']->value;?>
ui/lib/footable/js/footable.all.min.js"><?php echo '</script'; ?>
>

    <?php echo '<script'; ?>
>


        $(function () {

            $('.footable').footable();

            $('[data-toggle="tooltip"]').tooltip();


        });

    <?php echo '</script'; ?>
>
<?php
}
}
/* {/block "script"} */
}
