70 lines
1.6 KiB
PHP
70 lines
1.6 KiB
PHP
<?php
|
|
|
|
/**
|
|
* Created by Reliese Model.
|
|
*/
|
|
|
|
namespace App\Models;
|
|
|
|
use Carbon\Carbon;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
|
|
|
/**
|
|
* Class NhInsurancesHavingRight
|
|
*
|
|
* @property int $id
|
|
* @property string $lastname
|
|
* @property string|null $firstname
|
|
* @property string $gender
|
|
* @property Carbon $birthdate
|
|
* @property string $affiliation
|
|
* @property float $bonus_amount
|
|
* @property float $insurance_coverage_amount
|
|
* @property string|null $birthdate_proof
|
|
* @property string|null $birthdate_proof_doc
|
|
* @property string|null $justice_doc
|
|
* @property string|null $marriage_certificate_doc
|
|
* @property string|null $id_document_type
|
|
* @property string|null $id_document_front
|
|
* @property string|null $id_document_back
|
|
* @property string|null $profile_image
|
|
* @property string|null $deleted_at
|
|
* @property Carbon $created_at
|
|
* @property Carbon $updated_at
|
|
*
|
|
* @package App\Models
|
|
*/
|
|
class NhHavingRight extends Model
|
|
{
|
|
protected $table = 'nh_having_rights';
|
|
protected $appends = ['affiliation_tr'];
|
|
|
|
protected $dates = [
|
|
'birthdate'
|
|
];
|
|
|
|
protected $fillable = [
|
|
'lastname',
|
|
'firstname',
|
|
'gender',
|
|
'birthdate',
|
|
'affiliation',
|
|
'bonus_amount',
|
|
'insurance_coverage_amount',
|
|
'birthdate_proof',
|
|
'birthdate_proof_doc',
|
|
'justice_doc',
|
|
'marriage_certificate_doc',
|
|
'id_document_type',
|
|
'id_document_front',
|
|
'id_document_back',
|
|
'profile_image'
|
|
];
|
|
|
|
public function getAffiliationTrAttribute()
|
|
{
|
|
return trans('states.' . $this->attributes['affiliation']);
|
|
}
|
|
}
|