|
15 | 15 | <label for="months" class="col-md-3 control-label"> |
16 | 16 | {{ trans('admin/depreciations/general.number_of_months') }} |
17 | 17 | </label> |
18 | | - <div class="col-md-7 col-sm-12"> |
19 | | - <div class="col-md-7" style="padding-left:0px"> |
20 | | - <input class="form-control" type="number" min="0" max="3600" name="months" id="months" value="{{ old('months', $item->months) }}" style="width: 80px;"{!! (\App\Helpers\Helper::checkIfRequired($item, 'months')) ? ' required' : '' !!} /> |
21 | | - {!! $errors->first('months', '<span class="alert-msg" aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i> :message</span>') !!} |
22 | | - </div> |
| 18 | + <div class="col-md-9 col-sm-12"> |
| 19 | + <input class="form-control" type="number" min="0" max="3600" name="months" id="months" value="{{ old('months', $item->months) }}" style="width: 90px;"{!! (\App\Helpers\Helper::checkIfRequired($item, 'months')) ? ' required' : '' !!} /> |
| 20 | + {!! $errors->first('months', '<span class="alert-msg" aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i> :message</span>') !!} |
23 | 21 | </div> |
24 | 22 | </div> |
25 | 23 |
|
|
28 | 26 | <label for="depreciation_min" class="col-md-3 control-label"> |
29 | 27 | {{ trans('admin/depreciations/general.depreciation_min') }} |
30 | 28 | </label> |
31 | | - <div class="col-md-2" style="display: flex;"> |
32 | | - <input class="form-control" name="depreciation_min" id="depreciation_min" required type="number" value="{{ old('depreciation_min', $item->depreciation_min) }}" style="width: 80px; margin-right: 15px; display: inline-block;" /> |
| 29 | + <div class="col-md-9" style="display: flex;"> |
| 30 | + <input class="form-control" name="depreciation_min" id="depreciation_min" required type="number" value="{{ old('depreciation_min', $item->depreciation_min) }}" style="width: 90px; margin-right: 15px; display: inline-block;" /> |
33 | 31 | <select class="form-control select2" name="depreciation_type" id="depreciation_type" data-minimum-results-for-search="Infinity" style="width: 150px; display: inline-block;"> |
34 | | - <option value="amount" {{ old('depreciation_type', $item->depreciation_type) == 'amount' ? 'selected' : '' }}>Amount</option> |
35 | | - <option value="percent" {{ old('depreciation_type', $item->depreciation_type) == 'percent' ? 'selected' : '' }}>Percentage</option> |
| 32 | + <option value="amount" {{ old('depreciation_type', $item->depreciation_type) == 'amount' ? 'selected' : '' }}>{{ trans('general.depreciation_options.amount') }}</option> |
| 33 | + <option value="percent" {{ old('depreciation_type', $item->depreciation_type) == 'percent' ? 'selected' : '' }}>{{ trans('general.depreciation_options.percent') }}</option> |
36 | 34 | </select> |
| 35 | + {!! $errors->first('depreciation_min', '<span class="col-md-7 col-md-offset-3 alert-msg" aria-hidden="true"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!} |
37 | 36 | </div> |
38 | | - {!! $errors->first('depreciation_min', '<span class="col-md-7 col-md-offset-3 alert-msg" aria-hidden="true"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!} |
| 37 | + |
39 | 38 | </div> |
40 | 39 | @stop |
0 commit comments