@extends('layouts.app') @section('form-title') {{ __('Complaint, solution and acceptance end user') }} @endsection @section('form-sub-title') {{ $project->client->name }} @endsection @section('breadcrumb') @endsection @section('content') @push('child-style') @endpush
@csrf @method('put')
@if($errors->has('customer_complaint'))

{{ $errors->first('customer_complaint') }}

@endif

@for($i = 1; $i <= 4; $i++)
@if($errors->has("complaint{$i}"))

{{ $errors->first("complaint{$i}") }}

@endif
{{-- {!! subject_judgements('subject1', old('subject1', $project->complaint ? $project->complaint->complaintSubject(1) : '')) !!} --}} complaint ? $project->complaint->complaintSubject($i) : '') }}"> @if($errors->has("subject{$i}"))

{{ $errors->first("subject{$i}") }}

@endif
@if($errors->has("solution{$i}"))

{{ $errors->first("solution{$i}") }}

@endif
{!! problemSolvedOptions("problem_solved{$i}", old("problem_solved{$i}", $project->complaint ? $project->complaint->complaintSolved($i) : 'no')) !!} @if($errors->has("problem_solved{$i}"))

{{ $errors->first("problem_solved{$i}") }}

@endif
{!! complaintJustifiedOptions( "complaint_justified{$i}", old("complaint_justified{$i}", $project->complaint ? $project->complaint->complaintJustified($i) : 'no'), old("complaint_justified{$i}_details", $project->complaint ? $project->complaint->complaintJustifiedDetails($i) : '') ) !!} @if($errors->has("complaint_justified{$i}"))

{{ $errors->first("complaint_justified{$i}") }}

@endif

@endfor
@if($errors->has('extra_info_complaint'))

{{ $errors->first('extra_info_complaint') }}

@endif

@if($errors->has('solution'))

{{ $errors->first('solution') }}

@endif
@if($project->complaint) @foreach($project->complaint->photos as $photo)
{{ $photo->name }}
{{ $photo->name }}
@endforeach @endif
{{ __('Add photo') }}
@if($errors->has('ref_factory'))

{{ $errors->first('ref_factory') }}

@endif
{!! ifInvoiceJustified($errors, old('justified', $project->justified)) !!}
{!! projectInvoiceTypes('invoice_to', old('invoice_to', $project->invoice_to)) !!} @if($errors->has('invoice_to'))

{{ $errors->first('invoice_to') }}

@endif
{!! factories('factory', old('factory', $project->invoice_to_id ?? $default_factory->id)) !!} @if($errors->has('factory'))

{{ $errors->first('factory') }}

@endif
@if($errors->has('extra_time'))

{{ $errors->first('extra_time') }}

@endif
{!! yesNoRadio('solved', old('solved', $project->complaint ? $project->complaint->solved : '')) !!} @if($errors->has('solved'))

{{ $errors->first('solved') }}

@endif
{!! yesNoRadio('money_received', old('money_received', $project->complaint ? $project->complaint->money_received : '')) !!} @if($errors->has('money_received'))

{{ $errors->first('money_received') }}

@endif
@if($errors->has('amount_received'))

{{ $errors->first('amount_received') }}

@endif
{{--
@if($errors->has('discount'))

{{ $errors->first('discount') }}

@endif
@if($errors->has('reason_discount'))

{{ $errors->first('reason_discount') }}

@endif
--}}
@if($errors->has('subtotal'))

{{ $errors->first('subtotal') }}

@endif
@if($errors->has('materials'))

{{ $errors->first('materials') }}

@endif
@if($errors->has('price_material'))

{{ $errors->first('price_material') }}

@endif
signature
*{{ __('Click above to add or change the signature') }}
@include('projects.report.signature-pad'); @endsection @push('child-scripts') @endpush