@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') {!! Form::open(['class' => 'form-inline mb orders-filter', 'method' => 'get']) !!} {!! 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() !!} @foreach ($data as $row) @endforeach
{!! pagination_sort('id', t('ID')) !!} {{ __('Name') }} {{ __('Email') }} {{ __('Phone') }} {{ __('Last Order') }} {{ __('Member') }} {!! pagination_sort('created', t('Created')) !!}
{{ $row->id }} {{ $row->first_name }} {{ $row->last_name }} {{ $row->email }} {{ $row->phone }} @if (isset($row->Order->created)) @date($row->Order->created) @endif {{ ($row->Product->Category->membership ? 'Yes' : '') }} @timestamp($row->Order->created)
{!! pagination(['total' => $pagination_total]) !!}
@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' ) ] ) @endsection