ultimatepos/Modules/IndustrialEngineering/Resources/views/portal/cpq/configure.blade.php

37 lines
1.8 KiB
PHP

@extends('portal::layouts.customer')
@section('title', $platform->name)
@section('content')
<section class="content-header"><h1>{{ $platform->name }} @lang('industrialengineering::lang.portal_configure')</h1></section>
<section class="content">
<div class="box box-primary">
<form method="POST" action="{{ route('customer.cpq.store') }}">
@csrf
<input type="hidden" name="product_platform_id" value="{{ $platform->id }}">
<div class="box-body">
<div class="form-group">
<label>@lang('industrialengineering::lang.name')</label>
<input type="text" name="name" class="form-control" value="{{ $platform->name }}" required>
</div>
@foreach($configurator['groups'] as $group)
<div class="form-group">
<label>{{ $group->name }}</label>
@foreach($group->options as $option)
<div class="checkbox">
<label>
<input type="checkbox" name="selected_options[]" value="{{ $option->id }}">
{{ $option->label ?? $option->name }} @if($option->price_delta)(+{{ $option->price_delta }})@endif
</label>
</div>
@endforeach
</div>
@endforeach
</div>
<div class="box-footer">
<button type="submit" class="btn btn-primary">@lang('messages.save')</button>
<a href="{{ route('customer.cpq.index') }}" class="btn btn-default">@lang('messages.cancel')</a>
</div>
</form>
</div>
</section>
@endsection