@php use App\Models\User; @endphp @if ( $current_route_name === 'orders.edit' && !empty($customer_questions->where('order_id', $current_id)->first()) )

auftragsspezifische Fragen / Bemerkungen

@foreach ($customer_questions->where('order_id', $current_id)->get() as $question)
@if ($question->replies()->count() < 1) @else @endif

{!! $question->text !!}

@if ($question->replies()->count() > 0)
@foreach ($question->replies()->latestFirst()->get() as $reply)

{{ $reply->reply }}

@endforeach
@endif
@endforeach @endif @foreach ($active_questions->get() as $question) @php if ($current_route_name === 'orders.edit' && $current_id == $question->order_id) { continue; } @endphp
{{ $question->order_id }} - {{ $question->KuNr}}

{!! $question->text !!}

@endforeach @once @endonce @section('modal') @parent @stop