@extends('layouts.wizard') @section('title', trans('general.wizard')) @section('content')
@include('partials.wizard.steps')
{!! Form::open([ 'route' => 'wizard.currencies.store', 'id' => 'currency', '@submit.prevent' => 'onSubmit', '@keydown' => 'form.errors.clear($event.target.name)', 'files' => true, 'role' => 'form', 'class' => 'form-loading-button mb-0', 'novalidate' => true ]) !!} @foreach($currencies as $item) @endforeach
@sortablelink('name', trans('general.name')) @sortablelink('code', trans('currencies.code')) @sortablelink('rate', trans('currencies.rate')) @sortablelink('enabled', trans('general.enabled')) {{ trans('general.actions') }}
{{ $item->name }} {{ $item->code }} {{ $item->rate }} @if (user()->can('update-settings-currencies')) {{ Form::enabledGroup($item->id, $item->name, $item->enabled) }} @else @if ($item->enabled) {{ trans('general.yes') }} @else {{ trans('general.no') }} @endif @endif
{{ Form::textGroup('name', trans('general.name'), 'font', [], null, '') }} {{ Form::selectGroup('code', trans('currencies.code'), 'code', $codes, null, ['required' => 'required', 'change' => 'onChangeCode'], '') }} {{ Form::textGroup('rate', trans('currencies.rate'), 'percentage', ['required' => 'required'], null, '') }} {{ Form::radioGroup('enabled', trans('general.enabled')) }} {!! Form::button( '', [ ':disabled' => 'form.loading', 'type' => 'submit', 'class' => 'btn btn-success', 'data-loading-text' => trans('general.loading'), ]) !!}
{{ Form::numberGroup('precision', trans('currencies.precision'), 'bullseye') }} {{ Form::textGroup('symbol', trans('currencies.symbol.symbol'), 'font') }} {{ Form::selectGroup('symbol_first', trans('currencies.symbol.position'), 'text-width', ['1' => trans('currencies.symbol.before'), '0' => trans('currencies.symbol.after')]) }} {{ Form::textGroup('decimal_mark', trans('currencies.decimal_mark'), 'columns') }} {{ Form::textGroup('thousands_separator', trans('currencies.thousands_separator'), 'columns', []) }}
{!! Form::close() !!}
@endsection @push('scripts_start') @endpush