Edit / PDF / Mail / ->Leads
This commit is contained in:
parent
5d55e5be3f
commit
66ca252bfa
43 changed files with 2915 additions and 76 deletions
58
resources/views/lead/_detail_notice.blade.php
Normal file
58
resources/views/lead/_detail_notice.blade.php
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
<div class="card mb-2">
|
||||
<h6 class="card-header bg-primary text-white py-2" data-toggle="collapse" data-target="#collapseLeadNotice" aria-expanded="false" aria-controls="collapseLeadNotice">
|
||||
<strong style="line-height: 1.6em">Notizen</strong>
|
||||
</h6>
|
||||
<div class="collapse" id="collapseLeadNotice">
|
||||
|
||||
<div class="card-body row">
|
||||
|
||||
<div class="col-sm-12">
|
||||
{!! Form::open(['url' => route('lead_detail', [$id]), 'class' => 'form-horizontal']) !!}
|
||||
<input type="hidden" name="action" value="save_notice">
|
||||
<div class="form-group">
|
||||
{{ Form::textarea('lead_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($lead->lead_notices)
|
||||
@foreach($lead->lead_notices as $lead_notice)
|
||||
<div class="col-sm-12">
|
||||
@if($lead_notice->from_user_id === \Auth::user()->id)
|
||||
<div class="bg-primary rounded py-2 px-3 mr-3 text-white mb-2">
|
||||
<div class="font-weight-semibold mb-1">{{ $lead_notice->getName() }} | {{ $lead_notice->created_at->format("d.m.Y - H:i:s") }}
|
||||
@else
|
||||
<div class="bg-secondary rounded py-2 px-3 mr-3 mb-2">
|
||||
<div class="font-weight-semibold mb-1">{{ $lead_notice->getName() }} | {{ $lead_notice->created_at->format("d.m.Y - H:i:s") }}
|
||||
@endif
|
||||
@if($lead_notice->edit_at != null)
|
||||
| <i class="ion ion-ios-create"></i> {{ $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'))
|
||||
<div class="float-right"><a href="">
|
||||
<a href="javascript:void(0)" class="btn btn-xs btn-white" data-toggle="modal" data-target="#modals-load-content"
|
||||
data-id="{{ $lead_notice->id }}"
|
||||
data-model="LeadNotice"
|
||||
data-action="edit_notice"
|
||||
data-url="{{ route('lead_detail', [$lead->id]) }}"
|
||||
data-redirect="back"
|
||||
data-lead_id="{{$lead->id}}"
|
||||
data-route="{{ route('lead_modal_load') }}">
|
||||
<i class="ion ion-ios-create"></i>
|
||||
</a>
|
||||
<a href="{{ route('lead_delete', [$lead_notice->id, 'lead_notice']) }}" class="btn btn-xs btn-white text-danger" onclick="return confirm('Wirklich löschen?');"><i class="ion ion-md-trash"></i></a>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
{!! nl2br($lead_notice->message) !!}
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
Loading…
Add table
Add a link
Reference in a new issue