@extends('layouts.app') @section('title', __('hms::lang.add_bookings')) @section('content') @include('hms::layouts.nav')
{{--

@lang('hms::lang.add_bookings')

{!! Form::open([ 'url' => action([\Modules\Hms\Http\Controllers\HmsBookingController::class, 'store']), 'method' => 'post', 'id' => 'create_booking', 'files' => true ]) !!}
{!! Form::label('contact_id', __('contact.customer') . ':*') !!}
@if (!empty($walk_in_customer['price_calculation_type']) && $walk_in_customer['price_calculation_type'] == 'selling_price_group') @endif {!! Form::select('contact_id', [], null, ['class' => 'form-control mousetrap', 'id' => 'customer_id', 'placeholder' => 'Enter Customer name / phone', 'required']); !!}
@lang('account.customer_due'):
@lang('lang_v1.billing_address'):
{!! $walk_in_customer['contact_address'] ?? '' !!}
{!! Form::label('status', __('hms::lang.status') . ':*') !!} {!! Form::select('status', $status, '', [ 'class' => 'form-control status', 'required', 'placeholder' => __('hms::lang.status'), ]) !!}
{!! Form::label('arrival_date', __('hms::lang.arrival_date') . ':') !!} {!! Form::text('arrival_date', request()->input('booking_date') ? @format_date(request()->input('booking_date')) : null, [ 'class' => 'form-control date_picker', 'placeholder' => __('hms::lang.arrival_date'), 'readonly', 'required', 'id' => 'arrival_date', ]) !!}
{!! Form::label('arrival_time', __('hms::lang.arrival_time') . ':') !!} {!! Form::text('arrival_time', null, [ 'class' => 'form-control time_picker', 'placeholder' => __('hms::lang.arrival_time'), 'readonly', 'required', 'id' => 'arrival_time', ]) !!}
{!! Form::label('departure_date', __('hms::lang.departure_date') . ':') !!} {!! Form::text('departure_date', request()->input('booking_date') ? @format_date(request()->input('booking_date')) : null, [ 'class' => 'form-control departure_date', 'placeholder' => __('hms::lang.departure_date'), 'readonly', 'required', 'id' => 'departure_date', ]) !!}

1 days

{!! Form::label('departure_time', __('hms::lang.departure_time') . ':') !!} {!! Form::text('departure_time', null, [ 'class' => 'form-control time_picker', 'placeholder' => __('hms::lang.departure_time'), 'readonly', 'required', 'id' => 'departure_time', ]) !!}

@lang('hms::lang.rooms_and_extras')

@lang('hms::lang.type') @lang('hms::lang.room_no') @lang('hms::lang.no_of_adult') @lang('hms::lang.no_of_child') @lang('hms::lang.price') @lang('messages.action')
@foreach ($extras as $index => $extra) @endforeach
@lang('hms::lang.extras')
{{ $extra->name }} / {{ $extra->price }} - {{ str_replace("_", " ", $extra->price_per) }}
--}} @component('components.widget', ['title' => __('hms::lang.add_bookings')])
{!! Form::open([ 'url' => action([\Modules\Hms\Http\Controllers\HmsBookingController::class, 'store']), 'method' => 'post', 'id' => 'create_booking', 'files' => true, ]) !!}
{!! Form::label('contact_id', __('contact.customer') . ':*') !!}
@if ( !empty($walk_in_customer['price_calculation_type']) && $walk_in_customer['price_calculation_type'] == 'selling_price_group') @endif {!! Form::select('contact_id', [], null, [ 'class' => 'form-control mousetrap', 'id' => 'customer_id', 'placeholder' => 'Enter Customer name / phone', 'required', ]) !!}
@lang('account.customer_due'):
@lang('lang_v1.billing_address'):
{!! $walk_in_customer['contact_address'] ?? '' !!}
{!! Form::label('status', __('hms::lang.status') . ':*') !!} {!! Form::select('status', $status, '', [ 'class' => 'form-control status', 'required', 'placeholder' => __('hms::lang.status'), ]) !!}
{!! Form::label('arrival_date', __('hms::lang.arrival_date') . ':') !!} {!! Form::text( 'arrival_date', request()->input('booking_date') ? @format_date(request()->input('booking_date')) : null, [ 'class' => 'form-control date_picker', 'placeholder' => __('hms::lang.arrival_date'), 'readonly', 'required', 'id' => 'arrival_date', ], ) !!}
{!! Form::label('arrival_time', __('hms::lang.arrival_time') . ':') !!} {!! Form::text('arrival_time', null, [ 'class' => 'form-control time_picker', 'placeholder' => __('hms::lang.arrival_time'), 'readonly', 'required', 'id' => 'arrival_time', ]) !!}
{!! Form::label('departure_date', __('hms::lang.departure_date') . ':') !!} {!! Form::text( 'departure_date', request()->input('booking_date') ? @format_date(request()->input('booking_date')) : null, [ 'class' => 'form-control departure_date', 'placeholder' => __('hms::lang.departure_date'), 'readonly', 'required', 'id' => 'departure_date', ], ) !!}

1 days

{!! Form::label('departure_time', __('hms::lang.departure_time') . ':') !!} {!! Form::text('departure_time', null, [ 'class' => 'form-control time_picker', 'placeholder' => __('hms::lang.departure_time'), 'readonly', 'required', 'id' => 'departure_time', ]) !!}

@lang('hms::lang.rooms_and_extras')

@lang('hms::lang.type') @lang('hms::lang.room_no') @lang('hms::lang.no_of_adult') @lang('hms::lang.no_of_child') @lang('hms::lang.price') @lang('messages.action')
@foreach ($extras as $index => $extra) @endforeach
@lang('hms::lang.extras')
{{ $extra->name }} / {{ $extra->price }} - {{ str_replace('_', ' ', $extra->price_per) }}
@endcomponent
@component('components.widget')

@lang('hms::lang.status') @lang('hms::lang.status')

@lang('hms::lang.room_price') :
0.00
@lang('hms::lang.extra_price') :
0.00
@lang('hms::lang.discount') :
0.00

{!! Form::number('discount_percent', null, [ 'class' => 'form-control', 'id' => 'discount_percent', 'placeholder' => __('hms::lang.discount_percent'), ]) !!}
Total:
0.00
@endcomponent @component('components.widget')

@lang('hms::lang.apply_coupon')

{!! Form::label('coupon_code', __('hms::lang.coupon_code') . ':') !!} {!! Form::text('coupon_code', null, [ 'class' => 'form-control', 'placeholder' => __('hms::lang.coupon_code'), 'required', ]) !!}
@lang('hms::lang.apply_coupon')
@endcomponent
{{--

@lang('hms::lang.add_payment')

@include('hms::partials.payment_row_form', ['row_index' => 0, 'show_date' => true, 'show_denomination' => true])

@lang('lang_v1.change_return'):
0 {!! Form::hidden("change_return", $change_return['amount'], ['class' => 'form-control change_return input_number', 'required', 'id' => "change_return"]); !!} @if (!empty($change_return['id'])) @endif
{!! Form::label("change_return_method" , __('lang_v1.change_return_payment_method') . ':*') !!}
@php $_payment_method = empty($change_return['method']) && array_key_exists('cash', $payment_types) ? 'cash' : $change_return['method']; $_payment_types = $payment_types; if(isset($_payment_types['advance'])) { unset($_payment_types['advance']); } @endphp {!! Form::select("payment[change_return][method]", $_payment_types, $_payment_method, ['class' => 'form-control col-md-12 payment_types_dropdown', 'id' => 'change_return_method', 'style' => 'width:100%;']); !!}
@if (!empty($accounts))
{!! Form::label("change_return_account" , __('lang_v1.change_return_payment_account') . ':') !!}
{!! Form::select("payment[change_return][account_id]", $accounts, !empty($change_return['account_id']) ? $change_return['account_id'] : '' , ['class' => 'form-control select2', 'id' => 'change_return_account', 'style' => 'width:100%;']); !!}
@endif @include('hms::partials.payment_type_details', ['payment_line' => $change_return, 'row_index' => 'change_return'])

@lang('lang_v1.balance'): 0.00
--}} @component('components.widget')
@include('hms::partials.payment_row_form', [ 'row_index' => 0, 'show_date' => true, 'show_denomination' => true, ])

@lang('lang_v1.change_return'):
0 {!! Form::hidden('change_return', $change_return['amount'], [ 'class' => 'form-control change_return input_number', 'required', 'id' => 'change_return', ]) !!} @if (!empty($change_return['id'])) @endif
{!! Form::label('change_return_method', __('lang_v1.change_return_payment_method') . ':*') !!}
@php $_payment_method = empty($change_return['method']) && array_key_exists('cash', $payment_types) ? 'cash' : $change_return['method']; $_payment_types = $payment_types; if (isset($_payment_types['advance'])) { unset($_payment_types['advance']); } @endphp {!! Form::select('payment[change_return][method]', $_payment_types, $_payment_method, [ 'class' => 'form-control col-md-12 payment_types_dropdown', 'id' => 'change_return_method', 'style' => 'width:100%;', ]) !!}
@if (!empty($accounts))
{!! Form::label('change_return_account', __('lang_v1.change_return_payment_account') . ':') !!}
{!! Form::select( 'payment[change_return][account_id]', $accounts, !empty($change_return['account_id']) ? $change_return['account_id'] : '', ['class' => 'form-control select2', 'id' => 'change_return_account', 'style' => 'width:100%;'], ) !!}
@endif @include('hms::partials.payment_type_details', [ 'payment_line' => $change_return, 'row_index' => 'change_return', ])

@lang('lang_v1.balance'): 0.00
@endcomponent
{!! Form::close() !!} {{-- model --}}
@endsection @section('javascript') {{-- --}} @endsection