/home/techb158/immovalet.com/platform/plugins/payment/src/Models
NameSizeModeActions
Payment.php17160644editdlrm
Edit: /home/techb158/immovalet.com/platform/plugins/payment/src/Models/Payment.php (1716B)
PaymentMethodEnum::class, 'status' => PaymentStatusEnum::class, ]; /** * @return \Illuminate\Database\Eloquent\Relations\BelongsTo */ public function user() { return $this->belongsTo(User::class)->withDefault(); } /** * @return MorphTo */ public function customer(): MorphTo { return $this->morphTo(); } /** * @return string */ public function getDescription(): string { $time = Html::tag('span', $this->created_at->diffForHumans(), ['class' => 'small italic']); return 'You have created a payment #' . $this->charge_id . ' via ' . $this->payment_channel->label() . ' ' . $time . ': ' . number_format($this->amount, 2, '.', ',') . $this->currency; } }