Refactor CurrencyRateForm and PayVisaMasterPaymentAction: streamline component definitions, enhance layout with fieldsets, and update Turkish translations for payment-related terms.
This commit is contained in:
@@ -2,8 +2,8 @@
|
||||
|
||||
namespace App\Modules\CurrencyRate\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Casts\Attribute;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
/**
|
||||
* @property int $id
|
||||
@@ -13,22 +13,23 @@ use Illuminate\Database\Eloquent\Casts\Attribute;
|
||||
* @property \Illuminate\Support\Carbon $created_at
|
||||
* @property \Illuminate\Support\Carbon $updated_at
|
||||
*/
|
||||
class CurrencyRate extends Model
|
||||
class CurrencyRate extends Model
|
||||
{
|
||||
/**
|
||||
* The table associated with the model.
|
||||
*/
|
||||
protected $table = 'currency_rates';
|
||||
|
||||
/**
|
||||
/**
|
||||
* Get the user's first name.
|
||||
*/
|
||||
protected function name(): Attribute
|
||||
{
|
||||
return Attribute::make(
|
||||
get: fn () => $this->currency_from . '-' . $this->currency_to,
|
||||
get: fn () => $this->currency_from.'-'.$this->currency_to,
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Currencies
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user