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

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

{{ method_field('PATCH') }} {{ csrf_field() }} @if(in_array($doc_type->id,[45,46,47,48])) @permission('document-form-bank-read')
@if ($errors->has('bank')) {{ $errors->first('bank') }} @endif
@endpermission @permission('document-form-account-read')
@if ($errors->has('account')) {{ $errors->first('account') }} @endif
@endpermission @endif @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 ($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')
id,[45,46,47,48]) ? "readonly" : "" }} /> @if ($errors->has('date')) {{ $errors->first('date') }} @endif
@endpermission @permission('document-form-note-read')
@if ($errors->has('note')) {{ $errors->first('note') }} @endif
@endpermission @permission('document-form-account_type-read')
@if ($errors->has('account_type')) {{ $errors->first('account_type') }} @endif
@endpermission @permission('document-form-total-read')
@if ($errors->has('total')) {{ $errors->first('total') }} @endif
@endpermission
@foreach($balance_documents as $balance_document) @endforeach
{{__('texte.documents_arr.cashin_edit.number')}} {{__('texte.documents_arr.cashin_edit.type')}} {{__('texte.documents_arr.cashin_edit.party')}} {{__('texte.documents_arr.cashin_edit.date')}} {{__('texte.documents_arr.cashin_edit.payment_date')}} {{__('texte.documents_arr.cashin_edit.payment_type')}} {{__('texte.documents_arr.cashin_edit.amount')}} {{__('texte.documents_arr.cashin_edit.balance')}} {{__('texte.documents_arr.cashin_edit.for_interception')}} @if($doc_type->payment_type==1) @else {{__('texte.documents_arr.cashin_edit.actions')}} @endif
{{$balance_document->number}} {{$balance_document->type->title}} {{$balance_document->documentable_type=="App\Contragent" ? $balance_document->id : $balance_document->id}} {{$balance_document->date}} {{$balance_document->payment_date}} {{$balance_document->payment_type==0 ? __('texte.documents_arr.cashin_edit.cash') : __('texte.documents_arr.cashin_edit.bank_payment')}} {{number_format($balance_document->total,5,'.','')}} {{number_format($balance_document->total-$balance_document->paid,5,'.','')}} amount!=0 ? "checked" : ""}}/>
@endsection