Attendize/resources/views/Public/ViewEvent/Partials/PDFTicket.blade.php

111 lines
30 KiB
PHP
Raw Normal View History

2016-02-29 15:59:36 +00:00
<html>
<!-- Keep this page lean as possible.-->
<head>
<title>
Ticket(s)
2016-02-29 15:59:36 +00:00
</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0">
2016-05-11 23:14:58 +00:00
<style>
{{$css}}
</style>
2016-02-29 15:59:36 +00:00
<style>
html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:bold}dfn{font-style:italic}h1{font-size:2em;margin:0.67em 0}mark{background:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-0.5em}sub{bottom:-0.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box;height:0}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace, monospace;font-size:1em}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0}button{overflow:visible}button,select{text-transform:none}button,html input[type="button"],input[type="reset"],input[type="submit"]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}input{line-height:normal}input[type="checkbox"],input[type="radio"]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:0}input[type="number"]::-webkit-inner-spin-button,input[type="number"]::-webkit-outer-spin-button{height:auto}input[type="search"]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}input[type="search"]::-webkit-search-cancel-button,input[type="search"]::-webkit-search-decoration{-webkit-appearance:none}fieldset{border:1px solid #c0c0c0;margin:0 2px;padding:0.35em 0.625em 0.75em}legend{border:0;padding:0}textarea{overflow:auto}optgroup{font-weight:bold}table{border-collapse:collapse;border-spacing:0}td,th{padding:0}*{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}*:before,*:after{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}html{font-size:10px;-webkit-tap-highlight-color:rgba(0,0,0,0)}body{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;line-height:1.42857143;color:#333;background-color:#fff}input,button,select,textarea{font-family:inherit;font-size:inherit;line-height:inherit}a{color:#337ab7;text-decoration:none}a:hover,a:focus{color:#23527c;text-decoration:underline}a:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}figure{margin:0}img{vertical-align:middle}.img-responsive{display:block;max-width:100%;height:auto}.img-rounded{border-radius:6px}.img-thumbnail{padding:4px;line-height:1.42857143;background-color:#fff;border:1px solid #ddd;border-radius:4px;-webkit-transition:all .2s ease-in-out;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out;display:inline-block;max-width:100%;height:auto}.img-circle{border-radius:50%}hr{margin-top:20px;margin-bottom:20px;border:0;border-top:1px solid #eee}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}.sr-only-focusable:active,.sr-only-focusable:focus{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto}h1,h2,h3,h4,h5,h6,.h1,.h2,.h3,.h4,.h5,.h6{font-family:inherit;font-weight:500;line-height:1.1;color:inherit}h1 small,h2 small,h3 small,h4 small,h5 small,h6 small,.h1 small,.h2 small,.h3 small,.h4 small,.h5 small,.h6 small,h1 .small,h2 .small,h3 .small,h4 .small,h5 .small,h6 .small,.h1 .small,.h2 .small,.h3 .small,.h4 .small,.h5 .small,.h6 .small{font-weight:normal;line-height:1;color:#777}h1,.h1,h2,.h2,h3,.h3{margin-top:20px;margin-bottom:10px}h1 small,.h1 small,h2 small,.h2 small,h3 small,.h3 small,h1 .small,.h1 .small,h2 .small,.h2 .small,h3 .small,.h3 .small{font-size:65%}h4,.h4,h5,.h5,h6,.h6{margin-top:10px;margin-bottom:10px}h4 small,.h4 small,h5 sma
</style>
2016-03-21 20:11:03 +00:00
2016-02-29 15:59:36 +00:00
<style>
.bottom_info {
2016-02-29 15:59:36 +00:00
text-align: center;
padding: 10px;
margin-top: 10px;
}
.bottom_info a {
color: #000 !important;
}
.top_info {
position: fixed;
left: 41%;
top: 0px;
}
2016-02-29 15:59:36 +00:00
2016-03-21 20:11:03 +00:00
.ticket {
border: 1px solid {{$event->ticket_border_color}} !important;
background: {{$event->ticket_bg_color}} !important;
color: {{$event->ticket_sub_text_color}} !important;
border-left-color: {{$event->ticket_border_color}} !important;
2016-02-29 15:59:36 +00:00
}
2016-03-21 20:11:03 +00:00
.ticket h4 {color: {{$event->ticket_text_color}} !important;}
2016-03-21 23:42:11 +00:00
.ticket .logo {
border-left: 1px solid {{$event->ticket_border_color}} !important;
border-bottom: 1px solid {{$event->ticket_border_color}} !important;
}
.ticket .barcode {
border-right: 1px solid {{$event->ticket_border_color}} !important;
border-bottom: 1px solid {{$event->ticket_border_color}} !important;
border-top: 1px solid {{$event->ticket_border_color}} !important;
}
2016-02-29 15:59:36 +00:00
</style>
</head>
<body style="background-color: #FFFFFF; font-family: Arial, Helvetica, sans-serif;">
<div class="container">
@foreach($attendees as $attendee)
@if(!$attendee->is_cancelled)
2016-12-01 22:11:34 +00:00
<div class="ticket">
<div class='logo'>
2016-05-11 23:14:58 +00:00
<img alt="{{$event->organiser->full_logo_path}}" src="data:image/png;base64, {{$image}}" />
</div>
<div class="event_details">
<h4>Event</h4>
{{$event->title}}
<h4>Organiser</h4>
{{$event->organiser->name}}
<h4>Venue</h4>
{{$event->venue_name}}
<h4>Start Date / Time</h4>
{{$event->start_date->format('M dS g:iA')}}
<h4>End Date / Time</h4>
{{$event->end_date->format('M dS g:iA')}}
</div>
<div class="attendee_details">
<h4>Name</h4>
{{$attendee->first_name.' '.$attendee->last_name}}
<h4>Ticket Type</h4>
{{$attendee->ticket->title}}
<h4>Order Ref.</h4>
{{$order->order_reference}}
<h4>Attendee Ref.</h4>
{{$attendee->reference}}
<h4>Price</h4>
{{money($attendee->ticket->total_price, $order->event->currency)}} (inc. {{money($attendee->ticket->total_booking_fee, $order->event->currency)}} Fees)
</div>
<div class="barcode">
{!! DNS2D::getBarcodeSVG($attendee->private_reference_number, "QRCODE", 6, 6) !!}
</div>
@if($event->is_1d_barcode_enabled)
<div class="barcode_vertical">
{!! DNS1D::getBarcodeSVG($attendee->private_reference_number, "C39+", 1, 50) !!}
</div>
@endif
2016-02-29 15:59:36 +00:00
</div>
@endif
2016-02-29 15:59:36 +00:00
@endforeach
<div class="bottom_info">
2016-04-09 14:29:29 +00:00
{{--Attendize is provided free of charge on the condition the below hyperlink is left in place.--}}
2016-07-15 10:03:24 +00:00
{{--See https://www.attendize.com/licence.php for more information.--}}
2016-04-09 14:29:29 +00:00
@include('Shared.Partials.PoweredBy')
2016-02-29 15:59:36 +00:00
</div>
</div>
</body>
2016-05-11 23:14:58 +00:00
</html>