category.blade.php 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. @extends('layouts.base')
  2. @section('content')
  3. @section('title', trans('Yunshop\Hotel::pack.category_title'))
  4. <div class='panel panel-default'>
  5. <div class='panel-body'>
  6. <table class="table table-hover" style="overflow:visible;">
  7. <thead>
  8. <tr>
  9. <th style='width:4%;text-align: center;'>{!! trans('Yunshop\Hotel::pack.category_sort_name') !!}</th>
  10. <th style='width:10%;text-align: center;'>{!! trans('Yunshop\Hotel::pack.category_name') !!}</th>
  11. <th style='width:10%;text-align: center;'>{!! trans('Yunshop\Hotel::pack.category_id_name') !!}</th>
  12. <th style='width:10%;text-align: center;'>{!! trans('Yunshop\Hotel::pack.category_op_name') !!}</th>
  13. </tr>
  14. </thead>
  15. <tbody>
  16. @foreach($list as $row)
  17. <tr>
  18. <td style="text-align: center;">{{$row->sort}}</td>
  19. <td style="text-align: center;">{{$row->name}}</td>
  20. <td style="text-align: center;">{{$row->id}}</td>
  21. <td style="text-align: center;">
  22. <a
  23. href="{{yzWebUrl(\Yunshop\Hotel\admin\CategoryController::EDIT_URL,['id' => $row->id])}}">
  24. {!! trans('Yunshop\Hotel::pack.category_op_edit_name') !!}
  25. </a>
  26. @if($row->id != $default_id)
  27. <a
  28. href="{{yzWebUrl(\Yunshop\Hotel\admin\CategoryController::DEL_URL,['id' => $row->id])}}">
  29. {!! trans('Yunshop\Hotel::pack.category_op_del_name') !!}
  30. </a>
  31. @endif
  32. </td>
  33. </tr>
  34. @endforeach
  35. </tbody>
  36. </table>
  37. {!! $pager !!}
  38. </div>
  39. </div>
  40. <div class='panel-footer'>
  41. <a class='btn btn-info' href="{{yzWebUrl(\Yunshop\Hotel\admin\CategoryController::ADD_URL)}}">
  42. <i class='fa fa-plus'></i>
  43. {!! trans('Yunshop\Hotel::pack.category_op_add_name') !!}
  44. </a>
  45. </div>
  46. <div style="width:100%;height:150px;"></div>
  47. @endsection