orders.blade.php 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  5. <meta charset="UTF-8">
  6. <meta name="viewport"
  7. content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
  8. <meta http-equiv="X-UA-Compatible" content="ie=edge">
  9. <title>Order Invoice</title>
  10. <link rel="stylesheet" href="{{asset('css/bootstrap.min.css')}}">
  11. <style type="text/css">
  12. table { border-collapse: collapse;}
  13. </style>
  14. </head>
  15. <body>
  16. <section class="row">
  17. <div class="pull-left">
  18. Invoice to: {{$customer->name}} <br />
  19. Deliver to: <strong>{{ $address->alias }} <br /></strong>
  20. {{ $address->address_1 }} {{ $address->address_2 }} <br />
  21. {{ $address->city }} {{ $address->province }} <br />
  22. {{ $address->country }} {{ $address->zip }}
  23. </div>
  24. <div class="pull-right">
  25. From: {{config('app.name')}}
  26. </div>
  27. </section>
  28. <section class="row">
  29. <div class="col-md-12">
  30. <h2>Details</h2>
  31. <table class="table table-striped" width="100%" border="0" cellspacing="0" cellpadding="0">
  32. <thead>
  33. <tr>
  34. <th>SKU</th>
  35. <th>Name</th>
  36. <th>Description</th>
  37. <th>Quantity</th>
  38. <th>Price</th>
  39. <th></th>
  40. </tr>
  41. </thead>
  42. <tbody>
  43. @foreach($products as $product)
  44. <tr>
  45. <td>{{$product->sku}}</td>
  46. <td>{{$product->name}}</td>
  47. <td>{{$product->description}}</td>
  48. <td>{{$product->pivot->quantity}}</td>
  49. <td>{{$product->price}}</td>
  50. <td>{{number_format($product->price * $product->pivot->quantity, 2)}}</td>
  51. </tr>
  52. @endforeach
  53. </tbody>
  54. <tfoot>
  55. <tr>
  56. <td></td>
  57. <td></td>
  58. <td></td>
  59. <td></td>
  60. <td>Subtotal:</td>
  61. <td>{{$order->total_products}}</td>
  62. </tr>
  63. <tr>
  64. <td></td>
  65. <td></td>
  66. <td></td>
  67. <td></td>
  68. <td>Discounts:</td>
  69. <td>{{$order->discounts}}</td>
  70. </tr>
  71. <tr>
  72. <td></td>
  73. <td></td>
  74. <td></td>
  75. <td></td>
  76. <td>Tax:</td>
  77. <td>{{$order->tax}}</td>
  78. </tr>
  79. <tr>
  80. <td></td>
  81. <td></td>
  82. <td></td>
  83. <td></td>
  84. <td><strong>Total:</strong></td>
  85. <td><strong>{{$order->total}}</strong></td>
  86. </tr>
  87. </tfoot>
  88. </table>
  89. </div>
  90. </section>
  91. </body>
  92. </html>