@php $go_back_url = action([\App\Http\Controllers\SellPosController::class, 'index']); $transaction_sub_type = ''; $view_suspended_sell_url = action([\App\Http\Controllers\SellController::class, 'index']) . '?suspended=1'; $pos_redirect_url = action([\App\Http\Controllers\SellPosController::class, 'create']); @endphp @if (!empty($pos_module_data)) @foreach ($pos_module_data as $key => $value) @php if (!empty($value['go_back_url'])) { $go_back_url = $value['go_back_url']; } if (!empty($value['transaction_sub_type'])) { $transaction_sub_type = $value['transaction_sub_type']; $view_suspended_sell_url .= '&transaction_sub_type=' . $transaction_sub_type; $pos_redirect_url .= '?sub_type=' . $transaction_sub_type; } @endphp @endforeach @endif @inject('request', 'Illuminate\Http\Request')
{{--

@lang('sale.location'):   @if (empty($transaction->location_id)) @if (count($business_locations) > 1)

{!! Form::select( 'select_location_id', $business_locations, $default_location->id ?? null, ['class' => 'form-control input-sm', 'id' => 'select_location_id', 'required', 'autofocus'], $bl_attributes, ) !!}
@else {{ $default_location->name }} @endif @endif @if (!empty($transaction->location_id)) {{ $transaction->location->name }} @endif   {{ @format_datetime('now') }}

@if (!empty($pos_settings['inline_service_staff'])) @endif @can('close_cash_register') @endcan @if (!empty($pos_settings['inline_service_staff']) || (in_array('tables', $enabled_modules) || in_array('service_staff', $enabled_modules)))
' data-html="true" data-placement="bottom"> @endif @can('view_cash_register') @endcan
' data-html="true" data-placement="bottom"> @if (empty($pos_settings['hide_product_suggestion'])) @endif @if (Module::has('Repair') && $transaction_sub_type != 'repair') @include('repair::layouts.partials.pos_header') @endif @if (in_array('pos_sale', $enabled_modules) && !empty($transaction_sub_type)) @can('sell.create')   @lang('sale.pos_sale') @endcan @endif @can('expense.add') @endcan
--}}

@lang('sale.location'):  

@if (empty($transaction->location_id)) @if (count($business_locations) > 1) {!! Form::select( 'select_location_id', $business_locations, $default_location->id ?? null, ['class' => 'form-control input-sm', 'id' => 'select_location_id', 'required', 'autofocus'], $bl_attributes, ) !!} @else {{ $default_location->name }} @endif @else {{ $transaction->location->name }} @endif
  {{ @format_datetime('now') }}
@if (empty($pos_settings['hide_product_suggestion'])) @endif
{{ __('lang_v1.go_back') }} {{-- {{ __('lang_v1.go_back') }} --}} @if (!isset($pos_settings['hide_recent_trans']) || $pos_settings['hide_recent_trans'] == 0) @endif @if (!empty($pos_settings['inline_service_staff'])) @endif @can('close_cash_register') @endcan @if ( !empty($pos_settings['inline_service_staff']) || (in_array('tables', $enabled_modules) || in_array('service_staff', $enabled_modules)))
' data-html="true" data-placement="bottom"> {{ __('restaurant.service_staff_replacement') }} @endif @can('view_cash_register') @endcan
' data-html="true" data-placement="bottom"> {{ __('lang_v1.sell_return') }} @if (Module::has('Repair') && $transaction_sub_type != 'repair') @include('repair::layouts.partials.pos_header') @endif @if (in_array('pos_sale', $enabled_modules) && !empty($transaction_sub_type)) @can('sell.create')   @lang('sale.pos_sale') @endcan @endif @can('expense.add') @endcan