index.blade.php 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. @extends('layouts.admin')
  2. @section('title')
  3. Stagioni
  4. @stop
  5. @section('content')
  6. <div class="row">
  7. <div class="col-xs-12">
  8. <div class="box">
  9. <div class="box-body table-responsive no-padding">
  10. <table class="table table-striped table-hover">
  11. <tr>
  12. <th>Nome</th>
  13. <th>Stagione corrente</th>
  14. <th width="50"></th>
  15. <th width="50"></th>
  16. </tr>
  17. @foreach($seasons as $season)
  18. <tr>
  19. <td>{{$season->name}}</td>
  20. <td>{{$season->default ? 'X' : ''}}</td>
  21. <td>
  22. <a href="{{ route('seasons.edit', array($season->id)) }}" type="button" class="btn btn-w-m btn-primary">Modifica</a>
  23. </td>
  24. <td>
  25. <form class="form-inline" method="POST" action="{{ route('seasons.destroy', $season->id) }}">
  26. @csrf
  27. @method('DELETE')
  28. <button type="submit" class="btn btn-w-m btn-danger" onclick="return confirm('Sei sicuro?')">Elimina</button>
  29. </form>
  30. </td>
  31. </tr>
  32. @endforeach
  33. </table>
  34. </div>
  35. </div>
  36. </div>
  37. <div class="col-xs-2">
  38. <a href="{{ route('seasons.create') }}" class="btn btn-success">Aggiungi</a>
  39. </div>
  40. </div>
  41. @stop