@isset($billingReference) {{preg_replace("/[\r\n|\n|\r]+/", "", $billingReference->number)}} @endisset {{preg_replace("/[\r\n|\n|\r]+/", "", $discrepancycode)}} @isset($discrepancycode) @if(in_array($request['type_document_id'], [4, 13, 26])) @if($request['type_document_id'] == 13) @inject('Discrepancy', 'App\CreditNoteDiscrepancyResponseSD') @else @inject('Discrepancy', 'App\CreditNoteDiscrepancyResponse') @endif @else @inject('Discrepancy', 'App\DebitNoteDiscrepancyResponse') @endif {{$Discrepancy->findOrFail($discrepancycode)['name']}} @endisset