Sponsors tickets
This commit is contained in:
parent
4101e51824
commit
d067cf1a04
|
|
@ -741,7 +741,7 @@ class EventCheckoutController extends Controller
|
|||
];
|
||||
|
||||
if ($request->get('download') == '1') {
|
||||
if(count($this->event->ticket_sponsors)) {
|
||||
if(count($order->event->ticket_sponsors)) {
|
||||
PDF::html('Public.ViewEvent.Partials.PDFSponsorTicket', $data, 'Tickets');
|
||||
} else {
|
||||
PDF::html('Public.ViewEvent.Partials.PDFTicket', $data, 'Tickets');
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@ class GenerateTicket extends Job implements ShouldQueue
|
|||
];
|
||||
|
||||
PDF::setOutputMode('F'); // force to file
|
||||
if(count($this->event->ticket_sponsors)) {
|
||||
if(count($event->ticket_sponsors)) {
|
||||
PDF::html('Public.ViewEvent.Partials.PDFSponsorTicket', $data, $file_path);
|
||||
} else {
|
||||
PDF::html('Public.ViewEvent.Partials.PDFTicket', $data, $file_path);
|
||||
|
|
|
|||
|
|
@ -43,7 +43,6 @@
|
|||
width: 700px;
|
||||
margin: 0 auto;
|
||||
margin-top: 20px;
|
||||
background: #000;
|
||||
position: relative;
|
||||
height: 330px;
|
||||
font-size: 12px;
|
||||
|
|
@ -140,6 +139,7 @@
|
|||
height: 150px;
|
||||
position: relative;
|
||||
background: #662d91;
|
||||
margin-bottom:20px;
|
||||
}
|
||||
|
||||
.ticket.sponsors .header .logo {
|
||||
|
|
@ -148,6 +148,11 @@
|
|||
line-height: 75px;
|
||||
text-align: center;
|
||||
display: inline-block;
|
||||
width:500px;
|
||||
}
|
||||
|
||||
.ticket.sponsors h4{
|
||||
margin-top: 2rem;
|
||||
}
|
||||
|
||||
.ticket.sponsors .barcode {
|
||||
|
|
@ -178,8 +183,19 @@
|
|||
.ticket.sponsors .logo-column {
|
||||
position: absolute;
|
||||
max-width: 200px;
|
||||
height:auto;
|
||||
right: 0;
|
||||
top: 50px;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
.ticket.sponsors .logo-column img {
|
||||
width:200px;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.ticket.sponsors .body {
|
||||
position: relative;
|
||||
height: 250px;
|
||||
}
|
||||
|
||||
.ticket.sponsors .footer {
|
||||
|
|
@ -189,16 +205,13 @@
|
|||
}
|
||||
|
||||
.ticket.sponsors .footer img {
|
||||
max-width: 30%;
|
||||
max-width: 150px;
|
||||
max-height:250px;
|
||||
height:auto;
|
||||
display: inline-block;
|
||||
margin: 30px;
|
||||
}
|
||||
|
||||
.ticket.sponsors .body {
|
||||
position: relative;
|
||||
height: 300px;
|
||||
}
|
||||
|
||||
.ticket.sponsors .text-logo {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
|
||||
}
|
||||
</style>
|
||||
<div class="ticket">
|
||||
<div class="ticket no-sponsors">
|
||||
<div class="logo">
|
||||
{!! HTML::image(asset($image_path)) !!}
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@
|
|||
<div class="ticket sponsors">
|
||||
<div class="header">
|
||||
<div class='logo'>
|
||||
<span>{{ $event->name }}</span>
|
||||
<span>{{ $event->title }}</span>
|
||||
</div>
|
||||
<div class="barcode">
|
||||
{!! DNS2D::getBarcodeSVG($attendee->private_reference_number, "QRCODE", 6, 6) !!}
|
||||
|
|
@ -35,28 +35,28 @@
|
|||
</div>
|
||||
<div class="body">
|
||||
<div class="left_column">
|
||||
<h4>{{ trans('label.name') }}</h4>
|
||||
<h4>Name</h4>
|
||||
<span class="info">{{$attendee->first_name.' '.$attendee->last_name}}</span>
|
||||
|
||||
<h4>{{ trans('ticket.order') }}</h4>
|
||||
<h4>Order No.</h4>
|
||||
<span class="info">{{$order->order_reference}}</span>
|
||||
|
||||
<h4>{{ trans('event.start') }}</h4>
|
||||
<span class="info">{{ localize_date($event->start_date, 'd. M. H:i') }}</span>
|
||||
<h4>Start Date</h4>
|
||||
<span class="info">{{ $event->start_date->format('m-d H:i') }}</span>
|
||||
|
||||
<h4>{{ trans('label.amount') }}</h4>
|
||||
<h4>Price</h4>
|
||||
<span class="info">{{money($attendee->ticket->total_price, $order->event->currency)}}</span>
|
||||
</div>
|
||||
|
||||
<div class="right_column">
|
||||
<h4>{{ trans('ticket.type') }}</h4>
|
||||
<h4>Ticket Type</h4>
|
||||
<span class="info">{{$attendee->ticket->title}}</span>
|
||||
|
||||
<h4>{{ trans('ticket.number') }}</h4>
|
||||
<h4>Ticket Number</h4>
|
||||
<span class="info">{{$attendee->reference}}</span>
|
||||
|
||||
<h4>{{ trans('event.end') }}</h4>
|
||||
<span class="info">{{ localize_date($event->end_date, 'd. M. H:i') }}</span>
|
||||
<h4>End Date</h4>
|
||||
<span class="info">{{ $event->end_date->format('m-d H:i') }}</span>
|
||||
</div>
|
||||
|
||||
<div class="logo-column">
|
||||
|
|
|
|||
Loading…
Reference in New Issue