Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!doctype html>
- <html lang="bg">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport"
- content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
- <meta http-equiv="X-UA-Compatible" content="ie=edge">
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
- <title>Invoice {{ $invoice->getNumberPadded() }}</title>
- <style type="text/css" media="all">
- * {
- font-size: 12px;
- }
- .row {
- width: 100%;
- }
- .row:after {
- clear: both;
- }
- .col-md-6 {
- width: 50%;
- float: left;
- }
- .text-upper {
- text-transform: uppercase;
- }
- .highlight {
- color: #000000 !important;
- font-weight: bold;
- display: inline-block;
- margin-top: 2px;
- padding: 3px 6px;
- background: #e5e5e5;
- }
- .highlight-date {
- color: #000000 !important;
- font-weight: bold;
- display: inline-block;
- margin-top: 10px;
- padding: 3px;
- background: #e5e5e5;
- text-transform: uppercase;
- }
- .table-title {
- color: #000000 !important;
- font-weight: bold;
- margin-top: 2px;
- padding: 3px 6px;
- /*background: #cccccc;*/
- }
- h2 {
- text-transform: uppercase;
- font-weight: normal;
- },
- .item {
- border-bottom: 1px dashed #cccccc;
- }
- </style>
- </head>
- <body>
- <div class="row">
- <div class="col-md-6">
- @if(strpos($invoice->domain, 'buybest.bg') !== false)
- <img src="{{ public_path('assets/images/buybest.svg') }}" alt="Logo" border="0" style="max-width: 120px;">
- @else
- <img src="{{ public_path('assets/images/allgsm.jpg') }}" alt="Logo" border="0" style="max-width: 120px;">
- @endif
- </div>
- </div>
- <div class="row">
- <div class="col-md-6">
- <h3 style="width: 330px;" class="highlight text-upper">Получател</h3>
- <strong style="margin: 15px 0;">{{ $invoice->client_company_name }}</strong> <br>
- {{ $invoice->client_address }} <br>
- <strong style="margin: 15px 0;">
- ЕИК/Булстат:
- </strong>
- {{ $invoice->client_uic }}
- <br>
- <strong>МОЛ:</strong><span>{{ $invoice->client_mol }}</span>
- </div>
- <div class="col-md-6">
- <h3 style="width: 330px;" class="highlight text-upper">Доставчик</h3>
- <strong style="margin: 15px 0;">{{ $invoice->company_name }}</strong> <br>
- {{ $invoice->company_address }} <br>
- <strong style="margin: 15px 0;">
- ЕИК/Булстат:
- </strong>
- {{ $invoice->company_uic }}
- <br>
- <strong style="margin: 15px 0;">МОЛ:</strong><span>{{ $invoice->company_mol }}</span>
- </div>
- </div>
- <div class="row" style="margin-bottom: 10px;">
- <h2 style="width:400px; font-size: 22px; margin-bottom: 5px;"><strong style="font-size: 22px;">Фактура №</strong> {{ $invoice->getNumberPadded() }}</h2>
- <div style="width: 100%; font-size: 22px; text-align: right; text-transform: uppercase;">
- <strong style="font-size: 22px;">Оригинал</strong>
- </div>
- <div class="invoiceTemplateOFVisible" style="clear: both;">
- <div style="float: left;">
- <span>Дата на издаване:</span>
- <span class="highlight-date">{{ $invoice->date->format('d.m.Y') }}</span>
- </div>
- <div style="float: right;">
- <span>Дата на данъчно събитие:</span>
- <span class="highlight-date">{{ $invoice->date->format('d.m.Y') }}</span>
- </div>
- </div>
- </div>
- <div class="row" style="padding: 3px 6px; background-color: #cccccc;">
- <div style="width: 50%; float: left;">
- <strong class="table-title">Наименование на продукта</strong>
- </div>
- <div style="width: 16.66%; float: left; text-align: right;">
- <strong class="table-title">Количество</strong>
- </div>
- <div style="width: 16.66%; float: left; text-align: right;">
- <strong class="table-title">Ед. цена</strong>
- </div>
- <div style="width: 16.66%; float: left; text-align: right;">
- <strong class="table-title">Стойност</strong>
- </div>
- </div>
- @foreach($invoice->products as $product)
- <div class="row item">
- <div style="width: 50%; float: left;">
- {{ $product->name }}
- </div>
- <div style="width: 16.66%; float: left; text-align: right;">
- {{ $product->quantity }}
- </div>
- <div style="width: 16.66%; float: left; text-align: right;">
- {{ $product->getPrice() }} лв.
- </div>
- <div style="width: 16.66%; float: left; text-align: right;">
- {{ $product->getTotal() }} лв.
- </div>
- </div>
- @endforeach
- <div class="row" style="margin-top: 20px;">
- <div class="col-md-6">
- <div style="margin-bottom: 10px;">
- Словом: <br>
- <span class="highlight">{{ number2lv($invoice->price) }}</span>
- </div>
- <div>
- Метод на плащане: <br>
- <span class="highlight">{{ trans('warehouse::admin.'.$invoice->payment_method) }}</span>
- </div>
- @if($invoice->payment_method == 'bank_transfer')
- <br>
- <strong style="margin: 30px 0;">
- Банка:
- </strong>
- {{ $invoice->bank_name }}
- <br>
- <strong style="margin: 30px 0;">
- IBAN:
- </strong>
- {{ $invoice->iban }}
- <br>
- <strong style="margin: 30px 0;">
- BIC:
- </strong>
- {{ $invoice->bic }}
- @endif
- </div>
- <div class="col-md-6">
- <div class="row">
- <div style="width: 65%; float: left; padding-right: 20px; text-align: right;">
- Данъчна основа:
- </div>
- <div style="width: 30%; float: right;">
- <div style="text-align: right; background-color: #e5e5e5; padding: 3px 6px;">
- <span style="color: #000000;">{{ $invoice->tax_base }} лв.</span>
- </div>
- </div>
- <br>
- <br>
- <div style="width: 65%; float: left; padding-right: 20px; text-align: right;">
- ДДС Ставка:
- </div>
- <div style="width: 30%; float: right;">
- <div style="text-align: right; background-color: #e5e5e5; padding: 3px 6px;">
- <span style="color: #000000;">{{ number_format(round($invoice->vat_percent), 0) }}%</span>
- </div>
- </div>
- <br>
- <br>
- <div style="width: 65%; float: left; padding-right: 20px; text-align: right;">
- Начислен ДДС:
- </div>
- <div style="width: 30%; float: right;">
- <div style="text-align: right; background-color: #e5e5e5; padding: 3px 6px;">
- <span style="color: #000000;">{{ $invoice->vat_price }} лв.</span>
- </div>
- </div>
- <br>
- <br>
- <div style="width: 65%; float: left; padding-right: 20px; text-align: right;">
- Всичко:
- </div>
- <div style="width: 30%; float: right;">
- <div style="text-align: right; background-color: #000000; padding: 3px 6px;">
- <span style="color: white;">{{ $invoice->price }} лв.</span>
- </div>
- </div>
- <br>
- <br>
- </div>
- </div>
- </div>
- <br>
- <br>
- @if(!$invoice->company_vat)
- <span>Основание за неначисляване на ДДС: чл. 113, ал. 9 от ЗДДС лицето не е регистрирано по ЗДДС</span>
- <br>
- <br>
- @endif
- <br>
- <br>
- <div class="row">
- <div class="col-md-6">
- Получател: <strong>{{ $invoice->client_mol }}</strong>
- </div>
- <div class="col-md-6">
- Съставил: <strong>{{ $invoice->company_mol }}</strong>
- </div>
- </div>
- </body>
- </html>
Add Comment
Please, Sign In to add comment