sport.blade.php 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. @extends('master')
  2. @section('content')
  3. <div class="container" style = "margin-left:0px;width:100%;">
  4. <!-- меню !-->
  5. <nav class="navbar navbar-default">
  6. <div class="container-fluid">
  7. <div class="navbar-header">
  8. <a class="navbar-brand" href="#" style = "color:#144d8a;font-weight:600;">Fsir_events:</a>
  9. </div>
  10. <!--<form class="navbar-form navbar-left" action="/action_page.php">
  11. <div class="form-group">
  12. <input type="text" class="form-control" placeholder="#input_teg">
  13. </div>
  14. <button type="submit" class="btn btn-default">Искать</button>
  15. </form>-->
  16. <ul class="nav navbar-nav">
  17. <li><a href="#" style = "color:#636c90;font-weight:500;font-size:24px">#sport</a></li>
  18. <li><a href="#" style = "color:#636c90;font-weight:500;font-size:24px">#it</a></li>
  19. <li><a href="#" style = "color:#636c90;font-weight:500;font-size:24px">#festive</a></li>
  20. <li><a href="#" style = "color:#636c90;font-weight:500;font-size:24px">#all</a></li>
  21. <li><a href="{{action('CRUDController@index')}}"
  22. style = "color:#636c90;font-weight:500;font-size:24px" >#near</a></li>
  23. </ul>
  24. </div>
  25. </nav>
  26. <!-- меню !-->
  27. <br>
  28. <br>
  29. <table class="table table-striped">
  30. <thead>
  31. <tr>
  32. <!-- <th>ID</th> !-->
  33. <th>Название</th>
  34. <th>Описание</th>
  35. <th>Дата проведения</th>
  36. <th>Тип мероприятия</th>
  37. <th colspan="2">Действия</th>
  38. </tr>
  39. </thead>
  40. <tbody>
  41. @foreach($cruds as $post)
  42. <tr>
  43. <td> {{$post->title}} </td>
  44. <td>{{substr($post->post, 0,130).'...'}}</td>
  45. <td>{{$post->date}}</td>
  46. <td>{{$post->type}}</td>
  47. <td><a href="{{action('CRUDController@edit', $post->id)}}" class="btn btn-warning">Редактировать</a></td>
  48. <td>
  49. <form action="{{action('CRUDController@destroy', $post->id)}}" method="post">
  50. {{csrf_field()}}
  51. <input name="_method" type="hidden" value="DELETE">
  52. <button class="btn btn-danger" type="submit">Удалить</button>
  53. </form>
  54. </td>
  55. </tr>
  56. @endforeach
  57. </tbody>
  58. </table>
  59. </div>
  60. @endsection