@extends('Layouts/dashboard') @section('submenu') @if (isset($company) && $company) @include( 'Plugins/Payment/Views/Elements/Order/company_list_submenu', [ 'extra' => view( 'Plugins/Payment/Views/Elements/Client/add_submenu', ['company' => $company] ) ] ) @else @include( 'Plugins/Payment/Views/Elements/Order/list_submenu', [ 'extra' => view( 'Plugins/Payment/Views/Elements/Client/add_submenu', ['venue' => isset($venue) ? $venue : null] ) ] ) @endif {{-- @include('Elements/Venue/submenu') --}} @endsection @section('content')
@t('Export')
{!! Form::open(['class' => 'form-inline mb orders-filter', 'method' => 'get']) !!} {!! Form::text( 'data[company]', (isset($filter->company) ? $filter->company : null), ['placeholder' => t('Company')] ) !!} {!! Form::text( 'data[name]', (isset($filter->name) ? $filter->name : null), ['placeholder' => t('Name')] ) !!} {!! Form::text( 'data[email]', (isset($filter->email) ? $filter->email : null), ['placeholder' => t('Email')] ) !!} {!! Form::text( 'data[phone]', (isset($filter->phone) ? $filter->phone : null), ['placeholder' => t('Phone')] ) !!} {!! Form::close() !!} @if (isset($show_venue) && $show_venue) @endif @foreach ($data as $row) @if (isset($show_venue) && $show_venue) @endif @endforeach
{{ __('Venue') }}{!! pagination_sort('User.id', t('User ID')) !!} {{ __('Name') }} {{ __('Email') }} {{ __('Phone') }} {{ __('Orders') }} {{ __('Total Balance') }} {{ __('Last Order') }} {{ __('Opted for promotion') }} {{ __('Member Since') }} {!! pagination_sort('Referral.created', t('Created')) !!} {{ __('Assign To') }}
{{ $row->Venue->name }}{{ $row->User->id }} {{ $row->User->first_name }} {{ $row->User->last_name }} {{ $row->User->email }} {{ $row->User->phone }} {{ isset($row->orders) ? $row->orders : null }} {{ isset($row->total) ? amount($row->total, ['Currency' => oa($currency)]) : null }} @if (isset($row->last_order)) @date($row->last_order) @endif {{ ($row->User->promotions_venues ? __('Yes') : '') }} @date($row->membership) @timestamp($row->created) {!! Form::select( 'assign', $users, $row->assigned_to, [ 'data-url' => action('Payment/ClientsController@secure_assign', [$row->venue_id, $row->id]), 'empty' => true, 'class' => 'form-control assign-to' ] ) !!}
{!! pagination(['total' => $pagination_total]) !!}
@if (isset($venue) && $venue) @include( 'Elements/Common/modal', [ 'id' => 'order-user-modal', 'title' => t('Modify Customer'), 'form' => [ 'data-toggle' => 'validator', 'action' => action('Payment/UsersController@secure_edit', [$venue->id]), ], 'content' => view( 'Plugins/Payment/Views/Elements/Client/new_client_form', [ 'venue' => $venue, 'settings' => $settings ] ), 'footer' => view( 'Plugins/Payment/Views/Elements/Order/payment_modal_footer' ) ] ) @endif @endsection