Mails, Strono, filter
This commit is contained in:
parent
f53f17f9c1
commit
62e84637b6
99 changed files with 2409 additions and 474 deletions
117
resources/views/customer/mail/modal-show-mail-inner.blade.php
Normal file
117
resources/views/customer/mail/modal-show-mail-inner.blade.php
Normal file
|
|
@ -0,0 +1,117 @@
|
|||
|
||||
<div class="card mb-2">
|
||||
<!-- Header -->
|
||||
<div class="media px-4 pt-4 pb-2">
|
||||
<a href="javascript:void(0)" class="messages-sidebox-toggler d-lg-none d-block align-self-center text-muted text-large pr-3 mr-3"><i class="ion ion-md-more"></i></a>
|
||||
|
||||
<!-- Sender photo -->
|
||||
<div class="media-body">
|
||||
<!-- Sender & date -->
|
||||
<div class="mb-1">
|
||||
@if($customer_mail->is_answer)
|
||||
Antwort von:<br>
|
||||
@else
|
||||
Gesendet an:<br>
|
||||
@endif
|
||||
<<a href="mailto:{{$customer_mail->email}}">{{$customer_mail->email}}</a>> {{$customer_mail->sent_at }}
|
||||
</div>
|
||||
|
||||
<!-- Subject -->
|
||||
<h5 class="line-height-inherit m-0">{{$customer_mail->subject}}</h5>
|
||||
</div>
|
||||
</div>
|
||||
<hr class="border-light m-0">
|
||||
<!-- / Header -->
|
||||
{{-- <!-- Controls -->
|
||||
<div class="media flex-wrap align-items-center p-2">
|
||||
<div class="media-body d-flex flex-wrap flex-basis-100 flex-basis-sm-auto">
|
||||
<button type="button" class="btn btn-default borderless md-btn-flat icon-btn messages-tooltip text-muted mr-3" title="Back"><i class="ion ion-md-arrow-back"></i></button>
|
||||
<button type="button" class="btn btn-default borderless md-btn-flat icon-btn messages-tooltip text-muted" title="Mark as unread"><i class="ion ion-md-mail-unread"></i></button>
|
||||
<button type="button" class="btn btn-default borderless md-btn-flat icon-btn messages-tooltip text-muted" title="Mark as important"><i class="ion ion-md-alert"></i></button>
|
||||
<button type="button" class="btn btn-default borderless md-btn-flat icon-btn messages-tooltip text-muted" title="Move to spam"><i class="ion ion-md-folder-open"></i></button>
|
||||
<button type="button" class="btn btn-default borderless md-btn-flat icon-btn messages-tooltip text-muted" title="Move to trash"><i class="ion ion-md-trash"></i></button>
|
||||
</div>
|
||||
|
||||
<div class="d-flex flex-wrap align-items-center ml-auto">
|
||||
<button type="button" class="btn btn-default borderless md-btn-flat text-muted px-3"><i class="ion ion-ios-undo"></i> Reply</button>
|
||||
<div class="text-lighter">|</div>
|
||||
<button type="button" class="btn btn-default borderless md-btn-flat text-muted px-3">Forward <i class="ion ion-ios-redo"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
<hr class="border-light m-0">
|
||||
<!-- / Controls -->
|
||||
--}}
|
||||
<div class="p-4">
|
||||
{!! nl2br($customer_mail->message) !!}
|
||||
</div>
|
||||
<hr class="border-light m-0">
|
||||
|
||||
<!-- Message infos -->
|
||||
<div class="px-4 pt-4 pb-2">
|
||||
@if($customer_mail->customer)
|
||||
<p><strong>Kunde: </strong>
|
||||
{{ $customer_mail->customer->salutation->name }} {{ $customer_mail->customer->firstname }} {{ $customer_mail->customer->name }}
|
||||
</p>
|
||||
@endif
|
||||
|
||||
@if($customer_mail->booking)
|
||||
<p><strong>Buchung: </strong>
|
||||
{{ $customer_mail->booking_id }}
|
||||
@if($customer_mail->booking->travel_country_id)
|
||||
{{ " | ".$customer_mail->booking->travel_country->name }}
|
||||
@endif
|
||||
@if($customer_mail->booking->travelagenda_id)
|
||||
{{ " | ".$customer_mail->booking->travel_agenda->name }}
|
||||
@endif
|
||||
</p>
|
||||
@endif
|
||||
|
||||
@if($customer_mail->send)
|
||||
<span class="badge badge-success">Mail gesendet</span>
|
||||
<p>Datum: {{$customer_mail->sent_at}}</p>
|
||||
@endif
|
||||
@if($customer_mail->fail)
|
||||
<span class="badge badge-danger">Mail Fehler</span>
|
||||
<p>{{$customer_mail->error }}</p>
|
||||
@endif
|
||||
</div>
|
||||
<!-- Message attachments -->
|
||||
@if($customer_mail->customer_files)
|
||||
<hr class="border-light m-0">
|
||||
|
||||
<div class="px-4 pt-4 pb-2">
|
||||
<h6 class="small font-weight-semibold mb-4">Datei-Anhänge</h6>
|
||||
<div class="row">
|
||||
|
||||
@foreach($customer_mail->customer_files as $file)
|
||||
<div class="col-sm-6 col-lg-12 col-xl-4">
|
||||
|
||||
<div class="message-attachment ui-bordered p-2 mr-3 mb-3">
|
||||
<div class="message-attachment-file display-4"><i class="{{$file->getIconExt()}}"></i></div>
|
||||
<div class="media-body ml-3">
|
||||
<strong class="message-attachment-filename">{{$file->filename}}</strong>
|
||||
<div class="text-muted small">{{$file->formatBytes()}}</div>
|
||||
<div>
|
||||
<a href="{{$file->getURL()}}" target="_blank" class="mail-att-show">Vorschau</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@endforeach
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
{{--
|
||||
<!-- Footer -->
|
||||
<div class="text-right p-4">
|
||||
<button type="button" class="btn btn-primary"><i class="ion ion-ios-undo"></i> Reply</button>
|
||||
|
||||
<button type="button" class="btn btn-default">Forward <i class="ion ion-ios-redo"></i></button>
|
||||
</div>
|
||||
--}}
|
||||
<!-- / Footer -->
|
||||
</div>
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue