Guest User

Untitled

a guest
Sep 1st, 2020
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 9.01 KB | None | 0 0
  1. <!doctype html>
  2. <html lang="bg">
  3. <head>
  4.     <meta charset="UTF-8">
  5.     <meta name="viewport"
  6.          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
  7.     <meta http-equiv="X-UA-Compatible" content="ie=edge">
  8.     <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  9.     <title>Invoice {{ $invoice->getNumberPadded() }}</title>
  10.     <style type="text/css" media="all">
  11.         * {
  12.             font-size: 12px;
  13.         }
  14.         .row {
  15.             width: 100%;
  16.         }
  17.         .row:after {
  18.             clear: both;
  19.         }
  20.         .col-md-6 {
  21.             width: 50%;
  22.             float: left;
  23.         }
  24.         .text-upper {
  25.             text-transform: uppercase;
  26.         }
  27.         .highlight {
  28.             color: #000000 !important;
  29.             font-weight: bold;
  30.             display: inline-block;
  31.             margin-top: 2px;
  32.             padding: 3px 6px;
  33.             background: #e5e5e5;
  34.         }
  35.         .highlight-date {
  36.             color: #000000 !important;
  37.             font-weight: bold;
  38.             display: inline-block;
  39.             margin-top: 10px;
  40.             padding: 3px;
  41.             background: #e5e5e5;
  42.             text-transform: uppercase;
  43.         }
  44.         .table-title {
  45.             color: #000000 !important;
  46.             font-weight: bold;
  47.             margin-top: 2px;
  48.             padding: 3px 6px;
  49.             /*background: #cccccc;*/
  50.         }
  51.         h2 {
  52.             text-transform: uppercase;
  53.             font-weight: normal;
  54.         },
  55.         .item {
  56.             border-bottom: 1px dashed #cccccc;
  57.         }
  58.     </style>
  59. </head>
  60. <body>
  61. <div class="row">
  62.     <div class="col-md-6">
  63.         @if(strpos($invoice->domain, 'buybest.bg') !== false)
  64.             <img src="{{ public_path('assets/images/buybest.svg') }}" alt="Logo" border="0" style="max-width: 120px;">
  65.         @else
  66.             <img src="{{ public_path('assets/images/allgsm.jpg') }}" alt="Logo" border="0" style="max-width: 120px;">
  67.         @endif
  68.     </div>
  69. </div>
  70. <div class="row">
  71.     <div class="col-md-6">
  72.         <h3 style="width: 330px;" class="highlight text-upper">Получател</h3>
  73.         <strong style="margin: 15px 0;">{{ $invoice->client_company_name }}</strong> <br>
  74.         {{ $invoice->client_address }} <br>
  75.         <strong style="margin: 15px 0;">
  76.             ЕИК/Булстат:
  77.         </strong>
  78.         {{ $invoice->client_uic }}
  79.         <br>
  80.         <strong>МОЛ:</strong><span>{{ $invoice->client_mol }}</span>
  81.     </div>
  82.     <div class="col-md-6">
  83.         <h3 style="width: 330px;" class="highlight text-upper">Доставчик</h3>
  84.         <strong style="margin: 15px 0;">{{ $invoice->company_name }}</strong> <br>
  85.         {{ $invoice->company_address }} <br>
  86.         <strong style="margin: 15px 0;">
  87.             ЕИК/Булстат:
  88.         </strong>
  89.         {{ $invoice->company_uic }}
  90.         <br>
  91.         <strong style="margin: 15px 0;">МОЛ:</strong><span>{{ $invoice->company_mol }}</span>
  92.     </div>
  93. </div>
  94.     <div class="row" style="margin-bottom: 10px;">
  95.         <h2 style="width:400px; font-size: 22px; margin-bottom: 5px;"><strong style="font-size: 22px;">Фактура №</strong> {{ $invoice->getNumberPadded() }}</h2>
  96.         <div style="width: 100%; font-size: 22px; text-align: right; text-transform: uppercase;">
  97.             <strong style="font-size: 22px;">Оригинал</strong>
  98.         </div>
  99.         <div class="invoiceTemplateOFVisible" style="clear: both;">
  100.             <div style="float: left;">
  101.                 <span>Дата на издаване:</span>
  102.                 <span class="highlight-date">{{ $invoice->date->format('d.m.Y') }}</span>
  103.             </div>
  104.             <div style="float: right;">
  105.                 <span>Дата на данъчно събитие:</span>
  106.                 <span class="highlight-date">{{ $invoice->date->format('d.m.Y') }}</span>
  107.             </div>
  108.         </div>
  109.     </div>
  110.  
  111.     <div class="row" style="padding: 3px 6px; background-color: #cccccc;">
  112.         <div style="width: 50%; float: left;">
  113.             <strong class="table-title">Наименование на продукта</strong>
  114.         </div>
  115.         <div style="width: 16.66%; float: left; text-align: right;">
  116.             <strong class="table-title">Количество</strong>
  117.         </div>
  118.         <div style="width: 16.66%; float: left; text-align: right;">
  119.             <strong class="table-title">Ед. цена</strong>
  120.         </div>
  121.         <div style="width: 16.66%; float: left; text-align: right;">
  122.             <strong class="table-title">Стойност</strong>
  123.         </div>
  124.     </div>
  125.     @foreach($invoice->products as $product)
  126.         <div class="row item">
  127.             <div style="width: 50%; float: left;">
  128.                 {{ $product->name }}
  129.             </div>
  130.             <div style="width: 16.66%; float: left; text-align: right;">
  131.                 {{ $product->quantity }}
  132.             </div>
  133.             <div style="width: 16.66%; float: left; text-align: right;">
  134.                 {{ $product->getPrice() }} лв.
  135.             </div>
  136.             <div style="width: 16.66%; float: left; text-align: right;">
  137.                 {{ $product->getTotal() }} лв.
  138.             </div>
  139.         </div>
  140.     @endforeach
  141.  
  142.     <div class="row" style="margin-top: 20px;">
  143.         <div class="col-md-6">
  144.            <div style="margin-bottom: 10px;">
  145.                Словом: <br>
  146.                <span class="highlight">{{ number2lv($invoice->price) }}</span>
  147.            </div>
  148.             <div>
  149.                 Метод на плащане: <br>
  150.                 <span class="highlight">{{ trans('warehouse::admin.'.$invoice->payment_method) }}</span>
  151.             </div>
  152.             @if($invoice->payment_method == 'bank_transfer')
  153.                 <br>
  154.                 <strong style="margin: 30px 0;">
  155.                     Банка:
  156.                 </strong>
  157.                 {{ $invoice->bank_name }}
  158.                 <br>
  159.                 <strong style="margin: 30px 0;">
  160.                     IBAN:
  161.                 </strong>
  162.                 {{ $invoice->iban }}
  163.                 <br>
  164.                 <strong style="margin: 30px 0;">
  165.                     BIC:
  166.                 </strong>
  167.                 {{ $invoice->bic }}
  168.             @endif
  169.         </div>
  170.         <div class="col-md-6">
  171.             <div class="row">
  172.                 <div style="width: 65%; float: left; padding-right: 20px; text-align: right;">
  173.                     Данъчна основа:
  174.                 </div>
  175.                 <div style="width: 30%; float: right;">
  176.                     <div style="text-align: right; background-color: #e5e5e5; padding: 3px 6px;">
  177.                         <span style="color: #000000;">{{ $invoice->tax_base }} лв.</span>
  178.                     </div>
  179.                 </div>
  180.                 <br>
  181.                 <br>
  182.                 <div style="width: 65%; float: left; padding-right: 20px; text-align: right;">
  183.                     ДДС Ставка:
  184.                 </div>
  185.                 <div style="width: 30%; float: right;">
  186.                     <div style="text-align: right; background-color: #e5e5e5; padding: 3px 6px;">
  187.                         <span style="color: #000000;">{{ number_format(round($invoice->vat_percent), 0) }}%</span>
  188.                     </div>
  189.                 </div>
  190.                 <br>
  191.                 <br>
  192.                 <div style="width: 65%; float: left; padding-right: 20px; text-align: right;">
  193.                     Начислен ДДС:
  194.                 </div>
  195.                 <div style="width: 30%; float: right;">
  196.                     <div style="text-align: right; background-color: #e5e5e5; padding: 3px 6px;">
  197.                         <span style="color: #000000;">{{ $invoice->vat_price }} лв.</span>
  198.                     </div>
  199.                 </div>
  200.                 <br>
  201.                 <br>
  202.                 <div style="width: 65%; float: left; padding-right: 20px; text-align: right;">
  203.                     Всичко:
  204.                 </div>
  205.                 <div style="width: 30%; float: right;">
  206.                     <div style="text-align: right; background-color: #000000; padding: 3px 6px;">
  207.                         <span style="color: white;">{{ $invoice->price }} лв.</span>
  208.                     </div>
  209.                 </div>
  210.                 <br>
  211.                 <br>
  212.             </div>
  213.         </div>
  214.     </div>
  215.  
  216. <br>
  217. <br>
  218.     @if(!$invoice->company_vat)
  219.         <span>Основание за неначисляване на ДДС: чл. 113, ал. 9 от ЗДДС лицето не е регистрирано по ЗДДС</span>
  220.         <br>
  221.         <br>
  222.     @endif
  223. <br>
  224. <br>
  225.     <div class="row">
  226.         <div class="col-md-6">
  227.             Получател: <strong>{{ $invoice->client_mol }}</strong>
  228.         </div>
  229.         <div class="col-md-6">
  230.             Съставил: <strong>{{ $invoice->company_mol }}</strong>
  231.         </div>
  232.     </div>
  233. </body>
  234. </html>
Add Comment
Please, Sign In to add comment