@extends('layouts.app') @section('link') @endsection @section('content')
@include('shared.messages')

{{ $doc_type->title }}
@if(isset($copied_rows) && count($copied_rows)>0) @endif

{{ csrf_field() }} @if (isset($contragents) && $contragents->isNotEmpty()) @permission('document-form-contragent-read')
@if ($errors->has('contragent')) {{ $errors->first('contragent') }} @endif
@endpermission @endif @if(isset($objects) && $objects->isNotEmpty()) @permission('document-form-object-read')
@if ($errors->has('object')) {{ $errors->first('object') }} @endif
@endpermission @endif @if (isset($users) && $users->isNotEmpty()) @permission('document-form-user-read')
@if ($errors->has('user')) {{ $errors->first('user') }} @endif
@endpermission @endif @if(in_array($doc_type->id,array(3,7,50,59)))
@if (isset($vehicles) && $vehicles->isNotEmpty()) @permission('document-form-vehicle-read') @endpermission @endif @endif @if(in_array($doc_type->id,array(10,11,15,16,21,24,25))) @permission('document-form-generate_protocol-read')
@nonepermission('document-form-generate_protocol-write') @endnonepermission @if ($errors->has('generate_protocol')) {{ $errors->first('generate_protocol') }} @endif
@endpermission @endif @if($doc_type->id==15) @permission('document-form-salary-read')
@nonepermission('document-form-salary-write') @endnonepermission @if ($errors->has('v')) {{ $errors->first('salary') }} @endif
@endpermission @endif @if($doc_type->payment_type==3) @permission('document-form-payment_type-read')
@if ($errors->has('payment_type')) {{ $errors->first('payment_type') }} @endif
@endpermission @endif @if(($parent==0 || $document->account_id!=-1) && in_array($doc_type->id,[3,4,5,6,14,18,21,22,23,24,27,31,33,35,37,63,65])) @permission('document-form-account_type-read')
@if ($errors->has('account_type')) {{ $errors->first('account_type') }} @endif
@endpermission @endif @if($doc_type->creation_type==2) @permission('document-form-number-read')
@if ($errors->has('number')) {{ $errors->first('number') }} @endif
@endpermission @endif @permission('document-form-date-read')
@if ($errors->has('date')) {{ $errors->first('date') }} @endif
@endpermission @if($doc_type->payment_type!=0 || ($doc_type->payment_type==0 && $doc_type->show_vat==0)) @permission('document-form-payment_date-read')
@if ($errors->has('payment_date')) {{ $errors->first('payment_date') }} @endif
@endpermission @endif @permission('document-form-note-read')
@if ($errors->has('note')) {{ $errors->first('note') }} @endif
@endpermission @permission('document-form-storage-read')
@if ($errors->has('storage')) {{ $errors->first('storage') }} @endif
@endpermission @permission('document-form-product-read')
@if ($errors->has('product')) {{ $errors->first('product') }} @endif @if ($errors->has('stocks.0.product')) {{ $errors->first('stocks.0.product') }} @endif
@endpermission @if($doc_type->wrappage_only!=1) @permission('document-form-intangible-read')
@if ($errors->has('intangible')) {{ $errors->first('intangible') }} @endif
@endpermission @endif @if($doc_type->id==4 || $doc_type->id==21 || $doc_type->id==22 || $doc_type->id==24 || $doc_type->id==58 || $doc_type->id==60)
@endif @permission('document-form-product-read')
@if($doc_type->id==4 || $doc_type->id==12 || $doc_type->id==22 || $doc_type->id == 63 || $doc_type->id == 65) @else @endif @permission('document-form-have_vat-read') @if($doc_type->route_type==4 && $doc_type->wrappage_only==0) @if(isset($document) && $document->vat_rate_id==0) @endif @endif @endpermission wrappage_only==1 ? "hidden" : ""}}> @if($doc_type->wrappage_only==0) wrappage_only==1 ? "hidden" : ""}}> @endif
{{__('texte.documents_arr.invoice_in_create.title')}} {{__('texte.documents_arr.invoice_in_create.quantity')}} {{__('texte.documents_arr.invoice_in_create.measure')}} {{__('texte.documents_arr.invoice_in_create.price')}} {{__('texte.documents_arr.invoice_in_create.discount')}} {{__('texte.documents_arr.invoice_in_create.value')}} @if(($doc_type->creation_type==1) && $doc_type->wrappage_only==0) @endif N {{__('texte.documents_arr.invoice_in_create.title')}} {{__('texte.documents_arr.invoice_in_create.quantity')}} {{__('texte.documents_arr.invoice_in_create.measure')}} {{__('texte.documents_arr.invoice_in_create.price')}} {{__('texte.documents_arr.invoice_in_create.discount')}} {{__('texte.documents_arr.invoice_in_create.value')}} @if(($doc_type->creation_type==1) && $doc_type->wrappage_only==0) @endif
{{__('texte.documents_arr.invoice_in_create.grounds')}}
{{__('texte.documents_arr.invoice_in_create.sum')}} 0.00000
{{__('texte.documents_arr.invoice_in_create.vat')}} 0.00000
{{__('texte.documents_arr.invoice_in_create.total')}} 0.00000
@if ($errors) {{ $errors->first() }} @endif
@endpermission
@if($doc_type->documentable_type==2 && in_array($doc_type->id,array(10,11,12,13,14,15,16,17,18,19,21,29))) @endif @if($doc_type->id==4 || $doc_type->id==12 || $doc_type->id==22 || $doc_type->id == 63 || $doc_type->id == 65) @endif
@endsection