@php
$is_mobile = isMobile();
@endphp
@php
$go_back_url = "/home";//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
@php
$go_back_url = "/home";
@endphp
@if(isset($transaction))
@include('sale_pos.partials.edit_discount_modal', ['sales_discount' => $transaction->discount_amount, 'discount_type' => $transaction->discount_type, 'rp_redeemed' => $transaction->rp_redeemed, 'rp_redeemed_amount' => $transaction->rp_redeemed_amount, 'max_available' => !empty($redeem_details['points']) ? $redeem_details['points'] : 0])
@else
@include('sale_pos.partials.edit_discount_modal', ['sales_discount' => $business_details->default_sales_discount, 'discount_type' => 'percentage', 'rp_redeemed' => 0, 'rp_redeemed_amount' => 0, 'max_available' => 0])
@endif
@if(isset($transaction))
@include('sale_pos.partials.edit_order_tax_modal', ['selected_tax' => $transaction->tax_id])
@else
@include('sale_pos.partials.edit_order_tax_modal', ['selected_tax' => $business_details->default_sales_tax])
@endif
@include('sale_pos.partials.edit_shipping_modal')