2016-02-29 15:59:36 +00:00
|
|
|
@extends('Shared.Layouts.Master')
|
|
|
|
|
|
|
|
|
|
@section('title')
|
|
|
|
|
@parent
|
|
|
|
|
Dashboard
|
|
|
|
|
@stop
|
|
|
|
|
|
|
|
|
|
@section('top_nav')
|
|
|
|
|
@include('ManageOrganiser.Partials.TopNav')
|
|
|
|
|
@stop
|
|
|
|
|
@section('page_title')
|
2016-04-22 11:01:48 +00:00
|
|
|
{{ $organiser->name }} Dashboard
|
2016-02-29 15:59:36 +00:00
|
|
|
@stop
|
|
|
|
|
|
2016-03-16 15:50:22 +00:00
|
|
|
@section('menu')
|
2016-02-29 15:59:36 +00:00
|
|
|
@include('ManageOrganiser.Partials.Sidebar')
|
2016-03-16 15:50:22 +00:00
|
|
|
@stop
|
2016-02-29 15:59:36 +00:00
|
|
|
|
2016-03-16 15:50:22 +00:00
|
|
|
@section('head')
|
2016-02-29 15:59:36 +00:00
|
|
|
|
|
|
|
|
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/morris.js/0.5.1/morris.css">
|
|
|
|
|
<script src="//cdnjs.cloudflare.com/ajax/libs/raphael/2.1.0/raphael-min.js"></script>
|
|
|
|
|
<script src="//cdnjs.cloudflare.com/ajax/libs/morris.js/0.5.1/morris.min.js"></script>
|
|
|
|
|
|
2016-05-05 15:46:52 +00:00
|
|
|
{!! HTML::script('https://maps.googleapis.com/maps/api/js?sensor=false&libraries=places') !!}
|
2016-02-29 15:59:36 +00:00
|
|
|
{!! HTML::script('vendor/geocomplete/jquery.geocomplete.min.js')!!}
|
2016-05-05 15:46:52 +00:00
|
|
|
{!! HTML::script('vendor/moment/moment.js')!!}
|
|
|
|
|
{!! HTML::script('vendor/fullcalendar/dist/fullcalendar.min.js')!!}
|
|
|
|
|
{!! HTML::style('vendor/fullcalendar/dist/fullcalendar.css')!!}
|
2016-02-29 15:59:36 +00:00
|
|
|
|
2016-05-05 15:46:52 +00:00
|
|
|
<script>
|
|
|
|
|
$(function() {
|
|
|
|
|
$('#calendar').fullCalendar({
|
|
|
|
|
events: {!! $calendar_events !!},
|
|
|
|
|
header: {
|
|
|
|
|
left: 'prev,',
|
|
|
|
|
center: 'title',
|
|
|
|
|
right: 'next'
|
|
|
|
|
},
|
|
|
|
|
dayClick: function(date, jsEvent, view) {
|
2016-02-29 15:59:36 +00:00
|
|
|
|
2016-05-05 15:46:52 +00:00
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
</script>
|
2016-03-16 15:50:22 +00:00
|
|
|
@stop
|
2016-02-29 15:59:36 +00:00
|
|
|
|
2016-03-16 15:50:22 +00:00
|
|
|
@section('content')
|
2016-02-29 15:59:36 +00:00
|
|
|
<div class="row">
|
2016-03-16 15:50:22 +00:00
|
|
|
<div class="col-sm-4">
|
|
|
|
|
<div class="stat-box">
|
|
|
|
|
<h3>
|
|
|
|
|
{{$organiser->events->count()}}
|
|
|
|
|
</h3>
|
|
|
|
|
<span>
|
|
|
|
|
Events
|
|
|
|
|
</span>
|
2016-02-29 15:59:36 +00:00
|
|
|
</div>
|
2016-03-16 15:50:22 +00:00
|
|
|
</div>
|
|
|
|
|
<div class="col-sm-4">
|
|
|
|
|
<div class="stat-box">
|
|
|
|
|
<h3>
|
|
|
|
|
{{$organiser->attendees->count()}}
|
|
|
|
|
</h3>
|
|
|
|
|
<span>
|
|
|
|
|
Tickets Sold
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-sm-4">
|
|
|
|
|
<div class="stat-box">
|
|
|
|
|
<h3>
|
2016-05-12 10:43:04 +00:00
|
|
|
{{ money($organiser->events->sum('sales_volume') + $organiser->events->sum('organiser_fees_volume'), $organiser->account->currency->code) }}
|
2016-03-16 15:50:22 +00:00
|
|
|
</h3>
|
|
|
|
|
<span>
|
|
|
|
|
Sales Volume
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2016-05-05 15:46:52 +00:00
|
|
|
|
2016-04-26 13:36:43 +00:00
|
|
|
<div class="row">
|
2016-05-05 15:46:52 +00:00
|
|
|
|
|
|
|
|
<div class="col-md-8">
|
|
|
|
|
|
|
|
|
|
<h4 style="margin-bottom: 25px;margin-top: 20px;">Event Calendar</h4>
|
|
|
|
|
<div id="calendar"></div>
|
|
|
|
|
|
|
|
|
|
|
2016-04-26 13:36:43 +00:00
|
|
|
<h4 style="margin-bottom: 25px;margin-top: 20px;">Upcoming Events</h4>
|
|
|
|
|
@if($upcoming_events->count())
|
|
|
|
|
@foreach($upcoming_events as $event)
|
2016-03-16 15:50:22 +00:00
|
|
|
@include('ManageOrganiser.Partials.EventPanel')
|
2016-04-26 13:36:43 +00:00
|
|
|
@endforeach
|
|
|
|
|
@else
|
|
|
|
|
<div class="alert alert-success alert-lg">
|
|
|
|
|
You have no events coming up. <a href="#"
|
|
|
|
|
data-href="{{route('showCreateEvent', ['organiser_id' => $organiser->id])}}"
|
|
|
|
|
class=" loadModal">You can click here to create an event.</a>
|
2016-02-29 15:59:36 +00:00
|
|
|
</div>
|
2016-04-26 13:36:43 +00:00
|
|
|
@endif
|
2016-02-29 15:59:36 +00:00
|
|
|
</div>
|
2016-05-05 15:46:52 +00:00
|
|
|
<div class="col-md-4">
|
2016-04-26 13:36:43 +00:00
|
|
|
<h4 style="margin-bottom: 25px;margin-top: 20px;">Recent Orders</h4>
|
2016-04-26 21:00:31 +00:00
|
|
|
@if($organiser->orders->count())
|
2016-04-26 13:36:43 +00:00
|
|
|
<ul class="list-group">
|
2016-05-11 23:18:03 +00:00
|
|
|
@foreach($organiser->orders()->orderBy('created_at', 'desc')->take(5)->get() as $order)
|
2016-04-26 21:00:31 +00:00
|
|
|
<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() }} • <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
|
2016-04-26 13:36:43 +00:00
|
|
|
</ul>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2016-02-29 15:59:36 +00:00
|
|
|
@stop
|