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

{{__('texte.documents_arr.edit_invoice.revision_of')}} {{ $doc_type->title }}

{{ method_field('PATCH') }} {{ csrf_field() }}
@if ($errors->has('documentable_type')) {{ $errors->first('documentable_type') }} @endif
@if ($errors->has('client_id')) {{ $errors->first('client_id') }} @endif
@if ($errors->has('object_id')) {{ $errors->first('object_id') }} @endif
@if ($errors->has('supplier_id')) {{ $errors->first('supplier_id') }} @endif
@if ($errors->has('creation_type')) {{ $errors->first('creation_type') }} @endif
@if ($errors->has('number')) {{ $errors->first('number') }} @endif
@if($document->parent_id!=0 && $document->parent->parent_id!=0 && ($document->parent->parent->doc_type_id==1 || $document->parent->parent->doc_type_id==3))
parent_qty==1 ? "checked" : ""}}/>
@else @endif @if($doc_type->payment_type==3)
@if ($errors->has('payment_type')) {{ $errors->first('payment_type') }} @endif
@endif
@if ($errors->has('date')) {{ $errors->first('date') }} @endif
@if ($errors->has('payment_date')) {{ $errors->first('payment_date') }} @endif
@if ($errors->has('note')) {{ $errors->first('note') }} @endif
@if ($errors->has('storage')) {{ $errors->first('storage') }} @endif
@if ($errors->has('product')) {{ $errors->first('product') }} @endif
@if($doc_type->route_type==4 && $doc_type->wrappage_only==0) @if(isset($document) && $document->vat_rate_id==0) @endif @endif wrappage_only==1 ? "hidden" : ""}}> @if($doc_type->wrappage_only==0) wrappage_only==1 ? "hidden" : ""}}> @endif
@if($doc_type->id==6) @else {{__('texte.documents_arr.edit_invoice.num')}} @endif {{__('texte.documents_arr.edit_invoice.title')}} {{__('texte.documents_arr.edit_invoice.quantity')}} {{__('texte.documents_arr.edit_invoice.package')}} {{__('texte.documents_arr.create_invoice.measure')}} {{__('texte.documents_arr.edit_invoice.price')}} {{__('texte.documents_arr.edit_invoice.discount')}} {{__('texte.documents_arr.edit_invoice.value')}} @if($doc_type->wrappage_only==0) @endif
{{__('texte.documents_arr.edit_invoice.grounds')}}
{{__('texte.documents_arr.edit_invoice.sum')}} 0.00000
{{__('texte.documents_arr.edit_invoice.vat')}} 0.00000
{{__('texte.documents_arr.edit_invoice.total')}} 0.00000
@if ($errors) {{ $errors->first() }} @endif
@if($doc_type->id==6 || $doc_type->id==9) @endif
@endsection