edit.blade.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <html>
  2. <head>
  3. <link href="{{ asset('css/app.css') }}" rel="stylesheet">
  4. <link href="{{ asset('css/style.scss') }}" rel="stylesheet">
  5. <link href="{{ asset('css/items.scss') }}" rel="stylesheet">
  6. </head>
  7. <body class="bg">
  8. <div class="container font-weight-bold text-uppercase">
  9. @include('entity.hat')
  10. <form action="{{route($routes['routeShow'], $entity->id)}}" method="POST">
  11. @method('put')
  12. {{ csrf_field()}}
  13. </inpit>
  14. @foreach($columns as $column_name => $column_type)
  15. <div class="row column_part">
  16. <div class="col-md-7 "> {{ trans('entity.'.$column_name) }} </div>
  17. </div>
  18. <div class="row">
  19. @include('entity.fields.'.$column_type)
  20. @endforeach
  21. <div class="row">
  22. <button class="text-left col-3 btn btn-warning my_col"
  23. type="submit"> {{ trans('butt.save') }} </button>
  24. </div>
  25. </form>
  26. <form class ="row" action="{{route($routes['routeDestroy'], $entity->id)}}" method="POST">
  27. @method('delete')
  28. {{ csrf_field()}}
  29. <button type="submit" class="text-left col-md-auto btn btn-DARK my_col"> {{ trans('butt.delete') }} </button>
  30. </form>
  31. </div>
  32. </body>
  33. </html>