@extends('layouts.master')
@section('title','Users')
@section('content')

       <div class="content-wrapper">
      <!-- Content Header (Page header) -->
      <section class="content-header">
        <div class="container-fluid">
          <div class="row mb-2">
            <div class="col-sm-6">
              <h1>Edit Users</h1>
            </div>
            <div class="col-sm-6">
              <ol class="breadcrumb float-sm-right">
                <li class="breadcrumb-item"><a href="#">Home</a></li>
                <li class="breadcrumb-item active">Edit Users</li>
              </ol>
            </div>
          </div>
        </div><!-- /.container-fluid -->
      </section>

      <!-- Main content -->
      <section class="content">
        <div class="container-fluid">
          <div class="card card-primary">
            <form action="{{url('update-users',$users->id)}}" method="post" enctype="multipart/form-data">
              @csrf
              <div class="card-body row">
   
                
                <div class="col-md-4">
                  <div class="form-group">
                    <label for="exampleInputEmail1">Name</label>
                    <input type="text" class="form-control" name="name" id="name"  value="{{ $users->name}}" autocomplete="off">
                     @if ($errors->has('name'))
                      <span class="text-danger">{{ $errors->first('name') }}</span>
                      @endif
                  </div>

                </div>
                <div class="col-md-4">
                  <div class="form-group">
                    <label for="exampleInputEmail1">Email Address</label>
                    <input type="email" class="form-control" id="email" value="{{ $users->email}}" name="email"  autocomplete="off">
             
                    @if ($errors->has('email'))
                      <span class="text-danger">{{ $errors->first('email') }}</span>
                      @endif
                  </div>

                </div>
               <div class="col-md-4">
                  <div class="form-group">
                    <label for="exampleInputEmail1">Mobile No</label>
                    <input type="mob" class="form-control" id="mob" value="{{ $users->mob}}" name="mob"  autocomplete="off">
             
                    @if ($errors->has('mob'))
                      <span class="text-danger">{{ $errors->first('mob') }}</span>
                      @endif
                  </div>

                </div>
  
              </div>
              <div class="card-footer pt-0 mb-5">
                <button class="btn btn-primary" type="submit">Submit</button>
                <a href="{{route('admin.index')}}" class="btn btn-danger" >Back</a>
              </div>
            </form>
          </div>
        </div>
        <!-- /.container-fluid -->
      </section>
      <!-- /.content -->


    </div>
      <!-- /.content -->
@endsection


