@extends('Layouts/dashboard')
@section('submenu')
@if (isset($order) && $order)
@include('Plugins/Payment/Views/Elements/LinesOrder/order_submenu', ['data' => $order])
@else
@include('Plugins/Payment/Views/Elements/Order/list_submenu')
@endif
@endsection
@section('content')
@php
$is_full_admin = canSee($venue->id, null, 'all');
@endphp
@if (isset($order) && $order)
@t('Booking Management for Order #%s', $order->id)
@endif
content->remove_meridiem) && $settings->content->remove_meridiem == '0')
data-remove-meridiem @endif class="
{{ (isset($settings->content->hide_times) && $settings->content->hide_times) ? 'no-times' : '' }}
{{
(isset($settings->content->booking_management_intervals_labels) && $settings->content->booking_management_intervals_labels) ?
'interval-labels' : ''
}}
{{ (isset($settings->content->prevent_line_minimization) && $settings->content->prevent_line_minimization) ? 'no-minimize' : '' }}
" @if (isset($settings->content->booking_management_intervals_labels) && $settings->content->booking_management_intervals_labels)
data-availabilities-url="{{ action('Payment/EventsController@time_availability.json', [$venue->id]) }}" @endif>
@if (
isset($settings->content->quick_reservation_product_id) &&
$settings->content->quick_reservation_product_id
)
@endif
@if (canSee($venue->id, null, 'all'))
@endif
@foreach ($lines as $line)
{{ $line->name }}
{{--@if (isset($settings->content->booking_management_view) && $settings->content->booking_management_view ==
'resourceTimelineDay')
@if ($line->capacity)
| capacity: {{ $line->capacity }}
@endif
@endif--}}
@endforeach
@if (isset($settings->content->show_slot_timeline) && $settings->content->show_slot_timeline)
@endif
@include(
'Elements/Common/modal',
[
'id' => 'edit-event',
'title' => t('Slot'),
'form' => [
'action' => action('Payment/LinesOrdersController@secure_edit', [$venue->id]),
'method' => 'post',
'id' => 'event-form',
'class' => 'ajaxed'
],
'content' => view(
'Plugins/Payment/Views/Elements/LinesOrder/modal',
['venue' => $venue, 'settings' => $settings]
)
]
)
@include(
'Elements/Common/modal',
[
'id' => 'new-event',
'title' => t('New Slot'),
'form' => [
'action' => action('Payment/LinesOrdersController@secure_edit', [$venue->id]),
'method' => 'post',
'id' => 'new-event-form',
'class' => 'ajaxed'
],
'content' => view(
'Plugins/Payment/Views/Elements/LinesOrder/new_modal',
['venue' => $venue, 'settings' => $settings]
),
'footer' => view(
'Plugins/Payment/Views/Elements/LinesOrder/new_modal_footer',
['venue' => $venue]
)
]
)
@include(
'Elements/Common/modal',
[
'id' => 'new-slots',
'title' => t('Booking Slot'),
'form' => [
'action' => action('Payment/LinesOrdersBulkController@secure_edit.json', [$venue->id]),
'method' => 'post',
'id' => 'new-slots-form',
'class' => 'ajaxed'
],
'content' => view(
'Plugins/Payment/Views/Elements/LinesOrdersBulk/form',
['venue' => $venue, 'lines' => $lines, 'settings' => $settings, 'zoned_lines' => $zoned_lines]
),
'footer' => view(
'Plugins/Payment/Views/Elements/LinesOrdersBulk/new_slot_footer',
['venue' => $venue]
)
]
)
@if (
isset($settings->content->quick_reservation_product_id) &&
$settings->content->quick_reservation_product_id
)
@include(
'Elements/Common/modal',
[
'id' => 'new-reservation',
'title' => t('Private Hire'),
'form' => [
'action' => action('Payment/LinesOrdersController@secure_reservation', [$venue->id]),
'method' => 'post',
'id' => 'new-reservation-form',
'class' => 'ajaxed'
],
'content' => view(
'Plugins/Payment/Views/Elements/LinesOrder/new_reservation',
[
'venue' => $venue,
'lines' => $lines,
'settings' => $settings,
'zoned_lines' => $zoned_lines
]
),
'footer' => view(
'Plugins/Payment/Views/Elements/LinesOrder/new_reservation_footer',
['venue' => $venue]
)
]
)
@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' => [],
'event_id' => null,
'categories_list' => $categories_list
]
),
'footer' => view(
'Plugins/Payment/Views/Elements/Order/report_parameters_footer'
)
]
)
@endsection