search only live events

This commit is contained in:
merdan 2020-02-03 12:23:51 +05:00
parent 37df6266fd
commit b576ab5461
3 changed files with 12 additions and 3 deletions

View File

@ -173,6 +173,7 @@ class EventCheckoutController extends Controller
'price' => ($seats_count * $ticket->price),
'booking_fee' => ($seats_count * $ticket->booking_fee),
'organiser_booking_fee' => ($seats_count * $ticket->organiser_booking_fee),
'total_booking_fee' => $ticket->total_booking_fee,
'full_price' => $ticket->price + $ticket->total_booking_fee,
];

View File

@ -28,7 +28,7 @@ return array (
'order_date' => 'Дата заказа',
'order_page_settings' => 'Настройки страницы заказа',
'order_ref' => 'Код заказа',
'organiser_booking_fees' => 'Организатор бронирования сборов',
'organiser_booking_fees' => 'Плата за обслуживание',
'payment_gateway' => 'Платежный шлюз',
'payment_intent' => 'Способ оплаты',
'payment_failed' => 'Платеж не прошел, попробуйте ввести свои платежные данные снова.',

View File

@ -191,14 +191,22 @@
@lang("Public_ViewEvent.order_summary")
</h3>
<table class="table mb0 table-condensed">
<thead>
<tr>
<th></th>
<th>@lang('Public_ViewEvent.booking_fees')</th>
<th>@lang('Public_ViewEvent.price')</th>
</tr>
</thead>
@foreach($tickets as $ticket)
<tr>
<td class="pl0">{{{$ticket['ticket']['title']}}} X <b>{{$ticket['qty']}}</b></td>
<td style="text-align: right;">{{$ticket['total_booking_fee']}}</td>
<td style="text-align: right;">
@if((int)ceil($ticket['full_price']) === 0)
@if((int)ceil($ticket['price']) === 0)
@lang("Public_ViewEvent.free")
@else
{{ money($ticket['full_price'], $event->currency) }}
{{ money($ticket['price'], $event->currency) }}
@endif
</td>
</tr>