<?php
/* Smarty version 5.4.1, created on 2024-11-03 17:49:50
  from 'file:../default/invoice_pos_receipt.tpl' */

/* @var \Smarty\Template $_smarty_tpl */
if ($_smarty_tpl->getCompiled()->isFresh($_smarty_tpl, array (
  'version' => '5.4.1',
  'unifunc' => 'content_6727fe0e3235c4_77811848',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '84af1ea7c7cd84db9275549391912053ac06d9e0' => 
    array (
      0 => '../default/invoice_pos_receipt.tpl',
      1 => 1730635718,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
))) {
function content_6727fe0e3235c4_77811848 (\Smarty\Template $_smarty_tpl) {
$_smarty_current_dir = '/Users/razib/Herd/suite/ui/theme/default';
$_smarty_tpl->getInheritance()->init($_smarty_tpl, false);
?>
<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="icon" href="<?php ob_start();
echo APP_URL;
$_prefixVariable1 = ob_get_clean();
echo $_prefixVariable1;?>
/storage/system/<?php echo $_smarty_tpl->getSmarty()->getModifierCallback('get_or_default')($_smarty_tpl->getValue('config'),'icon-32','icon-32x32.png');?>
" sizes="32x32" />
    <link rel="icon" href="<?php ob_start();
echo APP_URL;
$_prefixVariable2 = ob_get_clean();
echo $_prefixVariable2;?>
/storage/system/<?php echo $_smarty_tpl->getSmarty()->getModifierCallback('get_or_default')($_smarty_tpl->getValue('config'),'icon-192','icon-192x192.png');?>
" sizes="192x192" />
    <link rel="apple-touch-icon" href="<?php ob_start();
echo APP_URL;
$_prefixVariable3 = ob_get_clean();
echo $_prefixVariable3;?>
/storage/system/<?php echo $_smarty_tpl->getSmarty()->getModifierCallback('get_or_default')($_smarty_tpl->getValue('config'),'icon-180','icon-180x180.png');?>
" />
    <meta name="msapplication-TileImage" content="<?php ob_start();
echo APP_URL;
$_prefixVariable4 = ob_get_clean();
echo $_prefixVariable4;?>
/storage/system/<?php echo $_smarty_tpl->getSmarty()->getModifierCallback('get_or_default')($_smarty_tpl->getValue('config'),'icon-270','icon-270x270.png');?>
" />

    <?php if (APP_STAGE == 'Dev') {?>

        <?php if ($_smarty_tpl->getValue('config')['rtl'] == '1') {?>
            <link id="css_app" rel="stylesheet" media="screen, print" href="<?php ob_start();
echo APP_URL;
$_prefixVariable5 = ob_get_clean();
echo $_prefixVariable5;?>
/ui/theme/default/css/app-rtl.min.css?v=<?php ob_start();
echo $_smarty_tpl->getSmarty()->getModifierCallback('_raid')();
$_prefixVariable6 = ob_get_clean();
echo $_prefixVariable6;?>
">
        <?php } else { ?>
            <link id="css_app" rel="stylesheet" media="screen, print" href="<?php ob_start();
echo APP_URL;
$_prefixVariable7 = ob_get_clean();
echo $_prefixVariable7;?>
/ui/theme/default/css/app.min.css?v=<?php ob_start();
echo $_smarty_tpl->getSmarty()->getModifierCallback('_raid')();
$_prefixVariable8 = ob_get_clean();
echo $_prefixVariable8;?>
">

        <?php }?>

        <link href="<?php echo $_smarty_tpl->getValue('theme');?>
default/css/themes/<?php echo $_smarty_tpl->getValue('config')['nstyle'];?>
.css?v=<?php ob_start();
echo $_smarty_tpl->getSmarty()->getModifierCallback('_raid')();
$_prefixVariable9 = ob_get_clean();
echo $_prefixVariable9;?>
" rel="stylesheet">

    <?php } else { ?>

        <?php if ($_smarty_tpl->getValue('config')['rtl'] == '1') {?>
            <link id="css_app" rel="stylesheet" media="screen, print" href="<?php ob_start();
echo APP_URL;
$_prefixVariable10 = ob_get_clean();
echo $_prefixVariable10;?>
/ui/theme/default/css/app-rtl.min.css?v=2">
        <?php } else { ?>
            <link id="css_app" rel="stylesheet" media="screen, print" href="<?php ob_start();
echo APP_URL;
$_prefixVariable11 = ob_get_clean();
echo $_prefixVariable11;?>
/ui/theme/default/css/app.min.css?v=2">
        <?php }?>

        <link href="<?php echo $_smarty_tpl->getValue('theme');?>
default/css/themes/<?php echo $_smarty_tpl->getValue('config')['nstyle'];?>
.css?v=13" rel="stylesheet">
    <?php }?>

    <?php 
$_smarty_tpl->getInheritance()->instanceBlock($_smarty_tpl, 'Block_861690816727fe0e2fbca3_57159765', 'style');
?>


    <?php echo '<script'; ?>
>
        var base_url = '<?php echo $_smarty_tpl->getValue('_url');?>
';
        var block_msg = '<div class="md-preloader text-center"><svg xmlns="http://www.w3.org/2000/svg" version="1.1" height="32" width="32" viewbox="0 0 75 75"><circle cx="37.5" cy="37.5" r="33.5" stroke-width="6"/></svg></div>';
    <?php echo '</script'; ?>
>

    <?php echo $_smarty_tpl->getValue('config')['header_scripts'];?>



    <style type="text/css">

        #invoice-POS {
            padding: 6mm;
            margin: 0 auto;
            width: 80mm;
            background: #FFF;
        }
        #invoice-POS ::selection {
            background-color: #FFF;
            color: #FFF;
        }
        #invoice-POS ::moz-selection {
            background-color: #FFF;
            color: #FFF;
        }
        #invoice-POS h1 {
            font-size: 1.6em;
            color: #222;
        }
        #invoice-POS h2 {
            font-size: 1em;
        }
        #invoice-POS h3 {
            font-size: 1.3em;
            font-weight: 300;
            line-height: 2em;
        }
        #invoice-POS p {
            font-size: 0.9em;
            color: #222;
            line-height: 1.2em;
        }
        #invoice-POS #top, #invoice-POS #mid, #invoice-POS #bot {
            /* Targets all id with 'col-' */
            border-bottom: 1px solid #EEE;
        }
        #invoice-POS #top {
            min-height: 100px;
        }
        #invoice-POS #mid {
            min-height: 80px;
        }
        #invoice-POS #bot {
            min-height: 50px;
        }
        #invoice-POS #top .logo {
            height: 80px;
            width: 80px;
            background-size: 80px 80px;
        }
        #invoice-POS .info {
            display: block;
            margin-left: 0;
        }
        #invoice-POS .title {
            float: right;
        }
        #invoice-POS .title p {
            text-align: right;
        }
        #invoice-POS table {
            width: 100%;
            border-collapse: collapse;
        }
        #invoice-POS .tabletitle {
            font-size: 0.7em;
            background: #EEE;
        }
        #invoice-POS .service {
            border-bottom: 1px solid #EEE;
        }
        #invoice-POS .item {
            width: 24mm;
        }
        #invoice-POS .itemtext {
            font-size: 0.8em;
        }
        #invoice-POS #legalcopy {
            margin-top: 5mm;
        }
        #invoice-POS .signature {
            margin-top: 5mm;
            border-top: 1px solid #EEE;
            text-align: center;
        }




        .table.invoice-items{
            border: 1px solid #dee2e6;
        }

        .table.invoice-items td, .table.invoice-items th {
            border: 1px solid #dee2e6;
        }


    </style>



</head>
<body class="fixed-nav">

<section class="">
    <div class="">
        <div class="invoice">
            <?php if ((null !== ($_smarty_tpl->getValue('notify') ?? null))) {?>
                <?php echo $_smarty_tpl->getValue('notify');?>

            <?php }?>
            <header class="clearfix">

                <div class="row">
                    <div class="col-md-12 mt-4">
                        <div class="text-center">
                            <a href="<?php echo $_smarty_tpl->getValue('_url');?>
invoices/pos-pdf/<?php echo $_smarty_tpl->getValue('d')['id'];?>
/token_<?php echo $_smarty_tpl->getValue('d')['vtoken'];?>
/view/" class="btn btn-primary buttons-excel ml-sm"><i class="fal fa-file-text-o"></i> <?php echo $_smarty_tpl->getValue('_L')['View PDF'];?>
</a>
                            <a href="<?php echo $_smarty_tpl->getValue('_url');?>
invoices/pos-print/<?php echo $_smarty_tpl->getValue('d')['id'];?>
/token_<?php echo $_smarty_tpl->getValue('d')['vtoken'];?>
" target="_blank" class="btn btn-primary buttons-print ml-sm"><i class="fal fa-print"></i> <?php echo $_smarty_tpl->getValue('_L')['Printable Version'];?>
</a>
                        </div>

                        <div class="hr-line-dashed"></div>

                    </div>
                </div>
                <div class="row">
                    <div class="col-sm-6 mt-md">


                    </div>

                </div>
            </header>
            <div class="">
                <div class="row">
                    <div id="invoice-POS">
                        <center id="top">
                            <div class=" mt-4">
                                <img src="<?php echo $_smarty_tpl->getValue('app_url');?>
storage/system/<?php echo $_smarty_tpl->getValue('config')['logo_default'];?>
" alt="<?php echo $_smarty_tpl->getValue('config')['CompanyName'];?>
" class="img-fluid"  style="margin-bottom: 15px; max-width: 50%">
                            </div>
                            <div class="info">
                                <h2><?php echo $_smarty_tpl->getValue('config')['CompanyName'];?>
</h2>
                                <p class="info col-md-10">

                                    <br>
                                    <?php echo $_smarty_tpl->getValue('config')['caddress'];?>


                                    <?php if ((null !== ($_smarty_tpl->getValue('config')['vat_number'] ?? null)) && ($_smarty_tpl->getValue('config')['vat_number'] != '')) {?>

                                        <br>
                                        <strong><?php echo $_smarty_tpl->getSmarty()->getModifierCallback('sp_config_or_default')('label_tax_number',$_smarty_tpl->getValue('_L')['Vat number']);?>
:</strong> <?php echo $_smarty_tpl->getValue('config')['vat_number'];?>


                                    <?php }?>


                                </p>
                            </div>
                        </center>

                        <div id="mid">
                            <div class="info">
                                <h2><?php ob_start();
echo $_smarty_tpl->getSmarty()->getModifierCallback('__')('Invoiced To');
$_prefixVariable12 = ob_get_clean();
echo $_prefixVariable12;?>
</h2>
                                <p>
                                    <?php if ($_smarty_tpl->getValue('a')['company'] != '') {?>
                                        <?php echo $_smarty_tpl->getValue('a')['company'];?>


                                        <br>

                                        <?php if ($_smarty_tpl->getValue('company') && $_smarty_tpl->getValue('config')['show_business_number'] == '1') {?>

                                            <?php if ($_smarty_tpl->getValue('company')->business_number != '') {?>
                                                <?php echo $_smarty_tpl->getValue('config')['label_business_number'];?>
: <?php echo $_smarty_tpl->getValue('company')->business_number;?>

                                                <br>
                                            <?php }?>
                                        <?php }?>

                                        <?php echo $_smarty_tpl->getValue('_L')['ATTN'];?>
: <?php echo $_smarty_tpl->getValue('d')['account'];?>

                                        <br>
                                    <?php } else { ?>
                                        <?php echo $_smarty_tpl->getValue('d')['account'];?>

                                        <br>
                                    <?php }?>

                                    <?php echo $_smarty_tpl->getSmarty()->getModifierCallback('getContactFormattedAddress')($_smarty_tpl->getValue('config'),$_smarty_tpl->getValue('a'));?>

                                    <br>
                                    <strong><?php echo $_smarty_tpl->getValue('_L')['Phone'];?>
:</strong> <?php echo $_smarty_tpl->getValue('a')['phone'];?>


                                    <?php if ($_smarty_tpl->getValue('config')['fax_field'] != '0' && $_smarty_tpl->getValue('a')['fax'] != '') {?>
                                        <br>
                                        <strong><?php echo $_smarty_tpl->getValue('_L')['Fax'];?>
:</strong> <?php echo $_smarty_tpl->getValue('a')['fax'];?>

                                    <?php }?>

                                    <br>
                                    <strong><?php echo $_smarty_tpl->getValue('_L')['Email'];?>
:</strong> <?php echo $_smarty_tpl->getValue('a')['email'];?>

                                    <?php
$_from = $_smarty_tpl->getSmarty()->getRuntime('Foreach')->init($_smarty_tpl, $_smarty_tpl->getValue('cf'), 'cfs');
$foreach0DoElse = true;
foreach ($_from ?? [] as $_smarty_tpl->getVariable('cfs')->value) {
$foreach0DoElse = false;
?>
                                        <?php if ($_smarty_tpl->getValue('cfs')['showinvoice'] == 'No') {?>
                                            <?php continue 1;?>
                                        <?php }?>
                                        <br>
                                        <strong><?php echo $_smarty_tpl->getValue('cfs')['fieldname'];?>
: </strong> <?php echo $_smarty_tpl->getSmarty()->getModifierCallback('get_custom_field_value')($_smarty_tpl->getValue('cfs')['id'],$_smarty_tpl->getValue('a')['id']);?>

                                    <?php
}
$_smarty_tpl->getSmarty()->getRuntime('Foreach')->restore($_smarty_tpl, 1);?>
                                    <?php echo $_smarty_tpl->getValue('x_html');?>

                                </p>

                                <?php if ($_smarty_tpl->getValue('d')['status'] == 'Unpaid') {?>
                                    <strong><?php echo $_smarty_tpl->getValue('_L')['Unpaid'];?>
</strong>
                                <?php } elseif ($_smarty_tpl->getValue('d')['status'] == 'Paid') {?>
                                    <strong><?php echo $_smarty_tpl->getValue('_L')['Paid'];?>
</strong>
                                <?php } elseif ($_smarty_tpl->getValue('d')['status'] == 'Partially Paid') {?>
                                    <strong><?php echo $_smarty_tpl->getValue('_L')['Partially Paid'];?>
</strong>
                                <?php } else { ?>
                                    <strong><?php echo $_smarty_tpl->getValue('d')['status'];?>
</strong>
                                <?php }?>

                                <?php if (($_smarty_tpl->getValue('d')['credit']) != '0.00') {?>


                                    <p>
                                        <strong><?php echo $_smarty_tpl->getValue('_L')['Total Paid'];?>
:</strong> <?php echo $_smarty_tpl->getSmarty()->getModifierCallback('formatCurrency')($_smarty_tpl->getValue('d')['credit'],$_smarty_tpl->getValue('d')['currency_iso_code']);?>
 <br>
                                        <strong><?php echo $_smarty_tpl->getValue('_L')['Amount Due'];?>
</strong>: <?php echo $_smarty_tpl->getSmarty()->getModifierCallback('formatCurrency')($_smarty_tpl->getValue('i_due'),$_smarty_tpl->getValue('d')['currency_iso_code']);?>

                                    </p>

                                <?php }?>

                            </div>
                        </div>

                        <div id="bot">

                            <div id="table">
                                <table>

                                    <tr class="tabletitle">
                                        <td class="item"><h2>Item</h2></td>
                                        <td class="Hours"><h2>Qty</h2></td>
                                        <td class="Rate"><h2>Sub Total</h2></td>
                                    </tr>

                                    <?php
$_from = $_smarty_tpl->getSmarty()->getRuntime('Foreach')->init($_smarty_tpl, $_smarty_tpl->getValue('items'), 'item');
$foreach1DoElse = true;
foreach ($_from ?? [] as $_smarty_tpl->getVariable('item')->value) {
$foreach1DoElse = false;
?>

                                        <tr class="service">
                                            <td class="tableitem"><p class="itemtext"><?php echo $_smarty_tpl->getValue('item')['description'];?>
</p></td>
                                            <td class="tableitem"><p class="itemtext"><?php echo $_smarty_tpl->getSmarty()->getModifierCallback('numberFormatUsingCurrency')($_smarty_tpl->getValue('item')['qty'],$_smarty_tpl->getValue('d')['currency_iso_code'],0);?>
</p></td>
                                            <td class="tableitem"><p class="itemtext">
                                                    <?php echo $_smarty_tpl->getSmarty()->getModifierCallback('formatCurrency')(($_smarty_tpl->getValue('item')['total']+$_smarty_tpl->getValue('item')['taxamount']),$_smarty_tpl->getValue('d')['currency_iso_code']);?>

                                                </p></td>
                                        </tr>
                                    <?php
}
$_smarty_tpl->getSmarty()->getRuntime('Foreach')->restore($_smarty_tpl, 1);?>


                                    <tr class="tabletitle">
                                        <td></td>
                                        <td class="Rate"><h2><?php ob_start();
echo $_smarty_tpl->getSmarty()->getModifierCallback('__')("Sub Total");
$_prefixVariable13 = ob_get_clean();
echo $_prefixVariable13;?>
</h2></td>
                                        <td class="payment"><h2><?php echo $_smarty_tpl->getSmarty()->getModifierCallback('formatCurrency')($_smarty_tpl->getValue('d')['subtotal'],$_smarty_tpl->getValue('d')['currency_iso_code']);?>
</h2></td>
                                    </tr>



                                        <?php if (($_smarty_tpl->getValue('d')['discount']) != '0.00') {?>
                                    <tr>
                                        <td colspan="2"><?php echo $_smarty_tpl->getValue('_L')['Discount'];?>
</td>
                                        <td class="text-left"><?php echo $_smarty_tpl->getSmarty()->getModifierCallback('formatCurrency')($_smarty_tpl->getValue('d')['discount'],$_smarty_tpl->getValue('d')['currency_iso_code']);?>
</td>
                                    </tr>
                                    <?php }?>

                                    <?php if ($_smarty_tpl->getValue('config')['tax_system'] == 'India') {?>
                                        <tr>
                                            <td colspan="2">GST</td>
                                            <td class="text-left"><?php echo $_smarty_tpl->getSmarty()->getModifierCallback('formatCurrency')($_smarty_tpl->getValue('d')['tax'],$_smarty_tpl->getValue('d')['currency_iso_code']);?>
</td>
                                        </tr>
                                    <?php } else { ?>


                                        <tr class="tabletitle">
                                            <td></td>
                                            <td class="Rate"><h2><?php ob_start();
echo $_smarty_tpl->getSmarty()->getModifierCallback('__')('Tax');
$_prefixVariable14 = ob_get_clean();
echo $_prefixVariable14;?>
</h2></td>
                                            <td class="payment"><h2><?php echo $_smarty_tpl->getSmarty()->getModifierCallback('formatCurrency')($_smarty_tpl->getValue('d')['tax'],$_smarty_tpl->getValue('d')['currency_iso_code']);?>
</h2></td>
                                        </tr>


                                    <?php }?>


                                    <tr class="tabletitle">
                                        <td></td>
                                        <td class="Rate"><h2><?php ob_start();
echo $_smarty_tpl->getSmarty()->getModifierCallback('__')('Grand Total');
$_prefixVariable15 = ob_get_clean();
echo $_prefixVariable15;?>
</h2></td>
                                        <td class="payment"><h2><?php echo $_smarty_tpl->getSmarty()->getModifierCallback('formatCurrency')($_smarty_tpl->getValue('d')['total'],$_smarty_tpl->getValue('d')['currency_iso_code']);?>
</h2></td>
                                    </tr>

                                </table>

                            </div>

                            <?php if (($_smarty_tpl->getValue('d')['notes']) != '') {?>
                                <div  id="legalcopy" class="m-t">
                                    <p class="legal">
                                       <strong> <?php echo $_smarty_tpl->getValue('d')['notes'];?>
</strong>
                                    </p>

                                </div>
                            <?php }?>






                        </div><!--End InvoiceBot-->
                    </div>

                </div>
            </div>

        </div>


</section>


</body>

<!--End Invoice-->
<?php }
/* {block 'style'} */
class Block_861690816727fe0e2fbca3_57159765 extends \Smarty\Runtime\Block
{
public function callBlock(\Smarty\Template $_smarty_tpl) {
$_smarty_current_dir = '/Users/razib/Herd/suite/ui/theme/default';
}
}
/* {/block 'style'} */
}
