Advertisement
Guest User

Untitled

a guest
Sep 18th, 2020
24
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.27 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5.  
  6. <title>Invoice</title>
  7.  
  8. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  9. <link href="{{ asset('themes/bootstrap/css/poppins.css') }}" rel="stylesheet">
  10. <style>
  11. body {
  12. background: rgba(249, 246, 244, 0.42);
  13. font-family: 'Poppins-Regular';
  14. }
  15.  
  16. .title-head {
  17. font-size: 13px;
  18. color: #EFBFBF;
  19. }
  20.  
  21. .title {
  22. font-family: 'Poppins-SemiBold' !important;
  23. font-style: normal;
  24. font-size: 17px;
  25. line-height: 100%;
  26. color: #EFBFBF;
  27. }
  28.  
  29. .table th {
  30. font-family: 'Poppins-SemiBold' !important;
  31. font-style: normal;
  32. font-size: 18px;
  33. line-height: 100%;
  34. text-align: center;
  35. color: #EFBFBF;
  36. }
  37.  
  38. .container {
  39. margin-left: 50px;
  40. padding-top:30px;
  41. }
  42.  
  43. .header {
  44. font-family: 'Poppins-SemiBold' !important;
  45. font-style: normal;
  46. font-size: 36px;
  47. line-height: 100%;
  48. color: #3A3A3A;
  49. }
  50.  
  51. .plan {
  52. font-weight: 400;
  53. color: #3A3A3A;
  54. }
  55.  
  56. .info {
  57. position: absolute;
  58. left: 60%;
  59. right: 6.72%;
  60. top: 13%;
  61. }
  62.  
  63. .value {
  64. display: flex;
  65. flex-wrap: nowrap;
  66. height: 20px;
  67. font-size: 13px;
  68. color: #3A3A3A;
  69. }
  70.  
  71. .first-variables {
  72. margin-top: 70px;
  73. }
  74.  
  75. .params {
  76. font-size: 13px;
  77. width: 110px;
  78. word-wrap: break-word;
  79. margin-left: 100px;
  80. margin-top: -28px;
  81. color: #3A3A3A;
  82. }
  83.  
  84. .variable {
  85. margin-bottom: -20px;
  86. }
  87.  
  88. .second-variables {
  89. position: absolute;
  90. left: 60%;
  91. right: 6.72%;
  92. top: 30.40%;
  93. }
  94.  
  95. .table th {
  96. vertical-align: bottom;
  97. font-weight: bold;
  98. padding: 8px;
  99. line-height: 20px;
  100. text-align: left;
  101. }
  102.  
  103. .table td, .table th {
  104. font-size: 14px;
  105. font-style: normal;
  106. font-weight: normal;
  107. line-height: 100%;
  108. color: #3A3A3A;
  109. padding: 8px;
  110. line-height: 20px;
  111. text-align: left;
  112. vertical-align: top;
  113. border-bottom: 1px solid #F9EBEA;
  114. border-bottom-width: 7%;
  115. height: 4%;
  116. }
  117.  
  118. .table {
  119. width: 100%;
  120. margin-top: 80px;
  121. margin-left: -10px;
  122. /*margin-bottom: 45px;*/
  123. }
  124.  
  125. .total {
  126. margin-left: 450px;
  127. }
  128.  
  129. .final td {
  130. border-bottom: 1px solid rgba(249, 246, 244, 0.42) !important;
  131. }
  132.  
  133. .final td:nth-child(2) {
  134. text-align: right;
  135. }
  136. </style>
  137. </head>
  138. <body>
  139. <div class="container" style="margin-top: -40px;">
  140. <span class="header">invoice</span><br>
  141. <span class="plan">Plan: {{ auth()->user()->getProduct($invoice->subscription)->name }}</span>
  142. <div class="info">
  143. <span class="title-head">number</span>
  144. <span class="value">Invoice {{ $invoice->number }}</span>
  145. <span class="title-head">date</span>
  146. <span class="value">{{ $invoice->date()->toFormattedDateString() }}</span>
  147. </div>
  148. @if(isset($to))
  149. <div class="first-variables">
  150. <div class="variable">
  151. <span class="title">
  152. to
  153. </span>
  154. </div>
  155. <div class="params">
  156. {!! $to->value !!}
  157. </div>
  158. </div>
  159. @endif
  160. <div class="@if(!isset($to)) first-variables @else second-variables @endif">
  161. <div class="variable">
  162. <span class="title">
  163. from
  164. </span>
  165. </div>
  166. <div class="params">
  167. {{ setting('billing.invoice.from')['invoice'] }}
  168. </div>
  169. </div>
  170. <!-- Invoice Table -->
  171. <table class="table" border="0">
  172. <tr>
  173. <th align="left">
  174. <span class="title">description</span>
  175. </th>
  176. <th align="right">
  177. <span class="title">date</span>
  178. </th>
  179. <th align="right">
  180. <span class="title">amount</span>
  181. </th>
  182. </tr>
  183.  
  184. <!-- Existing Balance -->
  185. <tr>
  186. <td>Starting Balance</td>
  187. <td>&nbsp;</td>
  188. <td>{{ $invoice->startingBalance() }}</td>
  189. </tr>
  190.  
  191. <!-- Display The Invoice Items -->
  192. @foreach ($invoice->invoiceItems() as $item)
  193. <tr>
  194. <td colspan="2">{{ $item->description }}</td>
  195. <td>{{ $item->total() }}</td>
  196. </tr>
  197. @endforeach
  198.  
  199. <!-- Display The Subscriptions -->
  200. @foreach ($invoice->subscriptions() as $subscription)
  201. <tr>
  202. <td>Subscription ({{ $subscription->quantity }})</td>
  203. <td>
  204. {{ $subscription->startDateAsCarbon()->formatLocalized('%B %e, %Y') }} -
  205. {{ $subscription->endDateAsCarbon()->formatLocalized('%B %e, %Y') }}
  206. </td>
  207. <td>{{ $subscription->total() }}</td>
  208. </tr>
  209. @endforeach
  210.  
  211. <!-- Display The Discount -->
  212. @if ($invoice->hasDiscount())
  213. <tr>
  214. @if ($invoice->discountIsPercentage())
  215. <td>{{ $invoice->coupon() }} ({{ $invoice->percentOff() }}% Off)</td>
  216. @else
  217. <td>{{ $invoice->coupon() }} ({{ $invoice->amountOff() }} Off)</td>
  218. @endif
  219. <td>&nbsp;</td>
  220. <td>-{{ $invoice->discount() }}</td>
  221. </tr>
  222. @endif
  223.  
  224. <!-- Display The Tax Amount -->
  225. @if ($invoice->tax_percent)
  226. <tr>
  227. <td>Tax ({{ $invoice->tax_percent }}%)</td>
  228. <td>&nbsp;</td>
  229. <td>{{ Laravel\Cashier\Cashier::formatAmount($invoice->tax) }}</td>
  230. </tr>
  231. @endif
  232.  
  233. <!-- Display The Final Total -->
  234. <tr class="final">
  235. <td>&nbsp;</td>
  236. <td style="margin-top: 5px !important;">
  237. <span class="title">
  238. total
  239. </span>
  240. </td>
  241. <td>
  242. <span style="font-family: 'Poppins-Bold' !important;">
  243. {{ $invoice->total() }}
  244. </span>
  245. </td>
  246. </tr>
  247. </table>
  248. </div>
  249. </body>
  250. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement