46 lines
No EOL
2.2 KiB
PHP
46 lines
No EOL
2.2 KiB
PHP
<div class="card mb-2">
|
|
<h6 class="card-header bg-primary text-white py-2" data-toggle="collapse" data-target="#collapseBookingNotice" aria-expanded="false" aria-controls="collapseBookingNotice">
|
|
<strong style="line-height: 1.6em">Notizen</strong>
|
|
</h6>
|
|
<div class="collapse" id="collapseBookingNotice">
|
|
|
|
<div class="card-body row">
|
|
|
|
<div class="col-sm-12">
|
|
{!! Form::open(['url' => route('booking_detail', [$id]), 'class' => 'form-horizontal']) !!}
|
|
<input type="hidden" name="action" value="save_notice">
|
|
<div class="form-group">
|
|
{{ Form::textarea('booking_notice', '', array('placeholder'=>__('Neue Notiz hinzufügen …'), 'class'=>'form-control autoExpand', 'id'=>'booking_notice', 'rows'=>'1', 'data-min-rows'=>'1', 'required')) }}
|
|
</div>
|
|
<div class="form-group text-right">
|
|
<button type="submit" class="btn btn-sm btn-primary" ><i class="ion ion-ios-send"></i> Notiz hinzufügen</button>
|
|
<hr>
|
|
</div>
|
|
{!! Form::close() !!}
|
|
</div>
|
|
|
|
@if($booking->booking_notices)
|
|
@foreach($booking->booking_notices as $booking_notice)
|
|
|
|
<div class="col-sm-12">
|
|
@if($booking_notice->from_user_id === \Auth::user()->id)
|
|
<div class="bg-primary rounded py-2 px-3 mr-3 text-white mb-2">
|
|
@else
|
|
<div class="bg-secondary rounded py-2 px-3 mr-3 mb-2">
|
|
@endif
|
|
<div class="font-weight-semibold mb-1">{{ $booking_notice->getName() }} | {{ $booking_notice->created_at->format("d.m.Y - H:i:s") }}</div>
|
|
{!! nl2br($booking_notice->message) !!}
|
|
</div>
|
|
</div>
|
|
{{-- <div class="col-sm-12">
|
|
<div class="bg-lighter rounded py-2 px-3 mr-3 mb-2">
|
|
<div class="font-weight-semibold mb-1">You | {{ $booking_notice->created_at->format("d.m.Y H:i:s") }}</div>
|
|
{!! nl2br($booking_notice->message) !!}
|
|
</div>
|
|
</div>
|
|
--}}
|
|
@endforeach
|
|
@endif
|
|
</div>
|
|
</div>
|
|
</div> |