Files
bm/public_html/resources/views/admin/invoice/show.blade.php
2025-09-24 13:26:28 +02:00

214 lines
6.5 KiB
PHP

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Rechnung</title>
{{ Html::style('css/invoice.css') }}
</head>
<body>
<div class="container">
<div class="right">
<img src="/imgs/logo_white.jpg" id="logo" alt="Logo Kulturhaus Pregarten" />
</div>
<br clear="all" />
<div class="right">
<table>
<tr>
<th><strong>Pregarten, <span id="invoiceDate">{{$order->created_at->format('d.m.Y')}}</span></strong></th>
</tr>
<tr>
<td>RECHNUNG NR <span id="invoiceNumber">{{$order->id}}</span></td>
</tr>
</table>
</div>
<br clear="all" />
<div class="left">
<span id="customerAddress">{{$order->user()->withTrashed()->first()->title}} {{$order->user()->withTrashed()->first()->firstname}} {{$order->user()->withTrashed()->first()->lastname}} <br/>
{{$order->user()->withTrashed()->first()->street}}<br />
{{$order->user()->withTrashed()->first()->location}}</span>
</div>
<div class="right">
<table>
<tr>
<th><strong>GEGENSTAND</strong></th>
</tr>
<tr>
<td>Eintrittskarten</td>
</tr>
<tr>
<td><span id="eventTitle">{{$order->singleseatusers()->first()->singleSeat()->first()->seat()->first()->event()->first()->title}}</span></td>
</tr>
<tr>
<td><span id="eventDate">{{date('d.m.Y', strtotime($order->singleseatusers()->first()->singleSeat()->first()->seat()->first()->date))}}</span></td>
</tr>
</table>
</div>
<br clear="all" />
<h1>RECHNUNG</h1>
<table>
<thead>
<tr>
<th><strong>LEISTUNG</th>
<th class="right-column">PREIS IN &euro;*</th>
</tr>
</thead>
<tbody>
<?php $count = 0;?>
@foreach($order->singleseatusers()->get() as $ssu)
<tr id="tickets">
<td>Eintrittskarte</td>
<td class="right-column">{{ number_format($prices[$count]/100, 2) }}</td>
</tr>
<?php $count++;?>
@endforeach
@if($order->porto)
<tr id="tickets">
<td>Zustellung</td>
<td class="right-column">
@if ($order->updated_at->gte(Carbon\Carbon::parse('2025-09-14')))
{{ number_format(150/100, 2) }}
@else
{{ number_format(100/100, 2) }}
@endif
</td>
</tr>
@endif
</tbody>
<tfoot>
<tr>
<td><strong>RECHNUNGSBETRAG IN &euro;</strong></td>
<td class="right-column"><strong><span id="totalPrice"> € {{number_format($totalPrice/100, 2)}}</span></strong></td>
</tr>
</tfoot>
</table>
<div class="bottom">
<div id="salutation">
Wir bedanken uns für Ihren Auftrag!<br />
Mit freundlichen Grüßen
</div>
<div class="left">
*) Preise inklusive
@if( strtotime('2020-07-01') <= strtotime(date('d. F Y', strtotime($order->singleseatusers()->first()->singleSeat()->first()->seat()->first()->date))) && strtotime(date('d. F Y', strtotime($order->singleseatusers()->first()->singleSeat()->first()->seat()->first()->date))) <= strtotime('2021-12-31'))
5
@else
10
@endif
% Mwst.<br />
Fällig nach Erhalt ohne Abzug<br />
IBAN AT46 3446 0000 0513 1156<br />
BIC RZOOAT2L460<br />
UID: ATU 49258501<br />
FN 190621a - Firmenbuchgericht Linz<br />
DVR 0550868
</div>
<div class="right align-right">
Kultur- u. Regionalentwicklung<br />
gemeinnützige GesmbH<br />
Bahnhofstraße 12<br />
4230 Pregarten<br />
Tel. 07236/2570<br />
E-Mail: kulturhaus@bruckmuehle.at<br />
www.bruckmuehle.at
</div>
<br clear="all"/>
</div>
</div>
</body>
<script>
window.print();
/*
var PRINTER_NAME = "Gestetner";
var HTTP_GET_VARS;
// var PRINTER_NAME = "Deskjet";
var PRINTER_FALLBACK_NAME = "Adobe";
function findGetParameter(parameterName) {
var result = null,
tmp = [];
location.search
.substr(1)
.split("&")
.forEach(function (item) {
tmp = item.split("=");
if (tmp[0] === parameterName) result = decodeURIComponent(tmp[1]);
});
return result;
}
if(findGetParameter("print") === "1"){
sleep(2500).then(() => {
jsPrintSetup.setPrinter(selectPrinter());
jsPrintSetup.setOption('orientation', jsPrintSetup.kPortraitOrientation);
jsPrintSetup.setOption('marginTop', 0);
jsPrintSetup.setOption('marginBottom', 0);
jsPrintSetup.setOption('marginLeft', 0);
jsPrintSetup.setOption('marginRight', 0);
jsPrintSetup.setOption('headerStrLeft', '');
jsPrintSetup.setOption('headerStrCenter', '');
jsPrintSetup.setOption('headerStrRight', '');
jsPrintSetup.setOption('footerStrLeft', '');
jsPrintSetup.setOption('footerStrCenter', '');
jsPrintSetup.setOption('footerStrRight', '');
jsPrintSetup.setOption('printBGColors', 1);
jsPrintSetup.clearSilentPrint();
jsPrintSetup.setOption('printSilent', 1);
jsPrintSetup.printWindow(window);
window.close();
})
}
function sleep (time) {
return new Promise((resolve) => setTimeout(resolve, time));
}
function selectPrinter() {
var printers = jsPrintSetup.getPrintersList().split(',');
//console.log(printers);
for (var i = 0; i < printers.length; ++i) {
if (printers[i].toLowerCase().indexOf(PRINTER_NAME.toLowerCase()) != -1) {
return printers[i];
}
}
for (var i = 0; i < printers.length; ++i) {
if (printers[i].toLowerCase().indexOf(PRINTER_FALLBACK_NAME.toLowerCase()) != -1) {
return printers[i];
}
}
if (printers.length > 0) {
return printers[0];
}
return '';
}*/
</script>
</html>