*/ public function toArray(Request $request): array { return [ 'id' => $this->id, 'unique_id' => $this->unique_id, 'loan_type' => $this->loan_type, 'region' => $this->region, 'branch_id' => $this->branch_id, 'customer_name' => $this->customer_name, 'customer_surname' => $this->customer_surname, 'customer_patronic_name' => $this->customer_patronic_name, 'passport_address' => $this->passport_address, 'real_address' => $this->real_address, 'passport_serie' => $this->passport_serie, 'passport_id' => $this->passport_id, 'passport_given_at' => $this->passport_given_at, 'passport_given_by' => $this->passport_given_by, 'born_place' => $this->born_place, 'born_at' => $this->born_at, 'email' => $this->email, 'phone' => $this->phone, 'phone_additional' => $this->phone_additional, 'phone_home' => $this->phone_home, 'work_region' => $this->work_region, 'work_province_id' => $this->work_province_id, 'work_company' => $this->work_company, 'work_company_accountant_number' => $this->work_company_accountant_number, 'work_started_at' => $this->work_started_at, 'work_salary' => $this->work_salary, 'work_position' => $this->work_position, 'education' => $this->education, 'marriage_status' => $this->marriage_status, 'passport_one' => $this->passport_one, 'passport_two' => $this->passport_two, 'passport_three' => $this->passport_three, 'passport_four' => $this->passport_four, 'user_id' => $this->user_id, 'status' => $this->status, 'notes' => $this->notes, 'created_at' => $this->created_at, 'updated_at' => $this->updated_at, 'deleted_at' => $this->deleted_at, 'loan_amount' => $this->loan_amount, 'guarantor_name' => $this->guarantor_name, 'guarantor_surname' => $this->guarantor_surname, 'guarantor_patronic_name' => $this->guarantor_patronic_name, 'guarantor_card_number' => $this->guarantor_card_number, 'guarantor_card_name' => $this->guarantor_card_name, 'guarantor_card_month' => $this->guarantor_card_month, 'guarantor_card_year' => $this->guarantor_card_year, 'guarantor_2_name' => $this->guarantor_2_name, 'guarantor_2_surname' => $this->guarantor_2_surname, 'guarantor_2_patronic_name' => $this->guarantor_2_patronic_name, 'guarantor_2_card_number' => $this->guarantor_2_card_number, 'guarantor_2_card_name' => $this->guarantor_2_card_name, 'guarantor_2_card_month' => $this->guarantor_2_card_month, 'guarantor_2_card_year' => $this->guarantor_2_card_year, 'source' => OrderRepo::MOBILE_DEVICE, 'guarantor_note' => $this->guarantor_note, 'guarantor_2_note' => $this->guarantor_2_note, 'satisfiable' => $this->satisfiable, 'guarantor_passport_serie' => $this->guarantor_passport_serie, 'guarantor_passport_id' => $this->guarantor_passport_id, 'guarantor_2_passport_serie' => $this->guarantor_2_passport_serie, 'guarantor_2_passport_id' => $this->guarantor_2_passport_id, ]; } }