@inject('request', 'Illuminate\Http\Request') @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']); $salesCustomerScreen = $request->segment(1) == 'salesCustomerScreen' ? 'none' : ''; @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')
  Dashboard
{{--

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

{{-- change from $default_location->id to $default_location->location_id because we get this location from amazon_seller table not from business location table --}} {!! Form::select('select_location_id', $business_locations, $default_location->id ?? null , ['class' => 'vh-pos-btn-home', 'id' => 'select_location_id', 'style' => 'margin: 0;', 'required', 'autofocus'], $bl_attributes); !!}
@endif @else @if ($business_locations)
{!! Form::select('select_location_id', $business_locations, $default_location ?? null , ['class' => 'vh-pos-btn-home', 'id' => 'select_location_id', 'style' => 'margin: 0; width: 100%', 'required', 'autofocus', 'disabled']); !!}
@endif @endif @if(empty($transaction->cash_register_list_id)) @if($cash_register_list)
{!! Form::select('select_cash_registers_list', $cash_register_list, $default_cashier->id ?? null , ['class' => 'vh-pos-btn-home', 'id' => 'select_cash_registers_list', 'style' => 'margin: 0;', 'required', 'autofocus'], $bl_attributes); !!}
@else {{$default_cashier->name}} @endif @else @if($cash_register_list)
{!! Form::select('select_cash_registers_list', $cash_register_list, $default_cashier->id ?? null , ['class' => 'vh-pos-btn-home', 'id' => 'select_cash_registers_list', 'style' => 'margin: 0;', 'required', 'autofocus', 'disabled']); !!}
@else {{$default_cashier->name}} @endif @endif
@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('account.customer_due'): {{$customer_due ?? ''}}
{{-- @if(!empty($transaction->location_id)) {{$transaction->location->name}} @endif   --}} {{-- {{ @format_datetime('now') }} --}}

{{-- @if ($role_user_id == 2) --}} {{-- --}} {{-- @endif --}} {{-- --}} @if(!empty($pos_settings['inline_service_staff'])) @endif @can('close_cash_register') @endcan @can('view_cash_register') @endcan {{-- --}} {{-- --}} {{-- --}} @if(empty($pos_settings['hide_product_suggestion']) && isMobile()) @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 {{--
--}} {{--
--}}