@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('ProductController@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}}
{{$variation->product_variation->name}} - {{$variation->name}} ({{$variation->sub_sku}}) {{$variation->sell_price_inc_tax}} {!! Form::text('group_prices[' . $price_group->id . '][' . $variation->id . ']', !empty($variation_prices[$variation->id][$price_group->id]) ? @num_format($variation_prices[$variation->id][$price_group->id]) : 0, ['class' => 'form-control input_number input-sm'] ); !!}
{!! Form::hidden('submit_type', 'save', ['id' => 'submit_type']); !!}
{!! Form::close() !!}
@stop @section('javascript') @endsection