Файловый менеджер - Редактировать - /home/clickysoft/public_html/jmapi5.clickysoft.net/resources/views/admin/productPrices/edit.blade.php
Назад
@extends('layouts.admin') @section('content') <div class="card"> <div class="card-header"> {{ trans('global.edit') }} {{ trans('cruds.productPrice.title_singular') }} </div> <div class="card-body"> <form method="POST" action="{{ route("admin.product-prices.update", [$productPrice->id]) }}" enctype="multipart/form-data"> @method('PUT') @csrf <div class="form-group"> <label class="required" for="product_id">{{ trans('cruds.productPrice.fields.product') }}</label> <select class="form-control select2 {{ $errors->has('product') ? 'is-invalid' : '' }}" name="product_id" id="product_id" required> @foreach($products as $id => $entry) <option value="{{ $id }}" {{ (old('product_id') ? old('product_id') : $productPrice->product->id ?? '') == $id ? 'selected' : '' }}>{{ $entry }}</option> @endforeach </select> @if($errors->has('product')) <span class="text-danger">{{ $errors->first('product') }}</span> @endif <span class="help-block">{{ trans('cruds.productPrice.fields.product_helper') }}</span> </div> <div class="form-group"> <label class="required" for="qty_from">{{ trans('cruds.productPrice.fields.qty_from') }}</label> <input class="form-control {{ $errors->has('qty_from') ? 'is-invalid' : '' }}" type="number" name="qty_from" id="qty_from" value="{{ old('qty_from', $productPrice->qty_from) }}" step="1" required> @if($errors->has('qty_from')) <span class="text-danger">{{ $errors->first('qty_from') }}</span> @endif <span class="help-block">{{ trans('cruds.productPrice.fields.qty_from_helper') }}</span> </div> <div class="form-group"> <label class="required" for="qty_to">{{ trans('cruds.productPrice.fields.qty_to') }}</label> <input class="form-control {{ $errors->has('qty_to') ? 'is-invalid' : '' }}" type="number" name="qty_to" id="qty_to" value="{{ old('qty_to', $productPrice->qty_to) }}" step="1" required> @if($errors->has('qty_to')) <span class="text-danger">{{ $errors->first('qty_to') }}</span> @endif <span class="help-block">{{ trans('cruds.productPrice.fields.qty_to_helper') }}</span> </div> <div class="form-group"> <label class="required" for="price">{{ trans('cruds.productPrice.fields.price') }}</label> <input class="form-control {{ $errors->has('price') ? 'is-invalid' : '' }}" type="number" name="price" id="price" value="{{ old('price', $productPrice->price) }}" step="0.01" required> @if($errors->has('price')) <span class="text-danger">{{ $errors->first('price') }}</span> @endif <span class="help-block">{{ trans('cruds.productPrice.fields.price_helper') }}</span> </div> <div class="form-group"> <button class="btn btn-danger" type="submit"> {{ trans('global.save') }} </button> </div> </form> </div> </div> @endsection
| ver. 1.4 |
Github
|
.
| PHP 8.1.29 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка