Получател |
Оригинал |
Доставчик |
{{$document->creation_type==1 ? ($document->documentable_type=='App\Models\Obect' ? $document->documentable->client->name : $document->documentable->name) : $document->storage->company_name}} |
{{$document->creation_type==1 ? $document->storage->company_name : ($document->documentable_type=='App\Models\Obect' ? $document->documentable->client->name : $document->documentable->name)}} |
N на документ: |
{{$document->number}} |
Адрес: |
{{$document->creation_type==1 ? ($document->documentable_type=='App\Models\Obect' ? $document->documentable->client->address : $document->documentable->address) : $document->storage->address }} |
|
Адрес: |
{{$document->creation_type==1 ? $document->storage->address : ($document->documentable_type=='App\Models\Obect' ? $document->documentable->client->address : $document->documentable->address)}} |
|
|
Дата |
{{date('d.m.Y',strtotime($document->date))}} |
|
|
|
|
Място: |
{{$document->creation_type==1 ? $document->storage->location->name : ($document->documentable_type=='App\Models\Obect' ? $document->documentable->client->location->name : $document->documentable->location->name)}} |
|
|
Ид. номер: |
{{$document->creation_type==1 ? ($document->documentable_type=='App\Models\Obect' ? $document->documentable->client->bulstat : $document->documentable->bulstat) : $document->storage->bulstat }} |
Ид. номер: |
{{$document->creation_type==1 ? $document->storage->bulstat : ($document->documentable_type=='App\Models\Obect' ? $document->documentable->client->bulstat : $document->documentable->bulstat)}} |
ДДС номер: |
{{$document->creation_type==1 ? ($document->documentable_type=='App\Models\Obect' ? $document->documentable->client->vat : $document->documentable->vat) : $document->storage->vat }} |
ДДС номер: |
{{$document->creation_type==1 ? $document->storage->vat : ($document->documentable_type=='App\Models\Obect' ? $document->documentable->client->vat : $document->documentable->vat)}} |
МОЛ: |
{{$document->creation_type==1 ? ($document->documentable_type=='App\Models\Obect' ? $document->documentable->client->mol : $document->documentable->mol) : $document->storage->mol }} |
МОЛ: |
{{$document->creation_type==1 ? $document->storage->mol : ($document->documentable_type=='App\Models\Obect' ? $document->documentable->client->mol : $document->documentable->mol)}} |
|
|
Телефон: |
{{$document->creation_type==1 ? ($document->documentable_type=='App\Models\Obect' ? ($document->documentable->client->phone!='+359' ? $document->documentable->client->phone : '' ) : ($document->documentable->phone!=null ? $document->documentable->phone : '')) : $document->storage->phone }} |
Телефон: |
{{$document->creation_type==1 ? $document->storage->phone : ($document->documentable_type=='App\Models\Obect' ? ($document->documentable->client->phone!='+359' ? $document->documentable->client->phone : '' ) : ($document->documentable->phone!=null ? $document->documentable->phone : ''))}} |
{{$document->doc_type->title}} |
|
|
|
|
Към фактура N |
|
от дата: |
|
Описание на сделката |
Дата на данъчно събитие |
{{date('d.m.Y',strtotime($document->date))}} |
|
N |
Наименование на стоката или услугата |
Мярка |
Количество |
Ед. цена |
Стойност |
@foreach($document->rows as $index => $row)
{{$index+1}} |
{{$row->is_service==0 ? $row->product->name : $row->service->name}} |
{{ $row->measure == 0 ? __('texte.documents_arr.show.count') : $row->product->package->name}} |
{{ $row->quantity / ($row->measure == 0 ? 1 : ($row->measure == 1 ? $row->product->package_count : $row->product->pallet_count )) }} |
{{ number_format(($row->price-$row->discount) * ($row->measure == 0 ? 1 : ($row->measure == 1 ? $row->product->package_count : $row->product->pallet_count )),5,'.','')}} |
{{ number_format($row->value,2,'.','') }} |
@endforeach
@if($index<8)
@for($i=$index;$i<8;$i++)
|
|
|
|
|
|
@endfor
@endif
Словом: {{$document->total_words}} |
Данъчна основа |
{{number_format($document->value,2,'.','')}} |
Ставка 20% ДДС |
{{number_format($document->vat,2,'.','')}} |
Сума за плащане |
{{number_format($document->total,2,'.','')}} |
Основание за сделката: |
|
Получател - име и фамилия: |
Плащане: |
По сметка |
Съставител - име и фамилия: |
{{$document->creation_type==1 ? ($document->documentable_type=='App\Models\Obect' ? $document->documentable->client->mol : $document->documentable->mol) : $document->storage->mol }} |
IBAN: |
{{$document->creation_type==1 ? $document->storage->iban : ''}} |
{{$document->creation_type==1 ? $document->storage->mol : ($document->documentable_type=='App\Models\Obect' ? $document->documentable->client->mol : $document->documentable->mol) }} |
Отговорен за стопанската операция |
Банка: |
{{$document->creation_type==1 ? $document->storage->bank : ''}} |
Отговорен за стопанската операция |
Подпис: |
Банков код: |
{{$document->creation_type==1 ? $document->storage->bic : ''}} |
Подпис: |
|