This commit is contained in:
Kevin Adametz 2020-05-06 15:52:59 +02:00
parent 68b9d1ff88
commit b9c26d06d0
75 changed files with 2143 additions and 818 deletions

View file

@ -6,6 +6,7 @@
namespace App\Models;
use App\Services\Util;
use Carbon\Carbon;
use Illuminate\Database\Eloquent\Model;
@ -81,4 +82,14 @@ class BookingServiceItem extends Model
{
return $this->belongsTo(TravelCompany::class);
}
public function getServicePriceAttribute()
{
return Util::_number_format($this->attributes['service_price']);
}
public function getServicePriceRaw()
{
return $this->attributes['service_price'];
}
}