2016-02-29 15:59:36 +00:00
@ extends ( 'Shared.Layouts.Master' )
@ section ( 'title' )
@ parent
Event Attendees
@ stop
@ section ( 'page_title' )
< i class = " ico-users " ></ i >
Attendees
@ stop
@ section ( 'top_nav' )
@ include ( 'ManageEvent.Partials.TopNav' )
@ stop
@ section ( 'menu' )
@ include ( 'ManageEvent.Partials.Sidebar' )
@ stop
@ section ( 'head' )
2016-03-10 04:41:10 +00:00
2016-02-29 15:59:36 +00:00
@ stop
@ section ( 'page_header' )
< div class = " col-md-9 " >
< div class = " btn-toolbar " role = " toolbar " >
< div class = " btn-group btn-group-responsive " >
2016-03-10 04:41:10 +00:00
< button data - modal - id = " CreateTicket " href = " javascript:void(0); " data - href = " { { route('showCreateAttendee', ['event_id'=> $event->id ])}} " class = " loadModal btn btn-success " type = " button " >< i class = " ico-ticket " ></ i > Add Attendee </ button >
2016-02-29 15:59:36 +00:00
</ div >
2016-04-20 16:52:07 +00:00
< div class = " btn-group btn-group-responsive " >
< button data - modal - id = " CreateTicket " href = " javascript:void(0); " data - href = " { { route('showImportAttendee', ['event_id'=> $event->id ])}} " class = " loadModal btn btn-success " type = " button " >< i class = " ico-user-plus " ></ i > Import Attendees </ button >
</ div >
2016-03-14 22:12:24 +00:00
< div class = " btn-group btn-group-responsive " >
2016-03-10 04:41:10 +00:00
< a class = " btn btn-success " href = " { { route('showPrintAttendees', ['event_id'=> $event->id ])}} " target = " _blank " >< i class = " ico-print " ></ i > Print Attendee List </ a >
2016-03-14 22:12:24 +00:00
</ div >
< div class = " btn-group btn-group-responsive " >
2016-02-29 15:59:36 +00:00
< button type = " button " class = " btn btn-success dropdown-toggle " data - toggle = " dropdown " >
< i class = " ico-users " ></ i > Export < span class = " caret " ></ span >
</ button >
< ul class = " dropdown-menu " role = " menu " >
< li >< a href = " { { route('showExportAttendees', ['event_id'=> $event->id ,'export_as'=>'xlsx'])}} " > Excel ( XLSX ) </ a ></ li >
< li >< a href = " { { route('showExportAttendees', ['event_id'=> $event->id ,'export_as'=>'xls'])}} " > Excel ( XLS ) </ a ></ li >
< li >< a href = " { { route('showExportAttendees', ['event_id'=> $event->id ,'export_as'=>'csv'])}} " > CSV </ a ></ li >
< li >< a href = " { { route('showExportAttendees', ['event_id'=> $event->id ,'export_as'=>'html'])}} " > HTML </ a ></ li >
2016-03-10 04:41:10 +00:00
</ ul >
2016-02-29 15:59:36 +00:00
</ div >
< div class = " btn-group btn-group-responsive " >
2016-03-10 04:41:10 +00:00
< button data - modal - id = " MessageAttendees " href = " javascript:void(0); " data - href = " { { route('showMessageAttendees', ['event_id'=> $event->id ])}} " class = " loadModal btn btn-success " type = " button " >< i class = " ico-envelope " ></ i > Message </ button >
2016-02-29 15:59:36 +00:00
</ div >
</ div >
</ div >
< div class = " col-md-3 " >
{ !! Form :: open ( array ( 'url' => route ( 'showEventAttendees' , [ 'event_id' => $event -> id , 'sort_by' => $sort_by ]), 'method' => 'get' )) !! }
< div class = " input-group " >
2016-03-14 22:12:24 +00:00
< input name = " q " value = " { { $q or '' } } " placeholder = " Search Attendees.. " type = " text " class = " form-control " />
2016-02-29 15:59:36 +00:00
< span class = " input-group-btn " >
< button class = " btn btn-default " type = " submit " >< i class = " ico-search " ></ i ></ button >
</ span >
</ div >
{ !! Form :: close () !! }
</ div >
@ stop
@ section ( 'content' )
<!-- Start Attendees table -->
< div class = " row " >
< div class = " col-md-12 " >
@ if ( $attendees -> count ())
2016-03-10 04:41:10 +00:00
< div class = " panel " >
2016-02-29 15:59:36 +00:00
< div class = " table-responsive " >
2016-03-14 22:12:24 +00:00
< table class = " table " >
2016-02-29 15:59:36 +00:00
< thead >
< tr >
< th >
{ !! Html :: sortable_link ( 'Name' , $sort_by , 'first_name' , $sort_order , [ 'q' => $q , 'page' => $attendees -> currentPage ()]) !! }
</ th >
< th >
{ !! Html :: sortable_link ( 'Email' , $sort_by , 'email' , $sort_order , [ 'q' => $q , 'page' => $attendees -> currentPage ()]) !! }
</ th >
< th >
{ !! Html :: sortable_link ( 'Ticket' , $sort_by , 'ticket_id' , $sort_order , [ 'q' => $q , 'page' => $attendees -> currentPage ()]) !! }
</ th >
< th >
{ !! Html :: sortable_link ( 'Order Ref.' , $sort_by , 'order_reference' , $sort_order , [ 'q' => $q , 'page' => $attendees -> currentPage ()]) !! }
</ th >
< th ></ th >
</ tr >
</ thead >
< tbody >
@ foreach ( $attendees as $attendee )
< tr class = " attendee_ { { $attendee -> id } } { { $attendee -> is_cancelled ? 'danger' : '' } } " >
< td > {{{ $attendee -> full_name }}} </ td >
< td >
2016-03-11 04:25:15 +00:00
< a data - modal - id = " MessageAttendee " href = " javascript:void(0); " class = " loadModal "
2016-02-29 15:59:36 +00:00
data - href = " { { route('showMessageAttendee', ['attendee_id'=> $attendee->id ])}} "
> {{ $attendee -> email }} </ a >
</ td >
< td >
2016-03-11 04:25:15 +00:00
{{{ $attendee -> ticket -> title }}}
2016-02-29 15:59:36 +00:00
</ td >
< td >
2016-03-11 04:25:15 +00:00
< a href = " javascript:void(0); " data - modal - id = " view-order- { { $attendee->order ->id }} " data - href = " { { route('showManageOrder', ['order_id'=> $attendee->order ->id])}} " title = " View Order # { { $attendee -> order -> order_reference } } " class = " loadModal " >
2016-05-26 00:40:49 +00:00
{{ $attendee -> order -> order_reference }}
2016-02-29 15:59:36 +00:00
</ a >
</ td >
< td class = " text-center " >
2016-03-11 04:25:15 +00:00
< div class = " btn-group " >
2016-04-05 23:27:23 +00:00
< button type = " button " class = " btn btn-xs btn-primary dropdown-toggle " data - toggle = " dropdown " aria - haspopup = " true " aria - expanded = " false " > Action < span class = " caret " ></ span ></ button >
2016-03-11 04:25:15 +00:00
< ul class = " dropdown-menu " >
@ if ( $attendee -> email )
< li >< a
data - modal - id = " MessageAttendee "
href = " javascript:void(0); "
data - href = " { { route('showMessageAttendee', ['attendee_id'=> $attendee->id ])}} "
class = " loadModal "
> Message </ a ></ li >
@ endif
< li >< a
data - modal - id = " ResendTicketToAttendee "
href = " javascript:void(0); "
data - href = " { { route('showResendTicketToAttendee', ['attendee_id'=> $attendee->id ])}} "
class = " loadModal "
> Resend Ticket </ a ></ li >
2016-05-29 15:21:45 +00:00
< li >< a
href = " { { route('showExportTicket', ['event_id'=> $event->id , 'attendee_id'=> $attendee->id ])}} "
> Ticket PDF </ a ></ li >
2016-03-11 04:25:15 +00:00
</ ul >
</ div >
2016-02-29 15:59:36 +00:00
2016-03-10 04:41:10 +00:00
< a
2016-03-11 04:25:15 +00:00
data - modal - id = " EditAttendee "
href = " javascript:void(0); "
2016-02-29 15:59:36 +00:00
data - href = " { { route('showEditAttendee', ['event_id'=> $event->id , 'attendee_id'=> $attendee->id ])}} "
2016-03-11 04:25:15 +00:00
class = " loadModal btn btn-xs btn-primary "
2016-02-29 15:59:36 +00:00
> Edit </ a >
2016-03-10 04:41:10 +00:00
< a
2016-03-11 04:25:15 +00:00
data - modal - id = " CancelAttendee "
href = " javascript:void(0); "
2016-02-29 15:59:36 +00:00
data - href = " { { route('showCancelAttendee', ['event_id'=> $event->id , 'attendee_id'=> $attendee->id ])}} "
2016-03-11 04:25:15 +00:00
class = " loadModal btn btn-xs btn-danger "
2016-02-29 15:59:36 +00:00
> Cancel </ a >
</ td >
</ tr >
@ endforeach
</ tbody >
</ table >
</ div >
</ div >
@ else
@ if ( ! empty ( $q ))
@ include ( 'Shared.Partials.NoSearchResults' )
@ else
@ include ( 'ManageEvent.Partials.AttendeesBlankSlate' )
@ endif
@ endif
</ div >
< div class = " col-md-12 " >
2016-04-05 23:39:31 +00:00
{ !! $attendees -> appends ([ 'sort_by' => $sort_by , 'sort_order' => $sort_order , 'q' => $q ]) -> render () !! }
2016-02-29 15:59:36 +00:00
</ div >
</ div > <!--/ End attendees table -->
@ stop