export_select_house.blade.php 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <html xmlns:o="urn:schemas-microsoft-com:office:office"
  2. xmlns:x="urn:schemas-microsoft-com:office:excel"
  3. xmlns="http://www.w3.org/TR/REC-html40">
  4. <head>
  5. <meta http-equiv=Content-Type content="text/html; charset=utf-8">
  6. <meta name=ProgId content=Excel.Sheet>
  7. <meta name=Generator content="Microsoft Excel 15">
  8. <style>
  9. table {
  10. mso-displayed-decimal-separator: "\.";
  11. mso-displayed-thousand-separator: "\,";
  12. }
  13. .title {
  14. font-weight:700;
  15. font-size:20px;
  16. text-align: center;
  17. }
  18. th {
  19. color:red;
  20. }
  21. td {
  22. text-align: center;
  23. vnd.ms-excel.numberformat:@;
  24. }
  25. </style>
  26. </head>
  27. <body>
  28. <div align=center x:publishsource="Excel">
  29. <table border=1 cellpadding=0 cellspacing=0 style='border-collapse:collapse;table-layout:fixed;'>
  30. <tr>
  31. <th>未成年子女</th>
  32. <th>身份证号码</th>
  33. <th>户籍号</th>
  34. <th>联系电话</th>
  35. <th>婚姻情况</th>
  36. <th>可选房</th>
  37. </tr>
  38. @foreach($data as $v)
  39. <tr>
  40. <td>{{$v['child']}}</td>
  41. <td>{{$v['id_card']}}</td>
  42. <td>{{$v['register_no']}}</td>
  43. <td>{{$v['mobile']}}</td>
  44. <td>{{$v['marry']}}</td>
  45. <td>{{$v['select_status']}}</td>
  46. </tr>
  47. @endforeach
  48. </table>
  49. </div>
  50. </body>
  51. </html>