08 2024
This commit is contained in:
parent
c1c613a4b9
commit
881fc84207
384 changed files with 50679 additions and 990 deletions
|
|
@ -149,6 +149,7 @@ class TravelUserBookingFewo extends Model
|
|||
'price_total' => 'float',
|
||||
'travel_booking_fewo_channel_id' => 'int',
|
||||
'is_calendar_fewo_direct' => 'bool',
|
||||
'is_calendar_traum_fewo' => 'bool',
|
||||
'is_calendar_hrs' => 'bool',
|
||||
'is_calendar_stern_tours' => 'bool',
|
||||
'status' => 'int',
|
||||
|
|
@ -187,6 +188,7 @@ class TravelUserBookingFewo extends Model
|
|||
'travel_booking_fewo_channel_id',
|
||||
'notice',
|
||||
'is_calendar_fewo_direct',
|
||||
'is_calendar_traum_fewo',
|
||||
'is_calendar_hrs',
|
||||
'is_calendar_stern_tours',
|
||||
'status',
|
||||
|
|
@ -268,6 +270,7 @@ class TravelUserBookingFewo extends Model
|
|||
public function getCheckedBadgeCalendar(){
|
||||
$back = "";
|
||||
$back .= $this->is_calendar_fewo_direct ? ' <span class="badge badge-pill badge-success"><i class="fa fa-check"></i></span>' : ' <span class="badge badge-pill badge-danger"><i class="fa fa-times"></i></span>';
|
||||
$back .= $this->is_calendar_traum_fewo ? ' <span class="badge badge-pill badge-success"><i class="fa fa-check"></i></span>' : ' <span class="badge badge-pill badge-danger"><i class="fa fa-times"></i></span>';
|
||||
$back .= $this->is_calendar_hrs ? ' <span class="badge badge-pill badge-success"><i class="fa fa-check"></i></span>' : ' <span class="badge badge-pill badge-danger"><i class="fa fa-times"></i></span>';
|
||||
$back .= $this->is_calendar_stern_tours ? ' <span class="badge badge-pill badge-success"><i class="fa fa-check"></i></span>' : ' <span class="badge badge-pill badge-danger"><i class="fa fa-times"></i></span>';
|
||||
return $back;
|
||||
|
|
@ -544,6 +547,14 @@ class TravelUserBookingFewo extends Model
|
|||
return $path.$dir;
|
||||
}
|
||||
|
||||
public function getInvoiceDir(){
|
||||
$dir = $this->getBookingDateYear()."/";
|
||||
if(!Storage::disk('fewo_invoices')->exists( $dir )){
|
||||
Storage::disk('fewo_invoices')->makeDirectory($dir); //creates directory
|
||||
}
|
||||
return $dir;
|
||||
}
|
||||
|
||||
public function isInvoice(){
|
||||
if($this->invoice_number){
|
||||
$dir = $this->getBookingDateYear()."/";
|
||||
|
|
@ -612,6 +623,14 @@ class TravelUserBookingFewo extends Model
|
|||
return $path.$dir;
|
||||
}
|
||||
|
||||
public function getTravelInfoDir(){
|
||||
$dir = $this->getBookingDateYear()."/";
|
||||
if(!Storage::disk('fewo_infos')->exists( $dir )){
|
||||
Storage::disk('fewo_infos')->makeDirectory($dir); //creates directory
|
||||
}
|
||||
return $dir;
|
||||
}
|
||||
|
||||
public function isTravelInfo(){
|
||||
if($this->invoice_number){
|
||||
$dir = $this->getBookingDateYear()."/";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue