edit.blade.php 2.5 KB

1234567891011121314151617181920212223242526272829
  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-xxl-6">
  6. <h4>Заказ МАФ на складе</h4>
  7. @csrf
  8. <input type="hidden" id="product_id" name="product_id" value="{{ $product_sku->product_id }}">
  9. @include('partials.input', ['name' => 'order_name', 'title' => 'Площадка', 'disabled' => true, 'value' => $product_sku->order->common_name])
  10. @include('partials.input', ['name' => 'product_name', 'title' => 'МАФ', 'disabled' => true, 'value' => $product_sku->product->common_name])
  11. @include('partials.input', ['name' => 'rfid', 'title' => 'RFID', 'required' => true, 'value' => $product_sku->rfid, 'required' => true])
  12. @include('partials.input', ['name' => 'factory_number', 'title' => 'Номер фабрики', 'required' => true, 'value' => $product_sku->factory_number, 'required' => true])
  13. @include('partials.input', ['name' => 'manufacture_date', 'title' => 'Дата производства', 'type' => 'date', 'required' => true, 'value' => $product_sku->manufacture_date, 'required' => true])
  14. @include('partials.input', ['name' => 'service_life', 'title' => 'Срок службы', 'required' => true, 'type' => 'number', 'value' => $product_sku->service_life, 'required' => true])
  15. @include('partials.input', ['name' => 'certificate_number', 'title' => 'Номер сертификата', 'required' => true, 'value' => $product_sku->certificate_number, 'required' => true])
  16. @include('partials.input', ['name' => 'certificate_date', 'title' => 'Дата сертификата', 'type' => 'date', 'required' => true, 'value' => $product_sku->certificate_date, 'required' => true])
  17. @include('partials.input', ['name' => 'certificate_issuer', 'title' => 'Орган сертификации', 'required' => true, 'value' => $product_sku->certificate_issuer, 'required' => true])
  18. @include('partials.input', ['name' => 'certificate_type', 'title' => 'Вид сертификации', 'required' => true, 'value' => $product_sku->certificate_type, 'required' => true])
  19. <input type="hidden" name="redirect_url" value="{{ url()->previous() }}">
  20. @include('partials.submit', ['name' => 'Сохранить'])
  21. </div>
  22. </form>
  23. @endsection