Advertisement
Guest User

Untitled

a guest
May 27th, 2015
278
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.24 KB | None | 0 0
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <style type="text/css">
  6. <!--
  7. body {font-family: sans-serif; font-size: 11pt;}
  8. .invoice_sender { position: absolute; top: 0; right: 0; width: 200px; font-size: 10pt; line-height:1.35em;}
  9. .invoice_sender em.caps { display:inline-block; width: 40px; font-style: normal; font-size: 10pt; }
  10. .invoice_recipient { position: absolute; top: 175px; left: 30px; line-height:1.35em; }
  11. .invoice_footer { position: absolute; bottom: 0; border-top: 1px solid black; line-height:1.35em; }
  12. .invoice_header { position: relative; width: 100%; }
  13. .invoice_content { margin-top: 320px }
  14. .invoice_header h2 { font-size: 24px; font-weight:bold; margin: 0; padding: 0; }
  15. .invoice_header table {
  16. line-height:1.35em;
  17. border-collapse: collapse;
  18. font-size: 10pt;
  19. }
  20. .invoice_header table.dates {
  21. right: 0; top: 0; position: absolute; width: 200px; margin: 0; padding: 0;
  22. }
  23. .invoice_header table td.dt { width: 120px; }
  24. .invoice_details table {
  25. border-collapse: collapse;
  26. clear: both;
  27. line-height:1.35em;
  28. width: 100%;
  29. margin-top: 40px;
  30. }
  31. .invoice_details td, .invoice_details th {
  32. padding: 5px 7px;
  33. border-bottom: 1px black solid;
  34. }
  35. .invoice_details th {
  36. font-weight: bold;
  37. text-align: left;
  38. }
  39. .invoice_details tr.tfoot td {
  40. border-bottom: 0;
  41. }
  42. .invoice_details tr.tfoot.total td.price, .invoice_details tr.tfoot td.total {
  43. font-weight: bold;
  44. }
  45. .invoice_details tr.tfoot.total td.price, .invoice_details tr.tfoot.total td.total {
  46. border-bottom: 1px black solid;
  47. }
  48. -->
  49. </style>
  50. </head>
  51.  
  52. <body>
  53. <div class="invoice_recipient">
  54. {{$invoice->recipient_company_name}}<br>
  55. T.a.v. {{$invoice->recipient_attention}}<br>
  56. {{$invoice->recipient_address_line1}}<br>
  57. @if ($invoice->recipient_address_line2)
  58. {{$invoice->recipient_address_line2}}<br>
  59. @endif
  60. {{$invoice->recipient_postal_code}} {{$invoice->recipient_city}}<br>
  61. @if ($invoice->recipient_country)
  62. {{$invoice->recipient_country}}<br>
  63. @endif
  64. </div>
  65.  
  66. <div class="invoice_sender">
  67. <strong>JM SportsCompany BV</strong><br>
  68. Leurikslaan 5<br>
  69. 7535DV Enschede<br>
  70. Nederland<br/>
  71. <br>
  72. <em class="caps">IBAN:</em> NL00RABO123456<br>
  73. <em class="caps">KVK:</em> 1234567<br>
  74. <em class="caps">BTW:</em> NL123456B01
  75. </div>
  76.  
  77. <div class="invoice_content">
  78. <div class="invoice_header">
  79. <h2>Factuur {{ $invoice->invoiceNumber}}</h2>
  80.  
  81. <table class="dates">
  82. <tr>
  83. <td class="dt">
  84. Factuurdatum:
  85. </td>
  86. <td>
  87. {{ $invoice->date_of_invoice->format('Y-m-d') }}
  88. </td>
  89. </tr>
  90. <tr>
  91. <td class="dt">
  92. Vervaldatum:
  93. </td>
  94. <td>
  95. {{ $invoice->due_date->format('Y-m-d') }}
  96. </td>
  97. </tr>
  98. </table>
  99.  
  100. @if($invoice->recipient_vat)
  101. <table class="metadata">
  102. <tr>
  103. <td class="dt">
  104. BTW nummer klant:
  105. </td>
  106. <td>
  107. {{$invoice->recipient_vat}}
  108. </td>
  109. </tr>
  110. </table>
  111. @endif
  112. </div>
  113.  
  114. <div class="invoice_details">
  115. <table>
  116. <thead>
  117. <tr>
  118. <th></th>
  119. <th>Omschrijving</th>
  120. <th class="price">Per stuk</th>
  121. <th class="price">Bedrag</th>
  122. </tr>
  123. </thead>
  124. <tbody>
  125. @foreach ($invoice->entries as $entry)
  126. <tr class="">
  127. <td class="amount">{{$entry->unit_amount}}x</td>
  128. <td>{{$entry->description}}</td>
  129. <td class="price">{{$moneyFormatter->format($entry->unit_price)}}</td>
  130. <td class="price">{{$moneyFormatter->format($entry->entry_total)}}</td>
  131. </tr>
  132. @endforeach
  133. <tr class="tfoot subtotal">
  134. <td class="" colspan="2"></td>
  135. <td class="total first">Subtotaal</td>
  136. <td class="price first">{{$moneyFormatter->format($invoice->subtotal)}}</td>
  137. </tr>
  138. <tr class="tfoot tax">
  139. <td class="" colspan="2"></td>
  140. <td class="total tax">{{$invoice->vat_percentage}}% BTW</td>
  141. <td class="price tax">{{$moneyFormatter->format($invoice->vat)}}</td>
  142. </tr>
  143. <tr class="tfoot total">
  144. <td class="" colspan="2"></td>
  145. <td class="total emphasize ">Totaal</td>
  146. <td class="price emphasize ">{{$moneyFormatter->format($invoice->total)}}</td>
  147. </tr>
  148. </tbody>
  149. </table>
  150. </div>
  151.  
  152. </div>
  153. <div class="invoice_footer">
  154. <p class="comments">
  155. We verzoeken je vriendelijk het bovenstaande bedrag van <strong>{{$moneyFormatter->format($invoice->total)}}</strong> voor <strong>{{$invoice->due_date->format('Y-m-d')}}</strong> te voldoen op bankrekening <strong>NL00RABO1234567</strong> onder vermelding van het factuurnummer <strong>{{$invoice->invoice_number}}</strong>. Voor vragen over deze factuur of andere zaken kan je ons altijd bellen of mailen.
  156. </p>
  157. </div>
  158. </body>
  159. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement