Maxlego08

Untitled

Feb 4th, 2021
1,357
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 12.01 KB | None | 0 0
  1. @extends('pdf.quote_web')
  2.  
  3. @section('css')
  4.     <style type="text/css">
  5.  
  6.         @page {
  7.             margin: 0;
  8.             padding: 0;
  9.         }
  10.  
  11.         html body {
  12.             font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, Sans-serif;
  13.             background: white;
  14.             width: 100%;
  15.             max-width: 820px;
  16.  
  17.             margin: 105px auto 30px auto;
  18.  
  19.             -moz-box-shadow: 0px 0px 20px rgba(80, 80, 80, 0.7);
  20.             -webkit-box-shadow: 0px 0px 20px rgb(80 80 80 / 70%);
  21.             box-shadow: 0px 0px 20px rgb(80 80 80 / 70%);
  22.         }
  23.  
  24.         .quote {
  25.             width: 100%;
  26.  
  27.             min-height: 1120px;
  28.  
  29.             font: normal 13px/1.4em 'Open Sans', Sans-serif;
  30.             margin: 0 auto;
  31.             background: #F7EDEB url('{{ asset('images/invoice/bg.png') }}') 0 0 no-repeat;
  32.             background-size: 100% auto;
  33.             color: #5B6165;
  34.             position: relative;
  35.         }
  36.  
  37.         #memo {
  38.             padding-top: 50px;
  39.             margin: 0 110px 0 60px;
  40.             border-bottom: 1px solid #ddd;
  41.             height: 115px;
  42.         }
  43.  
  44.         #memo .logo {
  45.             float: left;
  46.             margin-right: 20px;
  47.         }
  48.  
  49.         #memo .logo img {
  50.             width: 300px;
  51.         }
  52.  
  53.         #memo .company-info {
  54.             float: right;
  55.             text-align: right;
  56.         }
  57.  
  58.         #memo .company-info > div:first-child {
  59.             line-height: 1em;
  60.             font-weight: bold;
  61.             font-size: 22px;
  62.             color: #B32C39;
  63.         }
  64.  
  65.         #memo .company-info span {
  66.             font-size: 11px;
  67.             display: inline-block;
  68.             min-width: 20px;
  69.         }
  70.  
  71.         #memo:after {
  72.             content: '';
  73.             display: block;
  74.             clear: both;
  75.         }
  76.  
  77.         #invoice-title-number {
  78.             font-weight: bold;
  79.             margin: 30px 0;
  80.         }
  81.  
  82.         #invoice-title-number span {
  83.             line-height: 0.88em;
  84.             display: inline-block;
  85.             min-width: 20px;
  86.         }
  87.  
  88.         #invoice-title-number #title {
  89.             text-transform: uppercase;
  90.             padding: 0px 2px 0px 60px;
  91.             font-size: 50px;
  92.             background: #F4846F;
  93.             color: white;
  94.         }
  95.  
  96.         #invoice-title-number #number {
  97.             margin-left: 10px;
  98.             font-size: 35px;
  99.             position: relative;
  100.             top: -5px;
  101.         }
  102.  
  103.         #client-info {
  104.             float: left;
  105.             margin-left: 60px;
  106.             min-width: 220px;
  107.             margin-bottom: 30px;
  108.         }
  109.  
  110.         #client-info > div {
  111.             margin-bottom: 3px;
  112.             min-width: 20px;
  113.         }
  114.  
  115.         #client-info span {
  116.             display: block;
  117.             min-width: 20px;
  118.         }
  119.  
  120.         #client-info > span {
  121.             font-size: 1.35em;
  122.             text-transform: uppercase;
  123.             margin-bottom: 5px;
  124.             text-decoration: underline;
  125.         }
  126.  
  127.         b, strong, .bold {
  128.             font-weight: bold;
  129.         }
  130.  
  131.         table {
  132.             table-layout: fixed;
  133.         }
  134.  
  135.         table th, table td {
  136.             vertical-align: top;
  137.             word-break: keep-all;
  138.             word-wrap: break-word;
  139.         }
  140.  
  141.         #items {
  142.             margin: 35px 30px 0 30px;
  143.             min-height: 460px;
  144.         }
  145.  
  146.         #items .first-cell, #items table th:first-child, #items table td:first-child {
  147.             width: 40px !important;
  148.             padding-left: 0 !important;
  149.             padding-right: 0 !important;
  150.             text-align: right;
  151.         }
  152.  
  153.         #items table {
  154.             border-collapse: separate;
  155.             width: 100%;
  156.         }
  157.  
  158.         #items table th {
  159.             font-weight: bold;
  160.             padding: 5px 8px;
  161.             text-align: right;
  162.             background: #B32C39;
  163.             color: white;
  164.             text-transform: uppercase;
  165.         }
  166.  
  167.         #items table th:nth-child(2) {
  168.             width: 30%;
  169.             text-align: left;
  170.         }
  171.  
  172.         #items table th:last-child {
  173.             text-align: right;
  174.         }
  175.  
  176.         #items table td {
  177.             padding: 9px 8px;
  178.             text-align: right;
  179.             border-bottom: 1px solid #ddd;
  180.         }
  181.  
  182.         #items table td:nth-child(2) {
  183.             text-align: left;
  184.         }
  185.  
  186.         .item-column {
  187.             display: flex;
  188.             flex-direction: column;
  189.         }
  190.  
  191.         #sums {
  192.             margin: 25px 30px 0 0;
  193.             display: flow-root;
  194.             background: url({{ asset('images/invoice/total-stripe-firebrick.png') }}) right bottom no-repeat;
  195.         }
  196.  
  197.         #sums table {
  198.             float: right;
  199.         }
  200.  
  201.         #sums table tr th, #sums table tr td {
  202.             min-width: 100px;
  203.             padding: 9px 8px;
  204.             text-align: right;
  205.         }
  206.  
  207.         #sums table tr th {
  208.             font-weight: bold;
  209.             text-align: left;
  210.             padding-right: 35px;
  211.         }
  212.  
  213.         #sums table tr td.last {
  214.             min-width: 0 !important;
  215.             max-width: 0 !important;
  216.             width: 0 !important;
  217.             padding: 0 !important;
  218.             border: none !important;
  219.         }
  220.  
  221.         #sums table tr.amount-total th {
  222.             text-transform: uppercase;
  223.         }
  224.  
  225.         #sums table tr.amount-total th, #sums table tr.amount-total td {
  226.             font-size: 15px;
  227.             font-weight: bold;
  228.         }
  229.  
  230.         #sums table tr:last-child th {
  231.             text-transform: uppercase;
  232.         }
  233.  
  234.         #sums table tr:last-child th, #sums table tr:last-child td {
  235.             font-size: 15px;
  236.             font-weight: bold;
  237.             color: white;
  238.         }
  239.  
  240.         #tva {
  241.             margin: 5px 30px 0 5px;
  242.             display: flex;
  243.             flex-direction: row;
  244.         }
  245.  
  246.         #tva div {
  247.             display: flex;
  248.             flex-direction: column;
  249.             width: 100%;
  250.         }
  251.  
  252.         #tva div ul {
  253.             list-style-type: square;
  254.             margin: 5px 0 0 0;
  255.             padding-inline-start: 25px;
  256.         }
  257.  
  258.         #tva .art {
  259.             text-align: right;
  260.             margin-right: 10px;
  261.             width: 100%;
  262.         }
  263.  
  264.         #invoice-info {
  265.             float: left;
  266.             margin: 20px 40px 0 30px;
  267.         }
  268.  
  269.         #invoice-info > div > span {
  270.             display: inline-block;
  271.             min-width: 20px;
  272.             min-height: 18px;
  273.             margin-bottom: 3px;
  274.         }
  275.  
  276.         #invoice-info > div > span:first-child {
  277.             color: black;
  278.         }
  279.  
  280.         #invoice-info > div > span:last-child {
  281.             color: #aaa;
  282.         }
  283.  
  284.         #invoice-info:after {
  285.             content: '';
  286.             display: block;
  287.             clear: both;
  288.         }
  289.  
  290.         #terms {
  291.             float: left;
  292.             margin-top: 50px;
  293.         }
  294.  
  295.         #terms .notes {
  296.             min-height: 30px;
  297.             min-width: 50px;
  298.             font-weight: bold;
  299.         }
  300.  
  301.         #terms .payment-info {
  302.             margin-bottom: 3px;
  303.             min-width: 20px;
  304.             display: block;
  305.             width: 350px;
  306.             height: 130px;
  307.             box-shadow: 0px 0px 20px rgb(80 80 80 / 70%);
  308.             background: #f1f1f1;
  309.             border-radius: 10px;
  310.             padding: 10px 20px;
  311.         }
  312.  
  313.         #terms .payment-info .top {
  314.             height: 115px;
  315.         }
  316.  
  317.         /**
  318.         * If the printed invoice is not looking as expected you may tune up
  319.         * the print styles (you can use !important to override styles)
  320.         */
  321.         @media print {
  322.             /* Here goes your print styles */
  323.             .quote {
  324.  
  325.  
  326.             }
  327.  
  328.             html body {
  329.                 -webkit-print-color-adjust: exact !important;
  330.                 margin: 0;
  331.             }
  332.  
  333.         }
  334.  
  335.     </style>
  336. @endsection
  337.  
  338.  
  339. @section('content')
  340.     <section class="quote">
  341.  
  342.         <section id="memo">
  343.             <div class="logo">
  344.                 <img src="{{ asset('images/groupez.png') }}"/>
  345.             </div>
  346.  
  347.             <div class="company-info">
  348.                 <div>GroupeZ</div>
  349.  
  350.                 <br/>
  351.  
  352.                 <span>******</span>
  353.                 <span>*************</span>
  354.  
  355.                 <br/>
  356.  
  357.                 <span>* |</span>***************
  358.                 <span> https://groupez.xyz | [email protected]</span>
  359.             </div>
  360.  
  361.         </section>
  362.  
  363.         <section id="invoice-title-number">
  364.  
  365.             <span id="title">DEVIS</span>
  366.             <span id="number">#{{ sprintf("%'.05d\n", $quote->id) }}</span>
  367.  
  368.         </section>
  369.  
  370.         <section id="client-info">
  371.             <span>FACTURE POUR:</span>
  372.             <div>
  373.                 <span class="bold">{{ $customer->getFullName() }}</span>
  374.             </div>
  375.  
  376.             <div>
  377.                 <span>{{ $customer->address }}</span>
  378.             </div>
  379.  
  380.             <div>
  381.                 <span>{{ $customer->postal_code }} {{ $customer->city }} - {{ $customer->country }}</span>
  382.             </div>
  383.  
  384.             <div>
  385.                 <span>{{ $customer->phone }}</span>
  386.             </div>
  387.  
  388.             <div>
  389.                 <span>{{ $user->email }}</span>
  390.             </div>
  391.         </section>
  392.  
  393.         <section id="items">
  394.  
  395.             <table cellpadding="0" cellspacing="0">
  396.  
  397.                 <tr>
  398.                     <th style="width: 10px;"></th> <!-- Dummy cell for the row number and row commands -->
  399.                     <th>Article</th>
  400.                     <th style="width: 20px;">Heure</th>
  401.                     <th style="width: 50px;">Taux Horaire</th>
  402.                     <th style="width: 20px;">total</th>
  403.                 </tr>
  404.  
  405.                 @foreach($quote->contents as $content)
  406.                     <tr data-iterate="item">
  407.                         <td>{{ $content->id }}</td>
  408.                         <td class="item-column">
  409.                             <span>{{ $content->title }}</span>
  410.                             <small>{{ $content->description }}</small>
  411.                         </td>
  412.                         <td>{{ $content->hour }}</td>
  413.                         <td>{{ $content->rate }}€</td>
  414.                         <td>{{ $content->price }}€</td>
  415.                     </tr>
  416.                 @endforeach
  417.  
  418.             </table>
  419.  
  420.         </section>
  421.  
  422.         <section id="sums">
  423.  
  424.             <table cellpadding="0" cellspacing="0">
  425.  
  426.                 <tr class="amount-total">
  427.                     <th>total:</th>
  428.                     <td>{{ $quote->getPrice() }}€</td>
  429.                 </tr>
  430.  
  431.                 <tr>
  432.                     <th>montant dû:</th>
  433.                     <td>{{ $quote->getPrice() }}€</td>
  434.                 </tr>
  435.  
  436.             </table>
  437.  
  438.             <div class="clearfix"></div>
  439.  
  440.         </section>
  441.  
  442.         <section id="tva">
  443.             <span class="art">TVA non applicable, art, 293B du CGI</span>
  444.         </section>
  445.  
  446.         <section id="invoice-info">
  447.             <div>
  448.                 <span>Date de création:</span> <span>{{ format_date($quote->created_at, true, 'fr_FR') }}</span>
  449.             </div>
  450.             <div>
  451.                 <span>Valable jusqu'au:</span>
  452.                 <span>{{ format_date(new \Carbon\Carbon($quote->delivery_at), true, 'fr_FR') }}</span>
  453.             </div>
  454.  
  455.             <div>
  456.                 <span>Monnaie:</span> <span>EUR</span>
  457.             </div>
  458.             <div>
  459.                 <span>IBAN:</span> <span>FR76 1020 6082 0198 7619 7716 443</span>
  460.             </div>
  461.         </section>
  462.  
  463.         <section id="terms">
  464.  
  465.             <div class="notes">Pour le client</div>
  466.             <div class="payment-info">
  467.                 <div class="top">
  468.                     Mention "Bon pour accord", date et signature
  469.                 </div>
  470.                 <div class="bottom">
  471.                     ..... / ..... / ..........
  472.                 </div>
  473.             </div>
  474.  
  475.         </section>
  476.  
  477.     </section>
  478. @endsection
  479.  
Advertisement
Add Comment
Please, Sign In to add comment