ticket price on order checkout

This commit is contained in:
merdan 2020-02-03 12:39:45 +05:00
parent b576ab5461
commit 706a5a2fa1
2 changed files with 6 additions and 6 deletions

View File

@ -174,7 +174,7 @@ class EventCheckoutController extends Controller
'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,
'original_price' => $ticket->price,
];

View File

@ -194,19 +194,19 @@
<thead>
<tr>
<th></th>
<th>@lang('Public_ViewEvent.booking_fees')</th>
<th>@lang('Public_ViewEvent.price')</th>
<th style="text-align: right;">@lang('Public_ViewEvent.booking_fees')</th>
<th style="text-align: right;">@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;">{{money($ticket['total_booking_fee'], $event->currency)}}</td>
<td style="text-align: right;">
@if((int)ceil($ticket['price']) === 0)
@if((int)ceil($ticket['original_price']) === 0)
@lang("Public_ViewEvent.free")
@else
{{ money($ticket['price'], $event->currency) }}
{{ money($ticket['original_price'], $event->currency) }}
@endif
</td>
</tr>