edit.blade.php 3.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. @extends('layouts.app')
  2. @section('content')
  3. <div class="px-3">
  4. <form class="row" action="{{ route('product_sku.update', $product_sku) }}" method="post">
  5. <div class="col-12">
  6. <h4>МАФ на складе</h4>
  7. </div>
  8. <div class="col-xxl-6">
  9. @csrf
  10. <input type="hidden" id="product_id" name="product_id" value="{{ $product_sku->product_id }}">
  11. @include('partials.input', ['name' => 'order_name', 'title' => 'Площадка', 'disabled' => true, 'value' => $product_sku->order->common_name])
  12. @include('partials.input', ['name' => 'product_name', 'title' => 'МАФ', 'disabled' => true, 'value' => $product_sku->product->common_name])
  13. @include('partials.input', ['name' => 'rfid', 'title' => 'RFID', 'required' => true, 'value' => $product_sku->rfid])
  14. @include('partials.input', ['name' => 'factory_number', 'title' => 'Номер фабрики', 'required' => true, 'value' => $product_sku->factory_number])
  15. @include('partials.input', ['name' => 'manufacture_date', 'title' => 'Дата производства', 'type' => 'date', 'required' => true, 'value' => $product_sku->manufacture_date])
  16. @include('partials.input', ['name' => 'service_life', 'title' => 'Срок службы', 'required' => true, 'type' => 'number', 'value' => $product_sku->service_life])
  17. @include('partials.input', ['name' => 'certificate_number', 'title' => 'Номер сертификата', 'required' => true, 'value' => $product_sku->certificate_number])
  18. @include('partials.input', ['name' => 'certificate_date', 'title' => 'Дата сертификата', 'type' => 'date', 'required' => true, 'value' => $product_sku->certificate_date])
  19. @include('partials.input', ['name' => 'certificate_issuer', 'title' => 'Орган сертификации', 'required' => true, 'value' => $product_sku->certificate_issuer])
  20. @include('partials.input', ['name' => 'certificate_type', 'title' => 'Вид сертификации', 'required' => true, 'value' => $product_sku->certificate_type])
  21. @include('partials.input', ['name' => 'statement_number', 'title' => 'Номер ведомости', 'value' => $product_sku->statement_number])
  22. @include('partials.input', ['name' => 'statement_date', 'title' => 'Дата ведомости', 'type' => 'date', 'value' => $product_sku->statement_date])
  23. @include('partials.input', ['name' => 'upd_number', 'title' => 'Номер УПД', 'value' => $product_sku->upd_number])
  24. </div>
  25. <div class="col-xxl-6">
  26. <div class="row mb-2">
  27. <label for="comment" class="col-form-label my-1">
  28. Примечание
  29. </label>
  30. <div>
  31. <textarea name="comment" id="comment" rows="15" class="form-control @error('comment') is-invalid @enderror">{{ old('note', $product_sku->comment ?? '') }}</textarea>
  32. @error('comment')
  33. <span class="invalid-feedback" role="alert"><strong>{{ $message }}</strong></span>
  34. @enderror
  35. </div>
  36. </div>
  37. <input type="hidden" name="redirect_url" value="{{ url()->previous() }}">
  38. </div>
  39. <div class="col-12">
  40. @include('partials.submit', ['name' => 'Сохранить', 'offset' => 5])
  41. </div>
  42. </form>
  43. @endsection