Jenderal92

Untitled

Jul 23rd, 2022
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.40 KB | None | 0 0
  1. @extends('layouts.app')
  2. @section('content')
  3. <div class="row">
  4. <div class="col-lg-12 margin-tb">
  5. <div class="pull-left">
  6. <h2>Update Category</h2>
  7. </div>
  8. <div class="pull-right">
  9. <a class="btn btn-primary" href="{{ route('categories.index') }}"> Back</a>
  10. </div>
  11. </div>
  12. </div>
  13. @if (count($errors) > 0)
  14. <div class="alert alert-danger">
  15. <strong>Whoops!</strong> There were some problems with your input.<br><br>
  16. <ul>
  17. @foreach ($errors->all() as $error)
  18. <li>{{ $error }}</li>
  19. @endforeach
  20. </ul>
  21. </div>
  22. @endif
  23. <formaction="{{ route('categories.update',$category->id) }}" method="POST">
  24. @csrf
  25. @method('PUT')
  26. <div class="row">
  27. <div class="col-xs-12 col-sm-12 col-md-12">
  28. <div class="form-group">
  29. <strong>Category Name:</strong>
  30. <input type="text" name="category" value="{{$category->category}}" placeholder="Category Name" class="form-control">
  31. </div>
  32. </div>
  33. <div class="col-xs-12 col-sm-12 col-md-12 text-center">
  34. <button type="submit" class="btn btn-primary">Submit</button>
  35. </div>
  36. </div>
  37. </form>
  38. @endsection
Advertisement
Add Comment
Please, Sign In to add comment