diff --git a/app/Http/Controllers/TicketsController.php b/app/Http/Controllers/TicketsController.php index e12d40d..5185b81 100644 --- a/app/Http/Controllers/TicketsController.php +++ b/app/Http/Controllers/TicketsController.php @@ -104,7 +104,8 @@ function post_confirm_issue(Request $request, $event_id) $data[] = array( 'ticket_id' => $ticket->ticket_id, 'seat' => $ticket->seat, - 'price' => $ticket->price + 'price' => $ticket->price, + 'memo' => $ticket->memo ); } if (count($data) === 0) { @@ -118,7 +119,6 @@ function post_confirm_issue(Request $request, $event_id) function post_issue(Request $request, $event_id) { $event = Events::where('event_id', $event_id)->get()->first(); - $memo = $request['memo']; $data = array(); // check whether the tickets are already issued @@ -138,9 +138,8 @@ function post_issue(Request $request, $event_id) break; } $ticket->is_issued = 1; - $ticket->memo = $memo; $ticket->save(); - $data[] = array($ticket->ticket_id, $ticket->token); + $data[] = array($ticket->ticket_id, $ticket->seat, $ticket->token); } // if a ticket was already issued diff --git a/resources/views/tickets/confirm_issue.blade.php b/resources/views/tickets/confirm_issue.blade.php index 972c708..854ddf1 100644 --- a/resources/views/tickets/confirm_issue.blade.php +++ b/resources/views/tickets/confirm_issue.blade.php @@ -47,6 +47,7 @@ {{ __('ticket_no') }} {{ __('seat_no') }} {{ __('price') }} + {{ __('memo') }} @@ -58,16 +59,12 @@ {{ $ticket['seat'] }} {{ Common::format_price($ticket['price']) }} + {{ $ticket['memo'] }} @endforeach -
- - -
diff --git a/resources/views/tickets/issue.blade.php b/resources/views/tickets/issue.blade.php index eceb19b..8a63792 100644 --- a/resources/views/tickets/issue.blade.php +++ b/resources/views/tickets/issue.blade.php @@ -42,6 +42,7 @@ {{ __('ticket_no') }} {{ __('seat_no') }} {{ __('price') }} + {{ __('memo') }} @@ -57,6 +58,7 @@ {{ sprintf('%06d', $ticket->ticket_id) }} {{ $ticket->seat }} {{ Common::format_price($ticket->price) }} + {{ $ticket->memo }} @endif @endforeach diff --git a/resources/views/tickets/links.blade.php b/resources/views/tickets/links.blade.php index 5004538..25ffc05 100644 --- a/resources/views/tickets/links.blade.php +++ b/resources/views/tickets/links.blade.php @@ -25,7 +25,8 @@ $links = ''; foreach ($data as $link) { $links .= __('ticket_no') . ':' . $link[0] . "\n"; - $links .= config('app.url') . '/' . $event->event_id . '/' . $link[0] . '/' . $link[1] . "\n\n"; + $links .= __('seat_no') . ':' . $link[1] . "\n"; + $links .= config('app.url') . '/' . $event->event_id . '/' . $link[0] . '/' . $link[2] . "\n\n"; } ?>