diff --git a/.env b/.env
index 72e2ef2..b3b80ff 100755
--- a/.env
+++ b/.env
@@ -13,6 +13,8 @@ APP_URL_STERN=http://sterntours.local
LOG_CHANNEL=stack
+
+
#DB_CONNECTION=mysql
#DB_HOST=localhost
#DB_PORT=3306
@@ -46,14 +48,16 @@ REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379
-#info@@mein.sterntours.de
-#B7f8Ojt98v6tMz8W
+
+MAIL_BBC=info@adametz.media
+#MAIL_BBC=info@sterntours.de
MAIL_DRIVER=smtp
-MAIL_HOST=w00df904.kasserver.com
+MAIL_HOST=mail.your-server.de
MAIL_PORT=587
-MAIL_USERNAME=m0479305
-MAIL_PASSWORD=m4CowydxoC4dY2DB
-MAIL_ENCRYPTION=null
+MAIL_USERNAME=info@mein.sterntours.de
+MAIL_PASSWORD=B7f8Ojt98v6tMz8W
+MAIL_ENCRYPTION=TLS
+
PUSHER_APP_ID=
PUSHER_APP_KEY=
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 5c1b8ec..86b7a8e 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -2,47 +2,41 @@
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
+
+
-
-
+
-
-
-
-
-
-
-
+
+
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
-
+
@@ -92,36 +86,10 @@
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
@@ -129,20 +97,32 @@
-
-
+
+
-
+
-
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -150,8 +130,8 @@
-
-
+
+
@@ -160,20 +140,11 @@
- slug
- feed
- reques
- book
- c
- right
- change
- checked
modal
selec
sele
Arrangement
Validator
- unique
live
last_data
array
@@ -190,19 +161,29 @@
We have data
register
Your re
+ unique
+ confirm
+ Mail::
+ confo
+ getInvoiceLastModified
+ invoices_fewo
+ invoices_fewo
+ stora
+ invoices
$PROJECT_DIR$/database/migrations
- $PROJECT_DIR$
$PROJECT_DIR$/app/Http/Controllers
$PROJECT_DIR$/resources/assets
- $PROJECT_DIR$/resources/views
- $PROJECT_DIR$/app
$PROJECT_DIR$/app/Models
$PROJECT_DIR$/resources
+ $PROJECT_DIR$/resources/views
+ $PROJECT_DIR$/app/Http
+ $PROJECT_DIR$/app
+ $PROJECT_DIR$
@@ -220,35 +201,9 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -256,21 +211,47 @@
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -391,10 +372,10 @@
-
-
-
-
+
+
+
+
@@ -402,7 +383,6 @@
-
@@ -434,14 +414,7 @@
-
-
-
-
-
-
-
-
+
@@ -453,7 +426,7 @@
-
+
@@ -474,25 +447,55 @@
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -500,31 +503,78 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
-
-
-
-
-
-
-
+
+
+
+
+
+
+
@@ -647,17 +697,29 @@
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
+
-
+
@@ -710,100 +772,107 @@
-
+
-
-
+
+
-
+
-
-
+
+
-
+
-
-
+
+
+
+
+
-
+
-
-
+
+
-
+
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
-
+
-
-
+
+
-
+
-
-
+
+
-
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -811,24 +880,17 @@
-
+
-
-
+
+
-
+
-
-
-
-
-
-
-
-
-
+
+
@@ -839,241 +901,238 @@
-
+
+
+
+
+
+
+
-
-
+
+
-
+
+
+
+
-
-
+
+
-
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
-
-
-
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
-
+
-
+
-
-
+
+
-
+
-
-
-
-
-
-
-
-
-
+
+
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/app/Http/Controllers/TravelUserBookingFewoController.php b/app/Http/Controllers/TravelUserBookingFewoController.php
index befb5ef..c823cbb 100755
--- a/app/Http/Controllers/TravelUserBookingFewoController.php
+++ b/app/Http/Controllers/TravelUserBookingFewoController.php
@@ -3,12 +3,15 @@
namespace App\Http\Controllers;
-use App\Models\FewoPrice;
+use App\Mail\MailSendFeWoInvoice;
+use App\Mail\MailSendFeWoService;
+use App\Mail\MailSendFeWoInfo;
+use App\Models\CMSContent;
use App\Models\FewoReservation;
-use App\Models\FewoSeason;
use App\Models\TravelUserBookingFewo;
use App\Repositories\TravelUserBookingFewoRepository;
-use Carbon\Carbon;
+use App\Services\Util;
+use Illuminate\Support\Facades\Mail;
use Input;
class TravelUserBookingFewoController extends Controller
@@ -35,6 +38,9 @@ class TravelUserBookingFewoController extends Controller
{
$max_adults = 10;
$max_children = 10;
+
+ $replace_info_text = [];
+
if($id == "new") {
$travel_user_booking_fewo = new TravelUserBookingFewo();
$id = 'new';
@@ -43,13 +49,21 @@ class TravelUserBookingFewoController extends Controller
$max_adults = isset($travel_user_booking_fewo->fewo_lodging->maximum_adults) ? $travel_user_booking_fewo->fewo_lodging->maximum_adults : 10;
$max_children = isset($travel_user_booking_fewo->fewo_lodging->maximum_childs) ? $travel_user_booking_fewo->fewo_lodging->maximum_childs : 10;;
$id = $travel_user_booking_fewo->id;
+ $replace_info_text['fewo_user_anrede'] = $travel_user_booking_fewo->getUserSalutation();
+ $replace_info_text['fewo_adresse'] = $travel_user_booking_fewo->getNameAddressLocation(", ");
}
- $data = [
- 'travel_user_booking_fewo' => $travel_user_booking_fewo,
- 'max_adults' => $max_adults,
- 'max_children' => $max_children,
- 'id' => $id,
- ];
+
+ if(!$travel_user_booking_fewo->info_mail_text) {
+ $travel_user_booking_fewo->info_mail_text = CMSContent::getContentBySlug('pdf-vorlage-anreiseinfo-fewo');
+ $travel_user_booking_fewo->info_mail_text = Util::replacePlaceholders($travel_user_booking_fewo->info_mail_text, $replace_info_text);
+ }
+
+ $data = [
+ 'travel_user_booking_fewo' => $travel_user_booking_fewo,
+ 'max_adults' => $max_adults,
+ 'max_children' => $max_children,
+ 'id' => $id,
+ ];
return view('travel.user.booking.detail', $data);
}
@@ -59,27 +73,92 @@ class TravelUserBookingFewoController extends Controller
if($data['action'] == 'saveAll'){
return $this->userBookingFewoRepo->update($id, $data);
}
-
if($data['action'] == 'createInvoice'){
if(!TravelUserBookingFewo::find($id)){
\Session()->flash('alert-error', __('Buchung nicht gefunden.'));
return back()->withInput(Input::all());
}
-
- return $this->userBookingFewoRepo->createInvoicePDF($id, $data);
$ret = $this->userBookingFewoRepo->check($id, $data);
if($ret['success'] == false){
return back()->withInput(Input::all())->withErrors($ret['error']);
}
if($ret['success'] == true){
+ $this->userBookingFewoRepo->createInvoicePDF($id);
+ \Session()->flash('alert-success', __('Mietbestätigung / Rechnung wurde erstellt.'));
return redirect(route('travel_user_booking_fewo_detail', [$ret['id']]));
}
}
+ if($data['action'] == 'createTravelInfo'){
+ if(!TravelUserBookingFewo::find($id)){
+ \Session()->flash('alert-error', __('Buchung nicht gefunden.'));
+ return back()->withInput(Input::all());
+ }
+ $ret = $this->userBookingFewoRepo->check($id, $data);
+ if($ret['success'] == false){
+ return back()->withInput(Input::all())->withErrors($ret['error']);
+ }
+ if($ret['success'] == true){
+ $this->userBookingFewoRepo->createTravelInfoPDF($id, $data['info_mail_text']);
+ \Session()->flash('alert-success', __('Anreiseinfo wurde erstellt/gespeichert.'));
+ return redirect(route('travel_user_booking_fewo_detail', [$ret['id']]));
+
+ }
+ }
+
+ if($data['action'] == 'sendMailtoUser') {
+ $travel_user_booking_fewo = TravelUserBookingFewo::findOrFail($id);
+ if($travel_user_booking_fewo->travel_user_id && $travel_user_booking_fewo->travel_user->email){
+ $mail_bbc = config('mail.mail_bbc');
+ Mail::to($travel_user_booking_fewo->travel_user->email)->bcc($mail_bbc)->send(new MailSendFeWoInvoice($travel_user_booking_fewo, Input::get('send_mail_user_notice')));
+ $send_user_mail = $travel_user_booking_fewo->send_user_mail;
+ $send_user_mail[] = [date('H:i d.m.Y') => Input::get('send_mail_user_notice')];
+ $travel_user_booking_fewo->send_user_mail = $send_user_mail;
+ $travel_user_booking_fewo->save();
+ \Session()->flash('alert-success', __('E-mail wurde an den Mieter versendet.'));
+ return redirect(route('travel_user_booking_fewo_detail', [$travel_user_booking_fewo->id]));
+ }
+
+ }
+
+ if($data['action'] == 'sendInfosMailtoUser') {
+ $travel_user_booking_fewo = TravelUserBookingFewo::findOrFail($id);
+ if($travel_user_booking_fewo->travel_user_id && $travel_user_booking_fewo->travel_user->email){
+ $mail_bbc = config('mail.mail_bbc');
+ Mail::to($travel_user_booking_fewo->travel_user->email)->bcc($mail_bbc)->send(new MailSendFeWoInfo($travel_user_booking_fewo));
+ $send_info_mail = $travel_user_booking_fewo->send_info_mail;
+ $send_info_mail[] = [date('H:i d.m.Y') => ''];
+ $travel_user_booking_fewo->send_info_mail = $send_info_mail;
+ $travel_user_booking_fewo->save();
+ \Session()->flash('alert-success', __('E-mail wurde an den Mieter versendet.'));
+ return redirect(route('travel_user_booking_fewo_detail', [$travel_user_booking_fewo->id]));
+ }
+
+ }
+
+ if($data['action'] == 'sendMailtoService') {
+ $travel_user_booking_fewo = TravelUserBookingFewo::findOrFail($id);
+ if($travel_user_booking_fewo){
+ $mail_bbc = config('mail.mail_bbc');
+ Mail::to(Input::get('send_mail_service_mail'))->bcc($mail_bbc)->send(new MailSendFeWoService($travel_user_booking_fewo, Input::get('send_mail_service_subject'), Input::get('send_mail_service_content')));
+ $send_service_mail = $travel_user_booking_fewo->send_service_mail;
+ $send_service_mail[] = ['d' => date('H:i d.m.Y'),
+ 'm'=>Input::get('send_mail_service_mail'),
+ 's'=>Input::get('send_mail_service_subject'),
+ 'c'=>Input::get('send_mail_service_content')];
+ $travel_user_booking_fewo->send_service_mail = $send_service_mail;
+ $travel_user_booking_fewo->save();
+
+ \Session()->flash('alert-success', __('E-mail wurde an den Dienstleister versendet.'));
+ return redirect(route('travel_user_booking_fewo_detail', [$travel_user_booking_fewo->id]));
+ }
+ }
+
+
+
+
}
-
-
public function delete($id){
$model = TravelUserBookingFewo::findOrFail($id);
$FewoReservations = FewoReservation::where('lodging_id', $model->fewo_lodging_id)->where('from_date', $model->getFromDateRaw())->where('to_date', $model->getToDateRaw())->get();
diff --git a/app/Mail/MailSendFeWoInfo.php b/app/Mail/MailSendFeWoInfo.php
new file mode 100644
index 0000000..d026520
--- /dev/null
+++ b/app/Mail/MailSendFeWoInfo.php
@@ -0,0 +1,57 @@
+travel_user_booking_fewo = $travel_user_booking_fewo;
+ $this->subject = __('STERN TOURS Anreiseinfo FEWO');
+ }
+
+ public function build()
+ {
+ $salutation = __('Dear customer').",";
+ if($this->travel_user_booking_fewo->travel_user){
+ if($this->travel_user_booking_fewo->travel_user->salutation_id == 1){
+ $salutation = __('Dear Sir')." ".$this->travel_user_booking_fewo->travel_user->last_name.",";
+ }else{
+ $salutation = __('Dear Mrs')." ".$this->travel_user_booking_fewo->travel_user->last_name.",";
+ }
+ }
+
+
+ $file1 = array(
+ 'path' => $this->travel_user_booking_fewo->getTravelInfoPathFile(),
+ 'name' => 'Stern-Tours-'.$this->travel_user_booking_fewo->getTravelInfoFileName(),
+ 'mine' => 'application/pdf',
+ );
+
+ return $this->view('emails.info')
+ ->with([
+ 'salutation' => $salutation,
+ 'copy1line' => $this->travel_user_booking_fewo->info_mail_text,
+ 'copy2line' => "",
+ 'greetings' => __('Best regards'),
+ 'model' => $this->travel_user_booking_fewo,
+ ])
+ ->attach($file1['path'], [
+ 'as' => $file1['name'],
+ 'mime' => $file1['mine'],
+ ])
+ ;
+ }
+}
\ No newline at end of file
diff --git a/app/Mail/MailSendFeWoInvoice.php b/app/Mail/MailSendFeWoInvoice.php
new file mode 100644
index 0000000..919c286
--- /dev/null
+++ b/app/Mail/MailSendFeWoInvoice.php
@@ -0,0 +1,68 @@
+travel_user_booking_fewo = $travel_user_booking_fewo;
+ $this->notice = $notice;
+ $this->subject = __('STERN TOURS Mietbestätigung FEWO');
+ }
+
+ public function build()
+ {
+ $salutation = __('Dear customer').",";
+ if($this->travel_user_booking_fewo->travel_user){
+ if($this->travel_user_booking_fewo->travel_user->salutation_id == 1){
+ $salutation = __('Dear Sir')." ".$this->travel_user_booking_fewo->travel_user->last_name.",";
+ }else{
+ $salutation = __('Dear Mrs')." ".$this->travel_user_booking_fewo->travel_user->last_name.",";
+ }
+ }
+
+ $file1 = array(
+ 'path' => Storage::disk('public')->path("pdf/Stern-Tours-Mietbedingungen.pdf"),
+ 'name' => 'Stern-Tours-Mietbedingungen.pdf',
+ 'mine' => 'application/pdf',
+ );
+
+ $file2 = array(
+ 'path' => $this->travel_user_booking_fewo->getInvoicePathFile(),
+ 'name' => 'Stern-Tours-'.$this->travel_user_booking_fewo->getInvoiceFileName(),
+ 'mine' => 'application/pdf',
+ );
+
+ return $this->view('emails.invoice')
+ ->with([
+ 'salutation' => $salutation,
+ 'copy1line' => "herzlichen Dank für Ihre Online-Buchung vom ".$this->travel_user_booking_fewo->booking_date.", hiermit bestätigen wir verbindlich Ihre Anmietung wie folgt:",
+ 'copy2line' => '',
+ 'notice' => $this->notice,
+ 'greetings' => __('Best regards'),
+ 'model' => $this->travel_user_booking_fewo,
+ ])
+ ->attach($file1['path'], [
+ 'as' => $file1['name'],
+ 'mime' => $file1['mine'],
+ ])
+ ->attach($file2['path'], [
+ 'as' => $file2['name'],
+ 'mime' => $file2['mine'],
+ ]);
+ }
+}
\ No newline at end of file
diff --git a/app/Mail/MailSendFeWoService.php b/app/Mail/MailSendFeWoService.php
new file mode 100644
index 0000000..bddaa69
--- /dev/null
+++ b/app/Mail/MailSendFeWoService.php
@@ -0,0 +1,35 @@
+travel_user_booking_fewo = $travel_user_booking_fewo;
+ $this->subject = $subject;
+ $this->content = $content;
+ }
+
+
+ public function build()
+ {
+ return $this->view('emails.content')->with([
+ 'content' => $this->content,
+ 'greetings' => __('Best regards'),
+ ]);
+ }
+}
\ No newline at end of file
diff --git a/app/Mail/MailVerifyAccount.php b/app/Mail/MailVerifyAccount.php
index aa33b14..8a97333 100644
--- a/app/Mail/MailVerifyAccount.php
+++ b/app/Mail/MailVerifyAccount.php
@@ -41,7 +41,7 @@ class MailVerifyAccount extends Mailable
'url' => route('register_verify', $this->confirmation_code),
'salutation' => $salutation,
'button' => __('Verify Your Email Address'),
- 'copy1line' => __('Thank you for creating an account with the JACKON Infomanager. Please follow the link below to confirm your email address.'),
+ 'copy1line' => __('Please follow the link below to confirm your email address.'),
'copy2line' => __('Or copy this link into the address bar of your browser.'),
'greetings' => __('Best regards'),
]);
diff --git a/app/Models/CMSContent.php b/app/Models/CMSContent.php
index 5ed1dda..ee5689e 100644
--- a/app/Models/CMSContent.php
+++ b/app/Models/CMSContent.php
@@ -112,4 +112,27 @@ class CMSContent extends Model
}
+ public static function getContentBySlug($slug){
+ $CMSContent = CMSContent::whereSlug(trim($slug))->first();
+ if($CMSContent){
+ switch ($CMSContent->field){
+ case 'text':
+ return $CMSContent->text;
+ break;
+ case 'full_text':
+ return $CMSContent->full_text;
+ break;
+ case 'integer':
+ return $CMSContent->integer;
+
+ break;
+ case 'decimal':
+ return $CMSContent->decimal;
+ break;
+
+ }
+ }
+ return false;
+ }
+
}
diff --git a/app/Models/TravelUserBookingFewo.php b/app/Models/TravelUserBookingFewo.php
index 64ebc01..35a676d 100644
--- a/app/Models/TravelUserBookingFewo.php
+++ b/app/Models/TravelUserBookingFewo.php
@@ -9,8 +9,8 @@ namespace App\Models;
use Carbon;
use Illuminate\Database\Eloquent\Model;
-use Util;
-
+use Storage;
+use App\Services\Util;
/**
* Class TravelUserBookingFewo
*
@@ -90,7 +90,10 @@ class TravelUserBookingFewo extends Model
'is_calendar_fewo_direct' => 'bool',
'is_calendar_hrs' => 'bool',
'is_calendar_stern_tours' => 'bool',
- 'status' => 'int'
+ 'status' => 'int',
+ 'send_user_mail' => 'array',
+ 'send_service_mail' => 'array',
+ 'send_info_mail' => 'array',
];
protected $dates = [
@@ -326,10 +329,6 @@ class TravelUserBookingFewo extends Model
return isset($this->attributes['price_total']) ? $this->attributes['price_total'] : 0;
}
- public function getBookingDateYear(){
- return Carbon::parse($this->booking_date)->format('Y');
- }
-
public function getPriceTotalFirstPay(){
if($this->attributes['price_total'] == 0){
return 0;
@@ -358,6 +357,125 @@ class TravelUserBookingFewo extends Model
$first_pay = $this->attributes['price_travel']/2;
return number_format(($this->attributes['price_travel'] - $first_pay + $this->attributes['price_deposit']), 2, ',', '.');
}
+
+ public function getBookingDateYear(){
+ return Carbon::parse($this->booking_date)->format('Y');
+ }
+
+ //get Invoice Name / Paths / ...
+ public function getInvoiceFileName(){
+ if($this->invoice_number) {
+ return Util::sanitize($this->invoice_number).".pdf";
+ }
+ return false;
+ }
+
+ public function getInvoicePath(){
+ $dir = $this->getBookingDateYear()."/";
+ if(!Storage::disk('fewo_invoices')->exists( $dir )){
+ Storage::disk('fewo_invoices')->makeDirectory($dir); //creates directory
+ }
+ $path = Storage::disk('fewo_invoices')->getAdapter()->getPathPrefix();
+ return $path.$dir;
+ }
+
+ public function isInvoice(){
+ if($this->invoice_number){
+ $dir = $this->getBookingDateYear()."/";
+ $filename = $this->getInvoiceFileName();
+ if(Storage::disk('fewo_invoices')->exists( $dir.$filename )){
+ return true;
+ }
+ }
+ return false;
+ }
+
+ public function getInvoicePathFile(){
+ $dir = $this->getBookingDateYear()."/";
+ $filename = $this->getInvoiceFileName();
+ if(Storage::disk('fewo_invoices')->exists( $dir.$filename )){
+ return Storage::disk('fewo_invoices')->path($dir.$filename);
+ }
+ return false;
+ }
+
+ public function getInvoiceUrlFile(){
+ $dir = $this->getBookingDateYear()."/";
+ $filename = $this->getInvoiceFileName();
+ if(Storage::disk('fewo_invoices')->exists( $dir.$filename )){
+ return Storage::disk('fewo_invoices')->url($dir.$filename);
+ }
+ return false;
+ }
+
+ public function getInvoiceLastModified(){
+ $dir = $this->getBookingDateYear()."/";
+ $filename = $this->getInvoiceFileName();
+ if(Storage::disk('fewo_invoices')->exists( $dir.$filename )){
+ return Carbon::createFromTimestamp(Storage::disk('fewo_invoices')->lastModified($dir.$filename))->format("H:i d.m.Y");
+
+ }
+ return false;
+ }
+
+ //get TravelInfos Name / Paths / ...
+ public function getTravelInfoFileName(){
+ if($this->invoice_number) {
+ return "Anreiseinfo-".Util::sanitize($this->invoice_number).".pdf";
+ }
+ return false;
+ }
+
+ public function getTravelInfoPath(){
+ $dir = $this->getBookingDateYear()."/";
+ if(!Storage::disk('fewo_infos')->exists( $dir )){
+ Storage::disk('fewo_infos')->makeDirectory($dir); //creates directory
+ }
+ $path = Storage::disk('fewo_infos')->getAdapter()->getPathPrefix();
+ return $path.$dir;
+ }
+
+ public function isTravelInfo(){
+ if($this->invoice_number){
+ $dir = $this->getBookingDateYear()."/";
+ $filename = $this->getTravelInfoFileName();
+ if(Storage::disk('fewo_infos')->exists( $dir.$filename )){
+ return true;
+ }
+ }
+ return false;
+ }
+
+ public function getTravelInfoPathFile(){
+ $dir = $this->getBookingDateYear()."/";
+ $filename = $this->getTravelInfoFileName();
+ if(Storage::disk('fewo_infos')->exists( $dir.$filename )){
+ return Storage::disk('fewo_infos')->path($dir.$filename);
+ }
+ return false;
+ }
+
+ public function getTravelInfoUrlFile(){
+ $dir = $this->getBookingDateYear()."/";
+ $filename = $this->getTravelInfoFileName();
+ if(Storage::disk('fewo_infos')->exists( $dir.$filename )){
+ return Storage::disk('fewo_infos')->url($dir.$filename);
+ }
+ return false;
+ }
+
+ public function getTravelInfoLastModified(){
+ $dir = $this->getBookingDateYear()."/";
+ $filename = $this->getTravelInfoFileName();
+ if(Storage::disk('fewo_infos')->exists( $dir.$filename )){
+ return Carbon::createFromTimestamp(Storage::disk('fewo_infos')->lastModified($dir.$filename))->format("H:i d.m.Y");
+
+ }
+ return false;
+ }
+
+
+ //get strings
public function getBookingUserAddress(){
if($this->travel_user){
$company = $this->travel_user->company ? $this->travel_user->company ."\n" : "";
@@ -367,12 +485,39 @@ class TravelUserBookingFewo extends Model
}
return "";
}
- public function getNameAddressLocation(){
+ public function getNameAddressLocation($sep = "\n"){
if($this->fewo_lodging){
- return $this->fewo_lodging->name."\n".$this->fewo_lodging->adress1." ".$this->fewo_lodging->adress2.", ".$this->fewo_lodging->zip_code." ".$this->fewo_lodging->city;
+ return $this->fewo_lodging->name.$sep.$this->fewo_lodging->adress1." ".$this->fewo_lodging->adress2.", ".$this->fewo_lodging->zip_code." ".$this->fewo_lodging->city;
}
return "";
}
+ public function getUserSalutation(){
+
+ $salutation = __('Dear customer');
+ if($this->travel_user){
+ if($this->travel_user->salutation_id == 1){
+ $salutation = __('Dear Sir')." ".$this->travel_user->last_name;
+ }else{
+ $salutation = __('Dear Mrs')." ".$this->travel_user->last_name;
+ }
+ }
+ return $salutation;
+ }
+
+ public function getServiceMailSubject(){
+ if($this->fewo_lodging){
+ return "Neue Anmietung ".$this->fewo_lodging->name." mit Anreise ".$this->from_date;
+ }
+ return "Neue Anmietung Anreise ".$this->from_date;
+ }
+
+ public function getServiceMailContent(){
+ return $this->adults." + ".$this->children." (Erwachsene + Kinder)\n".
+ $this->from_date." - ".$this->to_date." ".$this->travel_user->first_name." ".$this->travel_user->last_name;
+ }
+
+
+
}
diff --git a/app/Repositories/TravelUserBookingFewoRepository.php b/app/Repositories/TravelUserBookingFewoRepository.php
index 0f9151b..86633a1 100644
--- a/app/Repositories/TravelUserBookingFewoRepository.php
+++ b/app/Repositories/TravelUserBookingFewoRepository.php
@@ -27,6 +27,27 @@ class TravelUserBookingFewoRepository extends BaseRepository {
}
+ public function createTravelInfoPDF($id, $travel_info_user_text){
+
+ $model = TravelUserBookingFewo::findOrFail($id);
+
+ $model->info_mail_text = $travel_info_user_text;
+ $model->save();
+
+ $data = [
+ 'model' => $model,
+ 'travel_info_user_text' => $travel_info_user_text,
+ ];
+ $pdf = PDF::loadView('pdf.travel_info_fewo', $data);
+ $pdf->setPaper('A4', 'portrait');
+
+ $path =$model->getTravelInfoPath();
+ $filename = $model->getTravelInfoFileName();
+ $pdf->save($path.$filename);
+
+ return $path.$filename;
+ //return $pdf->stream('invoice.pdf');
+ }
public function createInvoicePDF($id){
@@ -37,18 +58,12 @@ class TravelUserBookingFewoRepository extends BaseRepository {
$pdf = PDF::loadView('pdf.invoice_fewo', $data);
$pdf->setPaper('A4', 'portrait');
- $dir = "/".$model->getBookingDateYear()."/";
- if(!Storage::disk('invoices_fewo')->exists( $dir )){
- Storage::disk('invoices_fewo')->makeDirectory($dir); //creates directory
- }
- $path = Storage::disk('invoices_fewo')->getAdapter()->getPathPrefix();
- $filename = Util::sanitize($model->invoice_number).".pdf";
+ $path =$model->getInvoicePath();
+ $filename = $model->getInvoiceFileName();
+ $pdf->save($path.$filename);
- $pdf->save($path.$dir.$filename);
-
- //return $path.$dir.$filename;
-
- return $pdf->stream('invoice.pdf');
+ return $path.$filename;
+ //return $pdf->stream('invoice.pdf');
}
public function check($id,$data)
{
@@ -77,13 +92,13 @@ class TravelUserBookingFewoRepository extends BaseRepository {
'travel_user_id' => 'required',
'fewo_lodging_id' => 'required',
'booking_date' => 'required',
- 'invoice_number' => 'required',
+ 'invoice_number' => 'required|unique:mysql_stern.travel_user_booking_fewos,invoice_number,'.$model->id,
'from_date'=>'required',
'to_date'=>'required',
'travel_booking_fewo_channel_id' => 'required',
'status' => 'required'
);
-
+ // $rules['email'] = 'required|string|email|max:255|unique:.travel_users,email,'.$model->id;
$validator = Validator::make(Input::all(), $rules);
if ($validator->fails()) {
return ['success' => false, 'error' => $validator];
diff --git a/app/Services/Util.php b/app/Services/Util.php
index 5a1761b..cb9e42e 100644
--- a/app/Services/Util.php
+++ b/app/Services/Util.php
@@ -52,4 +52,19 @@ class Util
strtolower($clean) :
$clean;
}
+
+
+ public static function replacePlaceholders($search, $replace){
+
+ preg_match_all("/\{{(.+?)\}}/", $search, $matches);
+ if (isset($matches[1]) && count($matches[1]) > 0){
+ foreach ($matches[1] as $key => $value) {
+ $kvalue = trim($value);
+ if (array_key_exists($kvalue, $replace)){
+ $search = preg_replace("/\{\{$value\}\}/", $replace[$kvalue], $search);
+ }
+ }
+ }
+ return $search;
+ }
}
\ No newline at end of file
diff --git a/config/filesystems.php b/config/filesystems.php
index dfb2b14..13b8615 100755
--- a/config/filesystems.php
+++ b/config/filesystems.php
@@ -54,10 +54,16 @@ return [
'url' => env('APP_URL').'/storage',
'visibility' => 'public',
],
- 'invoices_fewo' => [
+ 'fewo_invoices' => [
'driver' => 'local',
- 'root' => storage_path('app/invoices/fewo'),
- 'url' => env('APP_URL').'/storage/invoices/fewo',
+ 'root' => storage_path('app/fewo/invoices'),
+ 'url' => env('APP_URL').'/storage/fewo/invoices',
+ 'visibility' => 'public',
+ ],
+ 'fewo_infos' => [
+ 'driver' => 'local',
+ 'root' => storage_path('app/fewo/infos'),
+ 'url' => env('APP_URL').'/storage/fewo/infos',
'visibility' => 'public',
],
's3' => [
diff --git a/config/mail.php b/config/mail.php
index 5b9526f..ec2334e 100755
--- a/config/mail.php
+++ b/config/mail.php
@@ -29,7 +29,7 @@ return [
|
*/
- 'host' => env('MAIL_HOST', 'smtp.kagado.de'),
+ 'host' => env('MAIL_HOST', 'mail.your-server.de'),
/*
|--------------------------------------------------------------------------
@@ -56,9 +56,12 @@ return [
*/
'from' => [
- 'address' => env('MAIL_FROM_ADDRESS', 'mail@kagado.de'),
+ 'address' => env('MAIL_FROM_ADDRESS', 'info@mein.sterntours.de'),
'name' => env('MAIL_FROM_NAME', 'Mein Stern-Tours'),
],
+ 'mail_bbc' => env('MAIL_BBC', 'info@sterntours.de'),
+
+
/*
|--------------------------------------------------------------------------
diff --git a/database/migrations/2019_03_21_123748_create_travel_user_booking_fewos_table.php b/database/migrations/2019_03_21_123748_create_travel_user_booking_fewos_table.php
index 060ce10..68015eb 100644
--- a/database/migrations/2019_03_21_123748_create_travel_user_booking_fewos_table.php
+++ b/database/migrations/2019_03_21_123748_create_travel_user_booking_fewos_table.php
@@ -51,7 +51,10 @@ class CreateTravelUserBookingFewosTable extends Migration
$table->unsignedTinyInteger('status')->default(0);
$table->text('status_text')->nullable();
-
+ $table->text('send_user_mail')->nullable();
+ $table->text('send_service_mail')->nullable();
+ $table->text('info_mail_text')->nullable();
+ $table->text('send_info_mail')->nullable();
$table->timestamps();
$table->softDeletes();
diff --git a/public/css/application.css b/public/css/application.css
index 5aa6325..d6b2d78 100644
--- a/public/css/application.css
+++ b/public/css/application.css
@@ -89,4 +89,10 @@
}
+.card hr.hr-primary {
+ border-color: rgba(100, 136, 89, 0.4);
+}
+
+
+
diff --git a/public/images/da2f996_wlogo_1.png b/public/images/da2f996_wlogo_1.png
new file mode 100644
index 0000000..bb18b78
Binary files /dev/null and b/public/images/da2f996_wlogo_1.png differ
diff --git a/resources/views/admin/user_edit.blade.php b/resources/views/admin/user_edit.blade.php
index 4b3ce6b..9e08d1b 100644
--- a/resources/views/admin/user_edit.blade.php
+++ b/resources/views/admin/user_edit.blade.php
@@ -16,11 +16,18 @@
@endif
-
- User bearbeiten/anlegen
-
{!! Form::open(['url' => route('admin_user_store'), 'class' => 'form-horizontal']) !!}
+
+
+ User @if($user->id == "new") anlegen @else {{"(ID: ".$user->id.")"}} verwalten @endif
+
+
+
+
@include('admin.user_form')
diff --git a/resources/views/cms/content/modal.blade.php b/resources/views/cms/content/modal.blade.php
index 95ed750..ef493d5 100755
--- a/resources/views/cms/content/modal.blade.php
+++ b/resources/views/cms/content/modal.blade.php
@@ -56,6 +56,13 @@
+
+
@endif
-
- Reiseführer verwalten
-
+
{!! Form::open(['url' => route('cms_travel_magazine_detail', [$id]), 'class' => 'form-horizontal']) !!}
+
+
+ Reiseführer @if($id == "new") anlegen @else {{"(ID: ".$id.")"}} verwalten @endif
+
+
+
+
diff --git a/resources/views/drafts/detail.blade.php b/resources/views/drafts/detail.blade.php
index 38a9f4f..4f93b97 100755
--- a/resources/views/drafts/detail.blade.php
+++ b/resources/views/drafts/detail.blade.php
@@ -102,8 +102,8 @@
@if(count($draft->draft_items))
@php($i = 1)
-
{{ __('save changes') }}
-
{{ __('back') }}
+
{{ __('save changes') }}
+
{{ __('back') }}
Neue Leistung hinzufügen
@@ -287,7 +287,6 @@
Neue Leistung hinzufügen
-
{{ __('save changes') }}
{{ __('back') }}
diff --git a/resources/views/emails/auth.blade.php b/resources/views/emails/auth.blade.php
index ae573b1..197a1c5 100644
--- a/resources/views/emails/auth.blade.php
+++ b/resources/views/emails/auth.blade.php
@@ -109,7 +109,6 @@
-
@@ -119,7 +118,7 @@
-
+
@@ -133,7 +132,6 @@
-
-
+
@@ -206,9 +204,7 @@
-
-
-
diff --git a/resources/views/emails/content.blade.php b/resources/views/emails/content.blade.php
new file mode 100644
index 0000000..5595660
--- /dev/null
+++ b/resources/views/emails/content.blade.php
@@ -0,0 +1,181 @@
+
+
+
+
+
+ mein STERN TOURS
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ $content }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {!! nl2br($content) !!}
+
+
+
+
+
+
+
+
+
+
+
+ STERN TOURS GmbH | Emser Straße 3 | 10719 Berlin
+ Tel: +49 (0) 30 700 94 100 | Fax: +49 (0) 30 700 94 1044 | stern@sterntours.de
+
+ www.sterntours.de
+
+
+
+
+
+ Geschäftsführer: Thomas Stern | Registergericht: Amtsgericht Charlottenburg | Registernummer: HRB 67111
+ Steuernummer: 27/545/30703 | UST-Ident.-Nr.: DE192609253 | Finanzamt: Wilmersdorf
+ Datenschutzerklärung
+ © 2018 All Rights Reserved
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/resources/views/emails/info.blade.php b/resources/views/emails/info.blade.php
new file mode 100644
index 0000000..ffde2bd
--- /dev/null
+++ b/resources/views/emails/info.blade.php
@@ -0,0 +1,178 @@
+
+
+
+
+
+ mein STERN TOURS
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ $copy1line }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {!! nl2br($copy1line) !!}
+
+
+
+
+
+
+
+
+
+
+ STERN TOURS GmbH | Emser Straße 3 | 10719 Berlin
+ Tel: +49 (0) 30 700 94 100 | Fax: +49 (0) 30 700 94 1044 | stern@sterntours.de
+
+ www.sterntours.de
+
+
+
+
+
+ Geschäftsführer: Thomas Stern | Registergericht: Amtsgericht Charlottenburg | Registernummer: HRB 67111
+ Steuernummer: 27/545/30703 | UST-Ident.-Nr.: DE192609253 | Finanzamt: Wilmersdorf
+ Datenschutzerklärung
+ © 2018 All Rights Reserved
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/resources/views/emails/invoice.blade.php b/resources/views/emails/invoice.blade.php
new file mode 100644
index 0000000..d3bab65
--- /dev/null
+++ b/resources/views/emails/invoice.blade.php
@@ -0,0 +1,268 @@
+
+
+
+
+
+ mein STERN TOURS
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ $copy1line }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ $salutation }}
+
+ {{ $copy1line }}
+
+
+
+
+
+
+
+
+
+
+ {{ __('Belegungszeitraum:') }}
+
+
+ von {{$model->from_date}} bis {{$model->to_date}}
+
+
+
+
+ {{ __('Ferienwohnung:') }}
+
+
+ {!! nl2br($model->getNameAddressLocation()) !!}
+
+
+
+
+ {{ __('Mietpreis:') }}
+
+
+ {{ $model->price_travel }} €
+
+
+
+
+ {{ __('Service-Gebühr:') }}
+
+
+ {{ $model->price_service }} €
+
+
+
+
+ {{ __('Kaution:') }}
+
+
+ {{ $model->price_deposit }} €
+
+
+
+
+ {{ __('Gesamtpreis:') }}
+
+
+ {{ $model->price_total }} €
+
+
+
+
+
+
+
+
+ @if($notice && $notice != "")
+
+
+ Wichtige Hinweise:
+ {!! nl2br($notice) !!}
+
+
+ @endif
+
+
+
+ Mietbedingungen und Mietbestätigung / Rechnung finden Sie als PDF im Anhang.
+ Mit dieser Buchungsbestätigung ist der Mietvertrag für Sie und uns verbindlich.
+
+ eine sofort zahlungsfällige Anzahlung von 50% Mietpreis = {{ $model->getPriceTravelFirstPay() }} €
+ sowie eine Restzahlung von {{ $model->getPriceTravelSecondPay() }} € bis spätestens 4 Wochen vor Belegungsbeginn inkl. der oben genannten Kaution.
+
+ auf folgendes Bankkonto:
+ STERN TOURS GmbH
+ IBAN: DE83100208900018857111
+ BIC: HYVEDEMM488
+
+ Mit freundlichen Grüßen
+ Ihr Team von STERN TOURS
+
+
+
+
+
+
+
+
+
+
+
+ STERN TOURS GmbH | Emser Straße 3 | 10719 Berlin
+ Tel: +49 (0) 30 700 94 100 | Fax: +49 (0) 30 700 94 1044 | stern@sterntours.de
+
+ www.sterntours.de
+
+
+
+
+
+ Geschäftsführer: Thomas Stern | Registergericht: Amtsgericht Charlottenburg | Registernummer: HRB 67111
+ Steuernummer: 27/545/30703 | UST-Ident.-Nr.: DE192609253 | Finanzamt: Wilmersdorf
+ Datenschutzerklärung
+ © 2018 All Rights Reserved
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/resources/views/pdf/invoice_fewo.blade.php b/resources/views/pdf/invoice_fewo.blade.php
index ec716d0..b68837b 100644
--- a/resources/views/pdf/invoice_fewo.blade.php
+++ b/resources/views/pdf/invoice_fewo.blade.php
@@ -167,8 +167,7 @@
-
-
Sehr geehrte Damen und Herren,
+
{{$model->getUserSalutation()}},
herzlichen Dank für Ihre Online-Buchung vom {{$model->booking_date}} :
Auf Grundlage der Beschreibung der gebuchten Unterkunft und unserer im Rahmen des Onlinebuchungsprozesses vertraglich einbezogenen Mietbedingungen
@@ -178,7 +177,7 @@
{{ __('Belegungszeitraum:') }}
- {{$model->from_date}} von {{$model->to_date}}
+ von {{$model->from_date}} bis {{$model->to_date}}
diff --git a/resources/views/pdf/travel_info_fewo.blade.php b/resources/views/pdf/travel_info_fewo.blade.php
new file mode 100644
index 0000000..8e1ceba
--- /dev/null
+++ b/resources/views/pdf/travel_info_fewo.blade.php
@@ -0,0 +1,207 @@
+
+
+
+
+
+
+ {!! Html::style('css/invoice_fewo_pdf.css') !!}
+
+
+
+{{--
+
+
+
+ --}}
+
+
+
+
+
+
STERN TOURS GmbH • Emser Str. 3 • 10719 Berlin
+ {!! nl2br($model->getBookingUserAddress()) !!}
+
+
+
+ Berlin, den {!! date("d.m.Y") !!}
+
+
+
+ Anreiseinfo Nr. {{$model->invoice_number}}
+
+
+
+
+
{!! nl2br($travel_info_user_text) !!}
+
+
+
+
+
\ No newline at end of file
diff --git a/resources/views/settings/travel_country/detail.blade.php b/resources/views/settings/travel_country/detail.blade.php
index 8edcc6b..2c47a66 100755
--- a/resources/views/settings/travel_country/detail.blade.php
+++ b/resources/views/settings/travel_country/detail.blade.php
@@ -2,11 +2,17 @@
@section('content')
-
- Reiseland verwalten
-
-
{!! Form::open(['url' => route('admin_settings_travel_country_detail', [$id]), 'class' => 'form-horizontal']) !!}
+
+
+ Reiseland @if($id == "new") anlegen @else {{"(ID: ".$id.")"}} verwalten @endif
+
+
+
+
diff --git a/resources/views/travel/program/detail.blade.php b/resources/views/travel/program/detail.blade.php
index 41c34f9..c834c14 100755
--- a/resources/views/travel/program/detail.blade.php
+++ b/resources/views/travel/program/detail.blade.php
@@ -2,11 +2,18 @@
@section('content')
-
- Programm verwalten
-
{!! Form::open(['url' => route('travel_program_detail', [$id]), 'class' => 'form-horizontal']) !!}
+
+
+ Programm @if($id == "new") anlegen @else {{"(ID: ".$id.")"}} verwalten @endif
+
+
+
+
diff --git a/resources/views/travel/user/booking/detail.blade.php b/resources/views/travel/user/booking/detail.blade.php
index 1afe78c..35a5c86 100755
--- a/resources/views/travel/user/booking/detail.blade.php
+++ b/resources/views/travel/user/booking/detail.blade.php
@@ -16,13 +16,17 @@
@endif
-
- Kunden @if($id == "new") anlegen @else {{"(ID: ".$id.")"}} verwalten @endif
-
-
{!! Form::open(['url' => route('travel_user_booking_fewo_detail', [$id]), 'class' => 'form-horizontal']) !!}
-
+
+ Buchung FeWo @if($id == "new") anlegen @else {{"(ID: ".$id.")"}} verwalten @endif
+
+
+
+
@include('travel.user.booking.form')
diff --git a/resources/views/travel/user/booking/form.blade.php b/resources/views/travel/user/booking/form.blade.php
index 4713b94..f962dd5 100755
--- a/resources/views/travel/user/booking/form.blade.php
+++ b/resources/views/travel/user/booking/form.blade.php
@@ -123,10 +123,12 @@
{!! Form::checkbox('is_calendar_stern_tours', 1, $travel_user_booking_fewo->is_calendar_stern_tours, ['class'=>'custom-control-input']) !!}
- {{__('STERN TOURS')}} Reservierung:
+ {{__('STERN TOURS')}} Im Kalender:
@if($travel_user_booking_fewo->fewo_reservation && isset($travel_user_booking_fewo->fewo_reservation->from_date))
{{ $travel_user_booking_fewo->fewo_reservation->from_date->format('d.m.Y') }} - {{ $travel_user_booking_fewo->fewo_reservation->to_date->format('d.m.Y') }}
- @endif
+ @else
+ nicht eingetragen
+ @endif
@@ -148,7 +150,7 @@
{{ __('Notiz') }}
- {{ Form::textarea('status_text', $travel_user_booking_fewo->status_text, ['class' => 'form-control', 'rows'=>4]) }}
+ {{ Form::textarea('status_text', $travel_user_booking_fewo->status_text, ['class' => 'form-control autoExpand', 'rows'=>1]) }}
@@ -157,7 +159,7 @@
@@ -166,21 +168,169 @@
-
- {{ __('Mietbestätigung / Rechnung erstellen') }}
-
-
+ @if($travel_user_booking_fewo->isInvoice())
+
Mietbestätigung / Rechnung
+
+ {{ __('Mietbestätigung / Rechnung PDF erstellen') }}
+
+
+
Mietbestätigung / Rechnung: {{$travel_user_booking_fewo->getInvoiceFileName()}}
+ Erstellt:
{{$travel_user_booking_fewo->getInvoiceLastModified()}}
+ @else
+
Mietbestätigung / Rechnung
+
+ {{ __('Mietbestätigung / Rechnung PDF erstellen') }}
+
+
+ @endif
+ @if($travel_user_booking_fewo->isInvoice())
+ @if($travel_user_booking_fewo->send_user_mail)
+
+
+ @foreach($travel_user_booking_fewo->send_user_mail as $send_user_mail)
+
+ {!! key($send_user_mail) !!} E-Mail versendet.
+ {!! nl2br(current($send_user_mail)) !!}
+
+ @endforeach
+
+
+ @endif
+
+
+ {{ __('E-Mail mit Mietbestätigung / Rechnung und Mietbedingungen an Kunden versenden') }}
+
+ @endif
+@if($travel_user_booking_fewo->isInvoice())
+
+
+
+ @if($travel_user_booking_fewo->isTravelInfo())
+
Anreiseinfo
+
+ {{ __('Anreiseinfo speichern und PDF erstellen') }}
+
+
+
{{$travel_user_booking_fewo->getTravelInfoFileName()}}
+ Erstellt: {{$travel_user_booking_fewo->getTravelInfoLastModified()}}
+ @else
+
Anreiseinfo
+
+ {{ __('Anreiseinfo speichern und PDF erstellen') }}
+
+
+ @endif
+
+ @if($travel_user_booking_fewo->isTravelInfo())
+ @if($travel_user_booking_fewo->send_info_mail)
+
+
+ @foreach($travel_user_booking_fewo->send_info_mail as $send_info_mail)
+
+ {!! key($send_info_mail) !!} E-Mail versendet.
+ {!! nl2br(current($send_info_mail)) !!}
+
+ @endforeach
+
+
+ @endif
+
+
+ {{ __('E-Mail mit Anreiseinfo an Kunden versenden') }}
+
+ @endif
+
+
+@endif
+
+@if($travel_user_booking_fewo->isInvoice())
+
+
+
Dienstleister Mail
+ @if($travel_user_booking_fewo->send_service_mail)
+
+
+ @foreach($travel_user_booking_fewo->send_service_mail as $send_service_mail)
+
+ {!! $send_service_mail['d'] !!} {{$send_service_mail['m']}}
+ {{$send_service_mail['s']}}
+ {!! nl2br($send_service_mail['c']) !!}
+
+ @endforeach
+
+
+ @endif
+
+
+ {{ __('E-Mail an Dienstleister vor Ort versenden') }}
+
+
+
+@endif
+
+
+
+