@extends('Layouts/dashboard')
@section('submenu')
@include(
'Plugins/Payment/Views/Elements/Order/list_submenu',
[
'extra' => view(
'Plugins/Payment/Views/Elements/Order/add_submenu',
[
'venue' => isset($venue) ? $venue : null,
'settings' => $settings,
'text' => 'Add New Membership'
]
)
]
)
{{-- @include('Elements/Venue/submenu') --}}
@endsection
@section('content')
@include('Plugins/Payment/Views/Elements/Order/filter_form', [
'in' => 'membership',
'buttons' => view('Plugins/Payment/Views/Elements/Order/members_report_button', ['venue' => $venue])
])
{{--
This is venue centric list
which means the venue is the same, but users are different
Therefore no venue column
--}}
{!! pagination_sort('id', t('ID')) !!} |
@t('Membership Type') |
@t('Member Name') |
@t('Last payment date') |
@t('Status') |
|
@foreach ($data as $row)
{{ $row->Order->id }} |
{{ $row->Product->name }} |
@if (
isset($settings->content->membership_list_type) &&
$settings->content->membership_list_type
)
{{ $row->first_name }}
{{ $row->last_name }}
|
@else
{{ $row->Order->User->first_name }}
{{ $row->Order->User->last_name }}
|
@endif
@date($row->Order->Event->date) |
{{ $row->Order->status }} |
|
@endforeach
{!! pagination(['total' => $pagination_total]) !!}
@include(
'Elements/Common/modal',
[
'title' => t('New Order'),
'form' => [
'action' => action('Payment/OrdersController@secure_add', [$venue->id]),
'method' => 'get',
'id' => 'add-form'
],
'content' => view(
'Plugins/Payment/Views/Elements/Order/modal_form',
[
'venue' => $venue,
'currencies' => $currencies,
'settings' => $settings,
'times' => (
isset($settings->times) &&
$settings->times
?
$settings->times : times(['step' => 5])
),
'end_times' => (
isset($settings->end_times) &&
$settings->end_times
?
$settings->end_times : times(['step' => 5])
)
]
),
'footer' => view(
'Plugins/Payment/Views/Elements/Order/modal_footer'
)
]
)
@endsection