@extends('layouts.admin')
@section('title', trans('general.title.new', ['type' => trans_choice('general.currencies', 1)]))
@section('content')
//
<div class="card-body">
<div class="row">
{{ Form::textGroup('name', trans('general.name'), 'chart-bar') }}
{{ Form::selectGroup('code', trans('currencies.code'), 'code', $codes, null, ['required' => 'required', 'change' => 'onChangeCode']) }}
{{ Form::textGroup('rate', trans('currencies.rate'), 'sliders-h', ['@input' => 'onChangeRate', 'required' => 'required']) }}
{{ Form::selectGroup('precision', trans('currencies.precision'), 'dot-circle', $precisions, null, ['model' => 'form.precision']) }}
{{ 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')], null, ['model' => 'form.symbol_first']) }}
{{ Form::textGroup('decimal_mark', trans('currencies.decimal_mark'), 'sign') }}
{{ Form::textGroup('thousands_separator', trans('currencies.thousands_separator'), 'slash', []) }}
{{ Form::radioGroup('enabled', trans('general.enabled'), true) }}
{{ Form::radioGroup('default_currency', trans('currencies.default'), false) }}
</div>
</div>
//