@extends('Layouts/dashboard') @section('submenu') @if ($template == 'event') @include('Plugins/Payment/Views/Elements/Order/event_submenu') @else @if ($template == 'user') @include( 'Plugins/Payment/Views/Elements/Order/user_submenu', [ 'extra' => view( 'Plugins/Payment/Views/Elements/Order/add_submenu', [ 'venue' => isset($venue) ? $venue : null, 'settings' => $settings ] ) ] ) @else @if (isset($company) && $company) @include('Plugins/Payment/Views/Elements/Order/company_list_submenu') @else @include( 'Plugins/Payment/Views/Elements/Order/list_submenu', [ 'extra' => view( 'Plugins/Payment/Views/Elements/Order/add_submenu', [ 'venue' => isset($venue) ? $venue : null, 'settings' => $settings, 'quick_product' => (isset($quick_product) ? $quick_product : null) ] ) ] ) @endif @endif @endif {{-- @include('Elements/Venue/submenu') --}} @endsection @section('content') @if ($template != 'user') @if (isset($venue) && $venue)
@endif @include('Plugins/Payment/Views/Elements/Order/filter_form', ['buttons' => view( 'Plugins/Payment/Views/Elements/Order/buttons', ['venue' => (isset($venue) && $venue ? $venue : null)] )] ) @if (isset($venue) && $venue && ($date || $event_id)) @endif @if (isset($venue) && $venue && canSee($venue->id, null, 'finances')) @t('Daily sales') @t('Sales Breakdown') @endif {{-- @include('Plugins/Payment/Views/Elements/Order/daily_sales') --}} {{-- @include('Plugins/Payment/Views/Elements/Order/statistics') --}} @else @include('Plugins/Payment/Views/Elements/Order/user') @include( 'Elements/Common/modal', [ 'title' => t('Select Order Parameters'), '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, 'user' => (isset($user) && $user ? $user : null), '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' ) ] ) @endif @include('Plugins/Payment/Views/Elements/Order/index_' . $template) @if (!isset($company) || !$company) @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', [ 'settings' => $settings ] ) ] ) @endif @include( 'Elements/Common/modal', [ 'title' => t('Select Report Parameters'), 'form' => [ 'method' => 'post', 'target' => 'report' ], 'id' => 'report-parameters', 'content' => view( 'Plugins/Payment/Views/Elements/Order/report_parameters_form', [ 'filter' => (isset($filter) ? $filter : null), 'venue' => $venue, 'events' => $events, 'event_id' => $event_id, 'categories_list' => $categories_list, 'promoter_venues' => $promoter_venues ] ), 'footer' => view( 'Plugins/Payment/Views/Elements/Order/report_parameters_footer' ) ] ) @if (isset($quick_product)) @include( 'Elements/Common/modal', [ 'title' => t('Select payment for %s', $quick_product->name), 'id' => 'quick-product-selector', 'content' => view( 'Plugins/Payment/Views/Elements/Order/quick_product_selector', ['venue' => $venue] ), 'footer' => false ] ) @endif @endsection