Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
1.5 kB
3
Indexable
Never
@extends('base') 
@section('main')
<div class="row">
    <div class="col-sm-8 offset-sm-2">
        <h1 class="display-3">Update/Edit User Information</h1>
 
        @if ($errors->any())
        <div class="alert alert-danger">
            <ul>
                @foreach ($errors->all() as $error)
                <li>{{ $error }}</li>
                @endforeach
            </ul>
        </div>
        <br /> 
        @endif
        <form method="post" action="{{ route('stocks.update', $stock->id) }}">
            @method('PATCH') 
            @csrf

            <div class="form-group">
 
                <label for="name">ID:*</label>
                <input type="text" class="form-control" name="id" value="{{ $users->id }}" />
            </div>

            <div class="form-group">
                <label for="name">Name:*</label>
                <input type="text" class="form-control" name="name" value="{{ $users->name }}" />
            </div>
 
            <div class="form-group">
                <label for="ticket">Email:*</label>
                <input type="text" class="form-control" name="email" value="{{ $users->email }}" />
            </div>
 
            <div class="form-group">
                <label for="value">Password:*</label>
                <input type="text" class="form-control" name="password" value="{{ $users->password }}" />
            </div>
            <button type="submit" class="btn btn-primary">Update</button>
        </form>
    </div>
</div>
@endsection