public function print_affiliate($affiliate) { $header1 = "DIRECCIÓN DE BENEFICIOS ECONÓMICOS"; $header2 = "UNIDAD DE FONDO DE RETIRO POLICIAL INDIVIDUAL"; $title = "REPORTE DE AFILIADO"; $date = Util::getDateEdit(date('Y-m-d')); $current_date = Carbon::now(); $hour = Carbon::parse($current_date)->toTimeString(); $data = $this->getData($affiliate); $affiliate = $data['affiliate']; $spouse = $data['spouse']; $total_gain = $data['total_gain']; $total_public_security_bonus = $data['total_public_security_bonus']; $total_quotable = $data['total_quotable']; $total_retirement_fund = $data['total_retirement_fund']; $total_mortuary_quota = $data['total_mortuary_quota']; $total = $data['total']; $contributions = Contribution::select(['id', 'month_year', 'degree_id', 'unit_id', 'item', 'base_wage', 'seniority_bonus', 'study_bonus', 'position_bonus', 'border_bonus', 'east_bonus', 'public_security_bonus', 'gain', 'quotable', 'retirement_fund', 'mortuary_quota', 'total'])->where('affiliate_id', $affiliate->id)->get(); $date = Util::getfulldate(date('Y-m-d')); $view = \View::make('affiliates.print.show', compact('header1', 'header2', 'title', 'date', 'hour', 'affiliate', 'spouse', 'total_gain', 'total_public_security_bonus', 'total_quotable', 'total_retirement_fund', 'total_mortuary_quota', 'total', 'contributions'))->render(); $pdf = \App::make('dompdf.wrapper'); $pdf->loadHTML($view)->setPaper('legal', 'landscape'); return $pdf->stream(); }
public function print_legal_assessment($afid) { $data = $this->getData($afid); $affiliate = $data['affiliate']; $applicant = $data['applicant']; $retirement_fund = $data['retirement_fund']; $documents = $data['documents']; $date = Util::getfulldate(date('Y-m-d')); $view = \View::make('retirement_funds.print.legal_assessment.show', compact('affiliate', 'applicant', 'retirement_fund', 'documents', 'date'))->render(); $pdf = \App::make('dompdf.wrapper'); $name_input = $affiliate->id . "-" . $affiliate->last_name . "-" . $affiliate->mothers_last_name . "-" . $affiliate->first_name . "-" . $affiliate->identity_card; $pdf->loadHTML($view)->setPaper('letter'); return $pdf->stream('calif'); }
public function getFullDateNactoPrint() { return Util::getfulldate($this->fech_nac); }
public function getData_fech_bajatoPrint() { return Util::getfulldate($this->date_decommissioned); }