| Server IP : 202.61.199.114 / Your IP : 216.73.217.139 Web Server : nginx/1.22.1 System : Linux de.arni-solutions.de 6.1.0-49-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64 User : web20 ( 1018) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /tmp/sc/ |
Upload File : |
<?php
/* Smarty version 3.1.30, created on 2026-06-27 05:56:50
from "/var/www/clients/client1/web17/web/includes/templates/templates/booking/_overview.tpl" */
/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
'version' => '3.1.30',
'unifunc' => 'content_6a3f4a02999b54_67479510',
'has_nocache_code' => false,
'file_dependency' =>
array (
'878fedc5f796040c56460a97ecf03ec5c6ac2f9a' =>
array (
0 => '/var/www/clients/client1/web17/web/includes/templates/templates/booking/_overview.tpl',
1 => 1781844039,
2 => 'file',
),
),
'includes' =>
array (
),
),false)) {
function content_6a3f4a02999b54_67479510 (Smarty_Internal_Template $_smarty_tpl) {
if (!is_callable('smarty_modifier_date_format')) require_once '/var/www/clients/client1/web17/web/includes/plugins/smarty-3.1.30/plugins/modifier.date_format.php';
$_smarty_tpl->_assignInScope('inv', $_smarty_tpl->tpl_vars['booking']->value->invoice);
$_smarty_tpl->_assignInScope('cust', $_smarty_tpl->tpl_vars['booking']->value->customer);
$_smarty_tpl->_assignInScope('isAida', ($_smarty_tpl->tpl_vars['cust']->value->customer_source == "AIDA"));
$_smarty_tpl->_assignInScope('checkedIn', (($tmp = @$_smarty_tpl->tpl_vars['booking']->value->quick->checkin->checked_in)===null||$tmp==='' ? 0 : $tmp));
$_smarty_tpl->_assignInScope('vehTotal', count($_smarty_tpl->tpl_vars['booking']->value->bookings));
?>
<?php $_smarty_tpl->_assignInScope('payIcon', "euro");
if ($_smarty_tpl->tpl_vars['isAida']->value) {
$_smarty_tpl->_assignInScope('payIcon', "directions_boat");
} elseif ($_smarty_tpl->tpl_vars['inv']->value->invoice_payment == 1) {
$_smarty_tpl->_assignInScope('payIcon', "account_balance");
} elseif ($_smarty_tpl->tpl_vars['inv']->value->invoice_payment == 2) {
$_smarty_tpl->_assignInScope('payIcon', "credit_card");
} elseif ($_smarty_tpl->tpl_vars['inv']->value->invoice_payment == 3) {
$_smarty_tpl->_assignInScope('payIcon', "payments");
} elseif ($_smarty_tpl->tpl_vars['inv']->value->invoice_payment == 4) {
$_smarty_tpl->_assignInScope('payIcon', "hourglass_top");
}
$_smarty_tpl->_assignInScope('isStorno', ($_smarty_tpl->tpl_vars['inv']->value->invoice_status == 3));
$_smarty_tpl->_assignInScope('payEditable', (!$_smarty_tpl->tpl_vars['isAida']->value && !$_smarty_tpl->tpl_vars['isStorno']->value));
$_smarty_tpl->_assignInScope('payPaid', ($_smarty_tpl->tpl_vars['inv']->value->invoice_payment > 0 && $_smarty_tpl->tpl_vars['inv']->value->invoice_payment != 4));
$_smarty_tpl->_assignInScope('payOpen', (!$_smarty_tpl->tpl_vars['isAida']->value && !$_smarty_tpl->tpl_vars['payPaid']->value));
?>
<!-- KPI-Karten -->
<div class="row g-3 mb-3">
<div class="col-6 col-xl-3">
<div class="card h-100 bk-pay-card<?php if ($_smarty_tpl->tpl_vars['payEditable']->value) {?> admin-modal<?php }?>"<?php if ($_smarty_tpl->tpl_vars['payEditable']->value) {?> data-bs-toggle="modal" data-bs-target="#confirmationModal" data-template="invoice/payment.tpl" data-headline="<?php if ($_smarty_tpl->tpl_vars['payPaid']->value) {?>Zahlung bearbeiten<?php } else { ?>Zahlung erfassen<?php }?>" data-json="<?php if ($_smarty_tpl->tpl_vars['payPaid']->value) {
ob_start();
echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['inv']->value->payment_datum,"%Y-%m-%d");
$_prefixVariable2=ob_get_clean();
echo htmlspecialchars(json_encode(array('invoice_id'=>$_smarty_tpl->tpl_vars['inv']->value->invoice_id,'price'=>$_smarty_tpl->tpl_vars['inv']->value->full_price,'content'=>array('payment_type'=>$_smarty_tpl->tpl_vars['inv']->value->invoice_payment,'payment_date'=>$_prefixVariable2,'invoice_coupon'=>$_smarty_tpl->tpl_vars['inv']->value->invoice_coupon,'payment_value'=>$_smarty_tpl->tpl_vars['inv']->value->payment_value,'payment_notice'=>$_smarty_tpl->tpl_vars['inv']->value->payment_notice))));
} else {
echo htmlspecialchars(json_encode(array('invoice_id'=>$_smarty_tpl->tpl_vars['inv']->value->invoice_id,'price'=>$_smarty_tpl->tpl_vars['inv']->value->full_price)));
}?>"<?php }?>>
<?php if ($_smarty_tpl->tpl_vars['payEditable']->value) {?><span class="bk-pay-edit" title="<?php if ($_smarty_tpl->tpl_vars['payPaid']->value) {?>Zahlung bearbeiten<?php } else { ?>Zahlung erfassen<?php }?>"><i class="material-icons sm">edit</i></span><?php }?>
<div class="bk-stat">
<div class="bk-ico <?php if ($_smarty_tpl->tpl_vars['isAida']->value || $_smarty_tpl->tpl_vars['inv']->value->invoice_payment > 0) {?>teal<?php } else { ?>red<?php }?>"><i class="material-icons"><?php echo $_smarty_tpl->tpl_vars['payIcon']->value;?>
</i></div>
<div>
<div class="stat-label">Zahlung</div>
<div class="bk-val"><?php echo number_format($_smarty_tpl->tpl_vars['inv']->value->full_price,2,",",".");?>
€</div>
<div class="stat-sub">
<?php if ($_smarty_tpl->tpl_vars['isAida']->value) {?>AIDA · bezahlt
<?php } elseif ($_smarty_tpl->tpl_vars['inv']->value->invoice_payment == 0) {?><span class="text-danger fw-bold">offen</span>
<?php } elseif ($_smarty_tpl->tpl_vars['inv']->value->invoice_payment == 4) {?><span class="text-danger fw-bold">Nachkontrolle</span>
<?php } elseif ($_smarty_tpl->tpl_vars['inv']->value->invoice_payment == 1) {?>per Überweisung
<?php } elseif ($_smarty_tpl->tpl_vars['inv']->value->invoice_payment == 2) {?>per EC-Karte
<?php } elseif ($_smarty_tpl->tpl_vars['inv']->value->invoice_payment == 3) {?>bar bezahlt<?php }?>
</div>
</div>
</div></div>
</div>
<div class="col-6 col-xl-3">
<div class="card h-100 bk-edit-card<?php if (!$_smarty_tpl->tpl_vars['isStorno']->value) {?> admin-modal<?php }?>"<?php if (!$_smarty_tpl->tpl_vars['isStorno']->value) {?> data-bs-toggle="modal" data-bs-target="#confirmationModal" data-template="booking/travel.tpl" data-headline="Reisezeitraum & Schiff bearbeiten" data-json="<?php ob_start();
echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['inv']->value->booking_begin,"%Y-%m-%d");
$_prefixVariable3=ob_get_clean();
ob_start();
echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['inv']->value->booking_end,"%Y-%m-%d");
$_prefixVariable4=ob_get_clean();
echo htmlspecialchars(json_encode(array('invoice_id'=>$_smarty_tpl->tpl_vars['inv']->value->invoice_id,'booking_begin'=>$_prefixVariable3,'booking_end'=>$_prefixVariable4,'booking_event'=>$_smarty_tpl->tpl_vars['booking']->value->quick->checkin->event)));?>
"<?php }?>>
<?php if (!$_smarty_tpl->tpl_vars['isStorno']->value) {?><span class="bk-edit-ico" title="Reisezeitraum & Schiff bearbeiten"><i class="material-icons sm">edit</i></span><?php }?>
<div class="bk-stat">
<div class="bk-ico blue"><i class="material-icons">event</i></div>
<div>
<div class="stat-label">Reisezeitraum</div>
<div class="bk-val"><?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['inv']->value->booking_begin,"%d.%m.");?>
– <?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['inv']->value->booking_end,"%d.%m.%y");?>
</div>
<div class="stat-sub"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['booking']->value->quick->checkin->event, ENT_QUOTES, 'UTF-8', true);?>
</div>
</div>
</div></div>
</div>
<div class="col-6 col-xl-3">
<div class="card h-100<?php if (!$_smarty_tpl->tpl_vars['isStorno']->value && !$_smarty_tpl->tpl_vars['isAida']->value) {?> bk-edit-card bk-parking-edit<?php }?>"<?php if (!$_smarty_tpl->tpl_vars['isStorno']->value && !$_smarty_tpl->tpl_vars['isAida']->value) {?> data-invoice-id="<?php echo $_smarty_tpl->tpl_vars['inv']->value->invoice_id;?>
" role="button" title="Stellplatz wechseln (Halle/Außen)"<?php }?>>
<?php if (!$_smarty_tpl->tpl_vars['isStorno']->value && !$_smarty_tpl->tpl_vars['isAida']->value) {?><span class="bk-edit-ico" title="Stellplatz wechseln"><i class="material-icons sm">edit</i></span><?php }?>
<div class="bk-stat">
<div class="bk-ico yellow"><i class="material-icons">local_parking</i></div>
<div>
<div class="stat-label">Stellplatz</div>
<div class="bk-val"><?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['booking']->value->quick->types, 't', false, NULL, 'ty', array (
'last' => true,
'iteration' => true,
'total' => true,
));
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['t']->value) {
$_smarty_tpl->tpl_vars['__smarty_foreach_ty']->value['iteration']++;
$_smarty_tpl->tpl_vars['__smarty_foreach_ty']->value['last'] = $_smarty_tpl->tpl_vars['__smarty_foreach_ty']->value['iteration'] == $_smarty_tpl->tpl_vars['__smarty_foreach_ty']->value['total'];
echo $_smarty_tpl->tpl_vars['t']->value->booking_type;
if (!(isset($_smarty_tpl->tpl_vars['__smarty_foreach_ty']->value['last']) ? $_smarty_tpl->tpl_vars['__smarty_foreach_ty']->value['last'] : null)) {?> · <?php }
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
?>
</div>
<div class="stat-sub"><?php echo $_smarty_tpl->tpl_vars['vehTotal']->value;?>
Fahrzeug<?php if ($_smarty_tpl->tpl_vars['vehTotal']->value != 1) {?>e<?php }?></div>
</div>
</div></div>
</div>
<div class="col-6 col-xl-3">
<div class="card h-100"><div class="bk-stat">
<div class="bk-ico <?php if ($_smarty_tpl->tpl_vars['checkedIn']->value >= $_smarty_tpl->tpl_vars['vehTotal']->value && $_smarty_tpl->tpl_vars['vehTotal']->value > 0) {?>green<?php } else { ?>blue<?php }?>"><i class="material-icons">login</i></div>
<div>
<div class="stat-label">Check-in</div>
<div class="bk-val"><?php echo (($tmp = @$_smarty_tpl->tpl_vars['checkedIn']->value)===null||$tmp==='' ? 0 : $tmp);?>
/ <?php echo $_smarty_tpl->tpl_vars['vehTotal']->value;?>
</div>
<div class="stat-sub"><?php if ($_smarty_tpl->tpl_vars['checkedIn']->value >= $_smarty_tpl->tpl_vars['vehTotal']->value && $_smarty_tpl->tpl_vars['vehTotal']->value > 0) {?>vollständig angereist<?php } else { ?>offen<?php }?></div>
</div>
</div></div>
</div>
</div>
<div class="row g-3">
<!-- Fahrzeuge + Check-in -->
<div class="col-12 <?php if (!empty($_smarty_tpl->tpl_vars['inv']->value->invoice_description)) {?>col-xl-8<?php }?>">
<div class="card">
<div class="card-header fw-bold">Fahrzeuge & Check-in</div>
<div class="list-group list-group-flush">
<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['booking']->value->bookings, 'b');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['b']->value) {
?>
<div class="list-group-item bk-veh">
<div class="bk-veh-main">
<?php if (!$_smarty_tpl->tpl_vars['isStorno']->value) {?>
<span class="bk-plate license-plate admin-modal" role="button" style="cursor:pointer" title="Kennzeichen ändern" data-bs-toggle="modal" data-bs-target="#confirmationModal" data-json="<?php echo htmlspecialchars(json_encode($_smarty_tpl->tpl_vars['b']->value));?>
" data-template="booking/car.tpl" data-headline="Buchung <?php echo $_smarty_tpl->tpl_vars['b']->value->booking_no;?>
bearbeiten"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['b']->value->booking_serial, ENT_QUOTES, 'UTF-8', true);?>
</span>
<?php } else { ?>
<span class="bk-plate license-plate"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['b']->value->booking_serial, ENT_QUOTES, 'UTF-8', true);?>
</span>
<?php }?>
<div class="bk-veh-info">
<div class="fw-bold"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['b']->value->booking_event, ENT_QUOTES, 'UTF-8', true);?>
<span class="text-muted fw-normal small">· <?php echo $_smarty_tpl->tpl_vars['b']->value->booking_type;?>
</span></div>
<div class="small text-muted"><?php echo $_smarty_tpl->tpl_vars['b']->value->booking_von;?>
– <?php echo $_smarty_tpl->tpl_vars['b']->value->booking_bis;?>
· <?php echo $_smarty_tpl->tpl_vars['b']->value->booking_duration;?>
Tage · <?php echo $_smarty_tpl->tpl_vars['b']->value->booking_no;?>
</div>
<div class="mt-1">
<?php if ($_smarty_tpl->tpl_vars['b']->value->booking_valet) {?><span class="svc-badge svc-valet"><i class="material-icons">directions_boat</i>Valet</span><?php }?>
<?php if (!empty($_smarty_tpl->tpl_vars['b']->value->booking_special)) {
$_smarty_tpl->_assignInScope('sp', explode(",",$_smarty_tpl->tpl_vars['b']->value->booking_special));
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['sp']->value, 'special');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['special']->value) {
?><span class="svc-badge svc-special"><i class="material-icons"><?php if ($_smarty_tpl->tpl_vars['special']->value == 5) {?>settings<?php } elseif ($_smarty_tpl->tpl_vars['special']->value == 11) {?>all_inclusive<?php } else { ?>local_car_wash<?php }?></i><?php if ($_smarty_tpl->tpl_vars['special']->value == 4) {?>Politur<?php } elseif ($_smarty_tpl->tpl_vars['special']->value == 5) {?>Werkstatt<?php } elseif ($_smarty_tpl->tpl_vars['special']->value == 6) {?>Innen<?php } elseif ($_smarty_tpl->tpl_vars['special']->value == 7) {?>Wäsche<?php } elseif ($_smarty_tpl->tpl_vars['special']->value == 11) {?>Transfer<?php }?></span><?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
}?>
</div>
</div>
</div>
<div class="bk-veh-action text-end">
<div class="small text-muted mb-1"><?php if ($_smarty_tpl->tpl_vars['b']->value->booking_checkin) {?>angereist <?php echo $_smarty_tpl->tpl_vars['b']->value->checkin_zeit;
} else { ?>geplant <?php echo (($tmp = @$_smarty_tpl->tpl_vars['b']->value->checkin_cruise)===null||$tmp==='' ? '—' : $tmp);
}?></div>
<?php if ($_smarty_tpl->tpl_vars['payOpen']->value && !$_smarty_tpl->tpl_vars['b']->value->booking_checkin) {?>
<button class="btn btn-sm btn-outline-secondary" disabled title="Check-in erst nach Zahlungseingang möglich">
<i class="material-icons sm">lock</i>
<span class="bk-checkin-label">Zahlung offen</span>
</button>
<?php } else { ?>
<button class="btn btn-sm btn-checkin <?php if ($_smarty_tpl->tpl_vars['b']->value->booking_checkin) {?>btn-success<?php } else { ?>btn-outline-primary<?php }?>" data-booking-id="<?php echo $_smarty_tpl->tpl_vars['b']->value->booking_id;?>
" data-checked="<?php if ($_smarty_tpl->tpl_vars['b']->value->booking_checkin) {?>1<?php } else { ?>0<?php }?>">
<i class="material-icons sm"><?php if ($_smarty_tpl->tpl_vars['b']->value->booking_checkin) {?>check_circle<?php } else { ?>login<?php }?></i>
<span class="bk-checkin-label"><?php if ($_smarty_tpl->tpl_vars['b']->value->booking_checkin) {?>Eingecheckt<?php } else { ?>Einchecken<?php }?></span>
</button>
<?php }?>
</div>
</div>
<?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
?>
</div>
</div>
</div>
<?php if (!empty($_smarty_tpl->tpl_vars['inv']->value->invoice_description)) {?>
<div class="col-12 col-xl-4">
<div class="card h-100">
<div class="card-header fw-bold">Buchungshinweise</div>
<div class="card-body">
<blockquote class="bk-note mb-0"><?php echo nl2br(htmlspecialchars($_smarty_tpl->tpl_vars['inv']->value->invoice_description, ENT_QUOTES, 'UTF-8', true));?>
</blockquote>
</div>
</div>
</div>
<?php }?>
</div>
<?php }
}