venues and about pages on mobile

This commit is contained in:
merdan 2020-04-06 15:07:44 +05:00
parent 0159f7a05d
commit d3ba9586c4
1 changed files with 202 additions and 201 deletions

View File

@ -30,214 +30,215 @@
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-md-12">
<div class="content event_view_order"> @if($event->post_order_display_message)
<div class="alert alert-dismissable alert-info">
@if($event->post_order_display_message) {{ nl2br(e($event->post_order_display_message)) }}
<div class="alert alert-dismissable alert-info"> </div>
{{ nl2br(e($event->post_order_display_message)) }} @endif
<div class="row mt-3">
<div class="col-5">
<b>@lang("Attendee.first_name")</b><br> <small>{{$order->first_name}}</small>
</div> </div>
<div class="col-7">
<b>@lang("Attendee.last_name")</b><br> <small>{{$order->last_name}}</small>
</div>
</div>
<div class="row mt-3">
<div class="col-5">
<b>@lang("Public_ViewEvent.reference")</b><br> <small>{{$order->order_reference}}</small>
</div>
<div class="col-7">
<b>@lang("Public_ViewEvent.amount")</b><br> <small>{{number_format($order->total_amount, 2)}} man.</small>
</div>
</div>
<div class="row mt-3">
<div class="col-5">
<b>@lang("Public_ViewEvent.date")</b><br> <small>{{$order->created_at->format(config('attendize.default_datetime_format'))}}</small>
</div>
<div class="col-7">
<b>@lang("Public_ViewEvent.email")</b><br> <small>{{$order->email}}</small>
</div>
</div>
@if(!$order->is_payment_received)
<h3>
@lang("Public_ViewEvent.payment_instructions")
</h3>
<div class="alert alert-info">
@lang("Public_ViewEvent.order_awaiting_payment")
</div>
<div class="offline_payment_instructions well">
{!! Markdown::parse($event->offline_payment_instructions) !!}
</div>
@endif
</div>
</div>
<div class="row">
<div class="col-12">
<h5 class="mt-4">
@lang("Public_ViewEvent.order_items")
</h5>
</div>
<div class="table-responsive">
<table class="table table-hover table-bordered">
<thead>
<tr>
<th>
@lang("Public_ViewEvent.ticket")
</th>
<th>
@lang("Public_ViewEvent.quantity_full")
</th>
<th>
@lang("Public_ViewEvent.price")
</th>
<th>
@lang("Public_ViewEvent.booking_fee")
</th>
<th>
@lang("Public_ViewEvent.total")
</th>
</tr>
</thead>
<tbody>
@foreach($order->orderItems as $order_item)
<tr>
<td>
{{$order_item->title}}
</td>
<td>
{{$order_item->quantity}}
</td>
<td>
@if((int)ceil($order_item->unit_price) == 0)
@lang("Public_ViewEvent.free")
@else
{{money($order_item->unit_price, $order->event->currency)}}
@endif
</td>
<td>
@if((int)ceil($order_item->unit_price) == 0)
-
@else
{{money($order_item->unit_booking_fee, $order->event->currency)}}
@endif
</td>
<td>
@if((int)ceil($order_item->unit_price) == 0)
@lang("Public_ViewEvent.free")
@else
{{money(($order_item->unit_price + $order_item->unit_booking_fee) * ($order_item->quantity), $order->event->currency)}}
@endif
</td>
</tr>
@endforeach
@if($event->organiser->charge_tax)
<tr>
<td>
</td>
<td>
</td>
<td>
</td>
<td>
{{$event->organiser->tax_name}}
</td>
<td colspan="2">
{{ $orderService->getTaxAmount(true) }}
</td>
</tr>
@endif @endif
<tr>
<div class="order_details well"> <td>
<div class="row mt-3"> </td>
<div class="col-5"> <td>
<b>@lang("Attendee.first_name")</b><br> <small>{{$order->first_name}}</small> </td>
</div> <td>
<div class="col-7"> </td>
<b>@lang("Attendee.last_name")</b><br> <small>{{$order->last_name}}</small> <td>
</div> <b>@lang("Public_ViewEvent.total")</b>
</div> </td>
<div class="row mt-3"> <td colspan="2">
<div class="col-5"> {{ $orderService->getGrandTotal(true) }}
<b>@lang("Public_ViewEvent.reference")</b><br> <small>{{$order->order_reference}}</small> </td>
</div> </tr>
<div class="col-7"> @if($order->is_refunded || $order->is_partially_refunded)
<b>@lang("Public_ViewEvent.amount")</b><br> <small>{{number_format($order->total_amount, 2)}} man.</small> <tr>
</div> <td>
</td>
</div> <td>
<div class="row mt-3"> </td>
<div class="col-5"> <td>
<b>@lang("Public_ViewEvent.date")</b><br> <small>{{$order->created_at->format(config('attendize.default_datetime_format'))}}</small> </td>
</div> <td>
<b>@lang("Public_ViewEvent.refunded_amount")</b>
<div class="col-7"> </td>
<b>@lang("Public_ViewEvent.email")</b><br> <small>{{$order->email}}</small> <td colspan="2">
</div> {{money($order->amount_refunded, $order->event->currency)}}
</div> </td>
</div> </tr>
<tr>
<td>
@if(!$order->is_payment_received) </td>
<h3> <td>
@lang("Public_ViewEvent.payment_instructions") </td>
</h3> <td>
<div class="alert alert-info"> </td>
@lang("Public_ViewEvent.order_awaiting_payment") <td>
</div> <b>@lang("Public_ViewEvent.total")</b>
<div class="offline_payment_instructions well"> </td>
{!! Markdown::parse($event->offline_payment_instructions) !!} <td colspan="2">
</div> {{money($order->total_amount - $order->amount_refunded, $order->event->currency)}}
</td>
</tr>
@endif @endif
</tbody>
</table>
<h5 class="mt-4"> </div>
@lang("Public_ViewEvent.order_items")
</h5>
<div class="table-responsive"> <div class="col-12">
<table class="table table-hover table-bordered"> <h4>
<thead> @lang("Public_ViewEvent.order_attendees")
<tr> </h4>
<th>
@lang("Public_ViewEvent.ticket")
</th>
<th>
@lang("Public_ViewEvent.quantity_full")
</th>
<th>
@lang("Public_ViewEvent.price")
</th>
<th>
@lang("Public_ViewEvent.booking_fee")
</th>
<th>
@lang("Public_ViewEvent.total")
</th>
</tr>
</thead>
<tbody>
@foreach($order->orderItems as $order_item)
<tr>
<td>
{{$order_item->title}}
</td>
<td>
{{$order_item->quantity}}
</td>
<td>
@if((int)ceil($order_item->unit_price) == 0)
@lang("Public_ViewEvent.free")
@else
{{money($order_item->unit_price, $order->event->currency)}}
@endif
</td> </div>
<td>
@if((int)ceil($order_item->unit_price) == 0)
-
@else
{{money($order_item->unit_booking_fee, $order->event->currency)}}
@endif
</td> <div class="table-responsive">
<td> <table class="table table-hover table-striped">
@if((int)ceil($order_item->unit_price) == 0) <tbody>
@lang("Public_ViewEvent.free") @foreach($order->attendees as $attendee)
@else <tr>
{{money(($order_item->unit_price + $order_item->unit_booking_fee) * ($order_item->quantity), $order->event->currency)}} <td>
@endif {{$attendee->first_name}}
{{$attendee->last_name}}
</td> (<a href="mailto:{{$attendee->email}}">{{$attendee->email}}</a>)
</tr> </td>
@endforeach <td>
{{{$attendee->ticket->title}}}
@if($event->organiser->charge_tax) </td>
<tr> <td>{{$attendee->seat_no}}</td>
<td> <td>
</td> @if($attendee->is_cancelled)
<td> @lang("Public_ViewEvent.attendee_cancelled")
</td> @endif
<td> </td>
</td> </tr>
<td> @endforeach
{{$event->organiser->tax_name}} </tbody>
</td> </table>
<td colspan="2">
{{ $orderService->getTaxAmount(true) }}
</td>
</tr>
@endif
<tr>
<td>
</td>
<td>
</td>
<td>
</td>
<td>
<b>@lang("Public_ViewEvent.total")</b>
</td>
<td colspan="2">
{{ $orderService->getGrandTotal(true) }}
</td>
</tr>
@if($order->is_refunded || $order->is_partially_refunded)
<tr>
<td>
</td>
<td>
</td>
<td>
</td>
<td>
<b>@lang("Public_ViewEvent.refunded_amount")</b>
</td>
<td colspan="2">
{{money($order->amount_refunded, $order->event->currency)}}
</td>
</tr>
<tr>
<td>
</td>
<td>
</td>
<td>
</td>
<td>
<b>@lang("Public_ViewEvent.total")</b>
</td>
<td colspan="2">
{{money($order->total_amount - $order->amount_refunded, $order->event->currency)}}
</td>
</tr>
@endif
</tbody>
</table>
</div>
<h4>
@lang("Public_ViewEvent.order_attendees")
</h4>
<div class="table-responsive">
<table class="table table-hover table-striped">
<tbody>
@foreach($order->attendees as $attendee)
<tr>
<td>
{{$attendee->first_name}}
{{$attendee->last_name}}
(<a href="mailto:{{$attendee->email}}">{{$attendee->email}}</a>)
</td>
<td>
{{{$attendee->ticket->title}}}
</td>
<td>{{$attendee->seat_no}}</td>
<td>
@if($attendee->is_cancelled)
@lang("Public_ViewEvent.attendee_cancelled")
@endif
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div> </div>
</div> </div>
</section> </section>