{!! Form::open(['url' => route('lead_detail', [$id]), 'class' => 'form-horizontal']) !!}
{{ Form::textarea('lead_notice', '', array('placeholder'=>__('Neue Notiz hinzufügen …'), 'class'=>'form-control autoExpand', 'id'=>'booking_notice', 'rows'=>'1', 'data-min-rows'=>'1', 'required')) }}
{!! Form::close() !!}
@if($lead->lead_notices)
@foreach($lead->lead_notices as $lead_notice)
@if($lead_notice->from_user_id === \Auth::user()->id)
{{ $lead_notice->getName() }} | {{ $lead_notice->created_at->format("d.m.Y - H:i:s") }}
@else
{{ $lead_notice->getName() }} | {{ $lead_notice->created_at->format("d.m.Y - H:i:s") }}
@endif
@if($lead_notice->edit_at != null)
|
{{ $lead_notice->edit_at->format("d.m.Y - H:i:s") }}
@endif
@if($lead_notice->from_user_id === \Auth::user()->id || \Auth::user()->isPermission('sua-bo-n-edit'))
@endif
{!! nl2br($lead_notice->message) !!}
@endforeach
@endif