diff --git a/app/Http/Controllers/EventCheckoutController.php b/app/Http/Controllers/EventCheckoutController.php index 23de7b79..40b8aa49 100644 --- a/app/Http/Controllers/EventCheckoutController.php +++ b/app/Http/Controllers/EventCheckoutController.php @@ -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'); diff --git a/app/Jobs/GenerateTicket.php b/app/Jobs/GenerateTicket.php index 11da712f..415f3cf6 100644 --- a/app/Jobs/GenerateTicket.php +++ b/app/Jobs/GenerateTicket.php @@ -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); diff --git a/public/assets/stylesheet/ticket.css b/public/assets/stylesheet/ticket.css index 692817c1..e45c6961 100644 --- a/public/assets/stylesheet/ticket.css +++ b/public/assets/stylesheet/ticket.css @@ -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; diff --git a/resources/views/ManageEvent/Partials/TicketDesignPreview.blade.php b/resources/views/ManageEvent/Partials/TicketDesignPreview.blade.php index b82adbfe..368799c1 100644 --- a/resources/views/ManageEvent/Partials/TicketDesignPreview.blade.php +++ b/resources/views/ManageEvent/Partials/TicketDesignPreview.blade.php @@ -13,7 +13,7 @@ } -