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 @@