Updated incorrect page heading

This commit is contained in:
Dave Earley 2016-04-26 22:00:31 +01:00
parent cd5979f8f1
commit f6f26068da
2 changed files with 27 additions and 22 deletions

View File

@ -3,7 +3,7 @@
@section('title')
@parent
Event Surveys
Event Widgets
@stop
@section('top_nav')
@ -15,7 +15,7 @@ Event Surveys
@stop
@section('page_title')
<i class='ico-cart mr5'></i>
<i class='ico-code mr5'></i>
Event Surveys
@stop

View File

@ -83,27 +83,32 @@
</div>
<div class="col-md-6">
<h4 style="margin-bottom: 25px;margin-top: 20px;">Recent Orders</h4>
@if($organiser->orders->count())
<ul class="list-group">
@foreach($organiser->orders()->orderBy('created_at', 'desc')->take(30)->get() as $order)
<li class="list-group-item">
<h6 class="ellipsis">
{{ $order->event->title }}
</h6>
<p class="list-group-text">
<a href="{{ route('showEventOrders', ['event_id' => $order->event_id, 'q' => $order->order_reference]) }}">
<b>#{{ $order->order_reference }}</b></a> - {{ $order->full_name }}
registered {{ $order->attendees()->withTrashed()->count() }} tickets.
</p>
<h6>
{{ $order->created_at->diffForHumans() }} &bull; <span
style="color: green;">{{ $order->event->currency_symbol }}{{ $order->amount }}</span>
</h6>
</li>
@endforeach
@foreach($organiser->orders()->orderBy('created_at', 'desc')->take(30)->get() as $order)
<li class="list-group-item">
<h6 class="ellipsis">
<a href="{{ route('showEventDashboard', ['event_id' => $order->event->id]) }}">
{{ $order->event->title }}
</a>
</h6>
<p class="list-group-text">
<a href="{{ route('showEventOrders', ['event_id' => $order->event_id, 'q' => $order->order_reference]) }}">
<b>#{{ $order->order_reference }}</b></a> -
<a href="{{ route('showEventAttendees', ['event_id'=>$order->event->id,'q'=>$order->order_reference]) }}">{{ $order->full_name }}</a>
registered {{ $order->attendees()->withTrashed()->count() }} ticket{{ $order->attendees()->withTrashed()->count() > 1 ? 's' : '' }}.
</p>
<h6>
{{ $order->created_at->diffForHumans() }} &bull; <span
style="color: green;">{{ $order->event->currency_symbol }}{{ $order->amount }}</span>
</h6>
</li>
@endforeach
@else
<div class="alert alert-success alert-lg">
Looks like there are no recent orders.
</div>
@endif
</ul>
</div>