show.blade.php 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. @extends('layouts.app')
  2. @section('title')临时工详情@endsection
  3. @section('content')
  4. <div class="container-fluid" id="show">
  5. <div class="card ">
  6. <div class="card-body">
  7. <table class="table table-striped">
  8. <tr>
  9. <td>ID</td>
  10. <td>@{{ userLabor.user_id }}</td>
  11. </tr>
  12. <tr>
  13. <td>姓名</td>
  14. <td><b v-if="userLabor.user_detail">@{{ userLabor.user_detail.full_name }}</b></td>
  15. </tr>
  16. <tr>
  17. <td>电话</td>
  18. <td><b v-if="userLabor.user_detail">@{{ userLabor.user_detail.mobile_phone }}</b></td>
  19. </tr>
  20. <tr>
  21. <td>性别</td>
  22. <td><b v-if="userLabor.user_detail">@{{ userLabor.user_detail.gender }}</b></td>
  23. </tr>
  24. <tr>
  25. <td>身份证号</td>
  26. <td><b class="text-muted" v-if="userLabor.user_detail">@{{ userLabor.user_detail.identity_number }}</b></td>
  27. </tr>
  28. <tr>
  29. <td>劳务所</td>
  30. <td><b v-if="userLabor.labor_company">@{{ userLabor.labor_company.name }}</b></td>
  31. </tr>
  32. <tr>
  33. <td>工资/工时</td>
  34. <td>@{{ userLabor.default_hour_price }}</td>
  35. </tr>
  36. <tr>
  37. <td>创建时间</td>
  38. <td><b v-if="userLabor.user_detail">@{{ userLabor.user_detail.created_at }}</b></td>
  39. </tr>
  40. </table>
  41. </div>
  42. </div>
  43. </div>
  44. @endsection
  45. @section('lastScript')
  46. <script>
  47. new Vue({
  48. el:"#show",
  49. data:{
  50. userLabor:{!! $userLabor !!},
  51. },
  52. });
  53. </script>
  54. @endsection