Modify translations & fix detail page for loan orders
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
|
||||
namespace App\Models\Order\Loan;
|
||||
|
||||
use App\Models\Branch\Branch;
|
||||
use App\Models\System\Location\Province;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
@@ -38,7 +40,7 @@ class LoanOrder extends Model
|
||||
'phone_additional',
|
||||
'phone_home',
|
||||
'work_region',
|
||||
'work_province',
|
||||
'work_province_id',
|
||||
'work_company',
|
||||
'work_company_accountant_number',
|
||||
'work_started_at',
|
||||
@@ -75,4 +77,20 @@ class LoanOrder extends Model
|
||||
{
|
||||
return $this->belongsTo(LoanType::class);
|
||||
}
|
||||
|
||||
/**
|
||||
* Branch
|
||||
*/
|
||||
public function branch(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(Branch::class);
|
||||
}
|
||||
|
||||
/**
|
||||
* Work province
|
||||
*/
|
||||
public function workProvince(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(Province::class, 'province_id');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user