@extends('layouts.app') @section('title', __('lang_v1.add_selling_price_group_prices')) @section('content')

@lang('lang_v1.add_selling_price_group_prices')

{!! Form::open(['url' => action([\App\Http\Controllers\ProductController::class, 'saveSellingPrices']), 'method' => 'post', 'id' => 'selling_price_form' ]) !!} {!! Form::hidden('product_id', $product->id); !!}

@lang('sale.product'): {{$product->name}} ({{$product->sku}})

@if($product->type == 'variable') @endif @foreach($price_groups as $price_group) @endforeach @foreach($product->variations as $variation) @if($product->type == 'variable') @endif @foreach($price_groups as $price_group) @endforeach @endforeach
@lang('lang_v1.variation') @lang('lang_v1.default_selling_price_inc_tax'){{$price_group->name}} @show_tooltip(__('lang_v1.price_group_price_type_tooltip'))
{{$variation->product_variation->name}} - {{$variation->name}} ({{$variation->sub_sku}}) {{$variation->sell_price_inc_tax}} {!! Form::text('group_prices[' . $price_group->id . '][' . $variation->id . '][price]', !empty($variation_prices[$variation->id][$price_group->id]['price']) ? @num_format($variation_prices[$variation->id][$price_group->id]['price']) : 0, ['class' => 'form-control input_number input-sm'] ); !!} @php $price_type = !empty($variation_prices[$variation->id][$price_group->id]['price_type']) ? $variation_prices[$variation->id][$price_group->id]['price_type'] : 'fixed'; $name = 'group_prices[' . $price_group->id . '][' . $variation->id . '][price_type]'; @endphp
{!! Form::hidden('submit_type', 'save', ['id' => 'submit_type']); !!}
{!! Form::close() !!}
@stop @section('javascript') @endsection