30 lines
569 B
PHP
30 lines
569 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
use App\Order;
|
|
use App\Seattemplate;
|
|
use App\Traits\MoneyTrait;
|
|
use App\Usercategory;
|
|
use Request;
|
|
use App\Seat;
|
|
|
|
use Log;
|
|
|
|
class PrintController extends Controller
|
|
{
|
|
use MoneyTrait;
|
|
public function show($id)
|
|
{
|
|
$order = Order::find($id);
|
|
|
|
$prices = [];
|
|
foreach($order->singleseatusers()->get() as $seat){
|
|
$tmpPrice = $this->calcPriceTicket($seat);
|
|
array_push($prices, $tmpPrice);
|
|
}
|
|
return view('admin.print.index', compact('order', 'prices'));
|
|
}
|
|
|
|
}
|