Refactor CurrencyRateForm and PayVisaMasterPaymentAction: streamline component definitions, enhance layout with fieldsets, and update Turkish translations for payment-related terms.

This commit is contained in:
2025-11-14 18:29:14 +05:00
parent 2659aae278
commit 8637c22ed7
6 changed files with 85 additions and 101 deletions

View File

@@ -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
*