profile.blade.php 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. @extends('admin.layout.index')
  2. @push('css-head')
  3. @endpush
  4. @section('content')
  5. <!-- Page header -->
  6. <div class="page-header page-header-light">
  7. <div class="breadcrumb-line breadcrumb-line-light header-elements-md-inline">
  8. <div class="d-flex">
  9. <div class="breadcrumb">
  10. <a href="{{url('/admin')}}" class="breadcrumb-item"><i class="icon-home2 mr-2"></i> Dashboard</a>
  11. <span class="breadcrumb-item active">Update: My profile</span>
  12. </div>
  13. </div>
  14. </div>
  15. </div>
  16. <!-- /page header -->
  17. <!-- Content area -->
  18. <div class="content">
  19. <div class="card">
  20. <div class="card-body">
  21. @if (count($errors) > 0)
  22. <div class="alert alert-danger alert-no-border alert-txt-colored alert-close alert-dismissible fade show" role="alert">
  23. <button type="button" class="close" data-dismiss="alert" aria-label="Close">
  24. <span aria-hidden="true">×</span>
  25. </button>
  26. <strong>Whoops!</strong> There were some problems with your input.
  27. <ul>
  28. @foreach ($errors->all() as $error)
  29. <li>{{ $error }}</li>
  30. @endforeach
  31. </ul>
  32. </div>
  33. @endif
  34. {!!Form::model($admin,['method'=>'PETCH','url'=>['admin/profile/update']])!!}
  35. <div class="form-group">
  36. <label>Name:</label>
  37. <input type="text" class="form-control" name="name" value="{{$admin->name}}" id="name" placeholder="Name" required="">
  38. </div>
  39. <div class="form-group">
  40. <label>Email:</label>
  41. <input type="email" class="form-control" name="email" value="{{$admin->email}}" id="email" placeholder="Email" readonly="">
  42. </div>
  43. <div class="form-group">
  44. <label>Password:</label>
  45. <input type="password" class="form-control" name="password" id="password" placeholder="Min Length: 6">
  46. </div>
  47. <div class="form-group">
  48. <label>Confirm Password:</label>
  49. <input type="password" class="form-control" name="password_confirmation" id="password_confirmation" placeholder="Confirm Password" >
  50. </div>
  51. <div class="text-right">
  52. <a href="{{ url('admin/profile/change') }}" class="btn btn-secondary pull-left">
  53. Refresh
  54. <i class="icon-reload-alt ml-2"></i>
  55. </a>
  56. <button type="submit" class="btn btn-primary">Update <i class="icon-pencil7 ml-2"></i></button>
  57. </div>
  58. {!! Form::close() !!}
  59. </div>
  60. </div>
  61. </div>
  62. <!-- /content area -->
  63. @endsection
  64. @push('scripts')
  65. @endpush