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

91 lines
29 KiB
PHP
Raw Normal View History

2016-11-15 09:45:41 +00:00
<html>
<!-- Keep this page lean as possible.-->
<head>
<title>
Ticket(s)
</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">
<style>
{{$css}}
</style>
<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 small,.
</style>
</head>
<body style="background-color: #FFFFFF; font-family: Arial, Helvetica, sans-serif;">
<div class="container-l">
@foreach($attendees as $attendee)
@if(!$attendee->is_cancelled)
<div class="ticket sponsors">
<div class="header">
2016-11-19 21:10:26 +00:00
<p class="ticket-type color-alt">{{$attendee->ticket->title}}</p>
<span class="color-primary event-title">{{ $event->title }}</span>
2016-11-15 09:45:41 +00:00
</div>
<div class="body">
2016-11-19 21:10:26 +00:00
{{-- Data Row --}}
<div class="row">
<div class="col-xs-7">
<div class="row">
<div class="col-xs-7">
<h4>Start Date</h4>
<span>{{ $event->start_date->format('m-d H:i') }}</span>
2016-11-15 09:45:41 +00:00
2016-11-19 21:10:26 +00:00
<h4>Location</h4>
<p>{{ $event->venue_name }}</p>
<p>{{ $event->location_address }}</p>
<p>{{ $event->location_address_line_1 }}</p>
</div>
<div class="col-xs-5">
<h4>End Date</h4>
<span>{{ $event->end_date->format('m-d H:i') }}</span>
2016-11-15 09:45:41 +00:00
2016-11-19 21:10:26 +00:00
</div>
</div>
</div>
<div class="col-xs-5 b-l-2 ticket-data">
<h4>Name</h4>
<span>{{$attendee->first_name.' '.$attendee->last_name}}</span>
2016-11-15 09:45:41 +00:00
2016-11-19 21:10:26 +00:00
<h4>Order No.</h4>
<span>{{$order->order_reference}}</span>
2016-11-15 09:45:41 +00:00
2016-11-19 21:10:26 +00:00
<h4>Ticket Number</h4>
<span>{{$attendee->reference}}</span>
2016-11-15 09:45:41 +00:00
2016-11-19 21:10:26 +00:00
<h4>Price</h4>
<span>{{money($attendee->ticket->total_price, $order->event->currency)}}</span>
</div>
2016-11-15 09:45:41 +00:00
</div>
2016-11-19 21:10:26 +00:00
{{-- Image Row --}}
<div class="row">
<div class="col-xs-7">
<div class="logo">
<img alt="{{$event->organiser->full_logo_path}}" src="data:image/png;base64, {{$image}}" />
</div>
</div>
<div class="col-xs-5 b-l-2">
<div class="barcode">
{!! DNS2D::getBarcodeSVG($attendee->private_reference_number, "QRCODE", 8, 8) !!}
<p>{{ $attendee->private_reference_number }}</p>
</div>
2016-11-15 09:45:41 +00:00
</div>
</div>
</div>
<div class="footer">
@foreach($event->ticket_sponsors as $sponsor)
2016-11-19 21:10:26 +00:00
<div class="col-xs-6 sponsor">
<img alt="{{$sponsor->logo_path}}" src="data:image/png;base64,
{{ base64_encode(file_get_contents(public_path($sponsor->logo_path))) }}" />
</div>
2016-11-15 09:45:41 +00:00
@endforeach
</div>
</div>
@endif
@endforeach
</div>
</body>
</html>