Пример #1
0
        return Util::getDateEdit($this->birth_date);
    }
    public function getFullNametoPrint()
    {
        return $this->fisrt_name . ' ' . $this->second_name . ' ' . $this->last_name . ' ' . $this->mothers_last_name;
    }
    public function getFullDateNactoPrint()
    {
        if ($this->birth_date) {
            $meses = array("Enero", "Febrero", "Marzo", "Abril", "Mayo", "Junio", "Julio", "Agosto", "Septiembre", "Octubre", "Noviembre", "Diciembre");
            return date("d", strtotime($this->birth_date)) . " de " . $meses[date("m", strtotime($this->birth_date)) - 1] . " de " . date("Y", strtotime($this->fech_nac));
        }
    }
    public function getFull_fech_decetoPrint()
    {
        if ($this->date_death) {
            $meses = array("Enero", "Febrero", "Marzo", "Abril", "Mayo", "Junio", "Julio", "Agosto", "Septiembre", "Octubre", "Noviembre", "Diciembre");
            return date("d", strtotime($this->date_death)) . " " . $meses[date("n", strtotime($this->date_death)) - 1] . " " . date("Y", strtotime($this->date_death));
        }
    }
    public function getFullName()
    {
        return $this->last_name . ' ' . $this->mothers_last_name . ' ' . $this->first_name . ' ' . $this->second_name;
    }
}
Spouse::created(function ($spouse) {
    Activity::createdSpouse($spouse);
});
Spouse::updating(function ($spouse) {
    Activity::updateSpouse($spouse);
});