Mail and Booking
This commit is contained in:
parent
62e84637b6
commit
5daea268f7
250 changed files with 5377 additions and 1473 deletions
|
|
@ -145,9 +145,15 @@ class BookingDraftItem extends Model
|
|||
public function getStartDateAttribute(){
|
||||
return isset($this->attributes['start_date']) ? Carbon::parse($this->attributes['start_date'])->format("d.m.Y") : '';
|
||||
}
|
||||
public function getStartDateRow(){
|
||||
return isset($this->attributes['start_date']) ? Carbon::parse($this->attributes['start_date']) : null;
|
||||
}
|
||||
public function getEndDateAttribute(){
|
||||
return isset($this->attributes['end_date']) ? Carbon::parse($this->attributes['end_date'])->format("d.m.Y") : '';
|
||||
}
|
||||
public function getEndDateRow(){
|
||||
return isset($this->attributes['end_date']) ? Carbon::parse($this->attributes['end_date']) : null;
|
||||
}
|
||||
|
||||
public function setStartDateAttribute($value)
|
||||
{
|
||||
|
|
@ -157,6 +163,10 @@ class BookingDraftItem extends Model
|
|||
$this->attributes['start_date'] = (new Carbon($value))->format('Y-m-d');
|
||||
}
|
||||
}
|
||||
public function setStartDateRow($value)
|
||||
{
|
||||
$this->attributes['start_date'] = $value;
|
||||
}
|
||||
public function setEndDateAttribute($value){
|
||||
if (!$value) {
|
||||
$this->attributes['end_date'] = null;
|
||||
|
|
@ -164,6 +174,9 @@ class BookingDraftItem extends Model
|
|||
$this->attributes['end_date'] = (new Carbon($value))->format('Y-m-d');
|
||||
}
|
||||
}
|
||||
public function setEndDateRow($value){
|
||||
$this->attributes['end_date'] = $value;
|
||||
}
|
||||
|
||||
//price_adult
|
||||
public function setPriceAdultAttribute($value)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue