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

{{__('texte.documents_arr.invoice_in_edit.change_of')}} {{ $doc_type->title}} {{mb_strtolower(__('texte.documents_arr.invoice_in_edit.number'))}} {{$document->number}}

{{ method_field('PATCH') }} {{ 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
vehicle_id!=0 ? "checked=checked" : ''}}/>
@if (isset($vehicles) && $vehicles->isNotEmpty()) @permission('document-form-vehicle-read')
vehicle_id==0 ? "hidden" : ""}}>
@if ($errors->has('vehicle')) {{ $errors->first('vehicle') }} @endif
@endpermission @endif @if($doc_type->id==15) @permission('document-form-salary-read')
payment_type==1 ? 'checked' : ''}} @nonepermission('document-form-salary-write') disabled @endnonepermission > @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($document->parent_id==0 && 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) @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 @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) @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 {{__('texte.documents_arr.invoice_in_edit.title')}} {{__('texte.documents_arr.invoice_in_edit.quantity')}} {{__('texte.documents_arr.invoice_in_edit.measure')}} {{__('texte.documents_arr.invoice_in_edit.price')}} {{__('texte.documents_arr.invoice_in_edit.discount')}} {{__('texte.documents_arr.invoice_in_edit.value')}} @if(($doc_type->creation_type==1) && $doc_type->wrappage_only==0) @endif
{{__('texte.documents_arr.invoice_in_edit.grounds')}}
{{__('texte.documents_arr.invoice_in_edit.sum')}} 0.00000
{{__('texte.documents_arr.invoice_in_edit.vat')}} 0.00000
{{__('texte.documents_arr.invoice_in_edit.total')}} 0.00000
@if ($errors) {{ $errors->first() }} @endif
@endpermission
@if($doc_type->id==4 || $doc_type->id==12 || $doc_type->id==22 || $doc_type->id==63 || $doc_type->id == 65) @endif
@endsection