56 lines
2.1 KiB
PHP
56 lines
2.1 KiB
PHP
@extends('layout')
|
|
|
|
@section('content')
|
|
<form method="POST" action="/devices">
|
|
@csrf
|
|
<label for="device_id">device_id:</label>
|
|
<input type="text" id="device_id" name="device_id" value="{{old('device_id')}}" required>
|
|
@error('device_id')
|
|
<p>{{$message}}</p>
|
|
@enderror
|
|
<br />
|
|
<label for="title">Title:</label>
|
|
<input type="text" id="title" name="title" value="{{old('title')}}" required>
|
|
@error('device_id')
|
|
<p>{{$message}}</p>
|
|
@enderror
|
|
<br />
|
|
<label for="device_type">device_type:</label>
|
|
<input type="text" id="device_type" name="device_type" value="{{old('device_type')}}" required>
|
|
@error('device_id')
|
|
<p>{{$message}}</p>
|
|
@enderror
|
|
<br />
|
|
<label for="accessories">accessories:</label>
|
|
<input type="text" id="accessories" name="accessories" value="{{old('accessories')}}">
|
|
@error('device_id')
|
|
<p>{{$message}}</p>
|
|
@enderror
|
|
<br />
|
|
<label for="rz_username_buyer">rz_username_buyer:</label>
|
|
<input type="text" id="rz_username_buyer" name="rz_username_buyer" value="{{old('rz_username_buyer')}}" required>
|
|
@error('device_id')
|
|
<p>{{$message}}</p>
|
|
@enderror
|
|
<br />
|
|
<label for="serial_number">serial_number:</label>
|
|
<input type="text" id="serial_number" name="serial_number" value="{{old('serial_number')}}" required>
|
|
@error('device_id')
|
|
<p>{{$message}}</p>
|
|
@enderror
|
|
<br />
|
|
<label for="image_url">image_url:</label>
|
|
<input id="image_url" name="image_url" value="{{old('image_url')}}" required>
|
|
@error('device_id')
|
|
<p>{{$message}}</p>
|
|
@enderror
|
|
<br />
|
|
<label for="description">description:</label>
|
|
<textarea type="text" id="description" name="description">{{old('rz_username_buyer')}}</textarea>
|
|
@error('device_id')
|
|
<p>{{$message}}</p>
|
|
@enderror
|
|
<br />
|
|
<input type="submit" value="Submit">
|
|
</form>
|
|
@endsection |