<?php
/* Smarty version 5.4.1, created on 2024-11-04 07:17:24
  from 'file:../default/marketing_crm/admin/design_email.tpl' */

/* @var \Smarty\Template $_smarty_tpl */
if ($_smarty_tpl->getCompiled()->isFresh($_smarty_tpl, array (
  'version' => '5.4.1',
  'unifunc' => 'content_6728bb5429e072_58272285',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '4f24e67aa0435680c511e337d26b44fb8353b960' => 
    array (
      0 => '../default/marketing_crm/admin/design_email.tpl',
      1 => 1730635718,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
))) {
function content_6728bb5429e072_58272285 (\Smarty\Template $_smarty_tpl) {
$_smarty_current_dir = '/Users/razib/Herd/suite/ui/theme/default/marketing_crm/admin';
$_smarty_tpl->getInheritance()->init($_smarty_tpl, true);
?>

<?php 
$_smarty_tpl->getInheritance()->instanceBlock($_smarty_tpl, 'Block_4411459976728bb54299973_92047392', "content");
?>


<?php 
$_smarty_tpl->getInheritance()->instanceBlock($_smarty_tpl, 'Block_168540296728bb5429d489_80805884', "script");
?>

<?php $_smarty_tpl->getInheritance()->endChild($_smarty_tpl, ((string)$_smarty_tpl->getValue('layouts_admin')), $_smarty_current_dir);
}
/* {block "content"} */
class Block_4411459976728bb54299973_92047392 extends \Smarty\Runtime\Block
{
public function callBlock(\Smarty\Template $_smarty_tpl) {
$_smarty_current_dir = '/Users/razib/Herd/suite/ui/theme/default/marketing_crm/admin';
?>


    <div class="row">



        <div class="col-md-12">



            <div class="card">

                <div class="card-body">

                    <h1>Design Email</h1>

                    <hr>

                    <form method="post" action="<?php echo $_smarty_tpl->getValue('_url');?>
marketing/save-design-email">
                        <?php if ($_smarty_tpl->getValue('selected_campaign')) {?>
                            <input type="hidden" name="id" value="<?php echo $_smarty_tpl->getValue('selected_campaign')->id;?>
">
                        <?php }?>


                        <div class="mb-3">
                            <label for="title">Subject</label>
                            <input class="form-control" name="subject" <?php if ($_smarty_tpl->getValue('selected_campaign')) {?>value="<?php echo $_smarty_tpl->getValue('selected_campaign')->subject;?>
"
                                    <?php }?> id="title">
                        </div>

                        <div class="mb-3">
                            <label for="contents">Message</label>
                            <textarea class="form-control" rows="10" id="body" name="body"><?php if ($_smarty_tpl->getValue('selected_campaign')) {
echo $_smarty_tpl->getValue('selected_campaign')->body_html;
}?></textarea>
                        </div>

                        <button class="btn btn-primary" type="submit">Save</button>

                    </form>


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



    </div>
<?php
}
}
/* {/block "content"} */
/* {block "script"} */
class Block_168540296728bb5429d489_80805884 extends \Smarty\Runtime\Block
{
public function callBlock(\Smarty\Template $_smarty_tpl) {
$_smarty_current_dir = '/Users/razib/Herd/suite/ui/theme/default/marketing_crm/admin';
?>




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


        $(function () {


            $('#body').redactor(
                {
                    minHeight: 200, // pixels
                    plugins: ['fontcolor']
                }
            );







        });

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