Gross realized gains from the sale of equity securities were $78,000 for the three and six months ended June 30, 2019. There were no gross realized losses from the sale of equity securities for the three and six months ended June 30, 2019. During the three and six months ended June 30, 2019, the Company recognized net unrealized losses of $30,000 and net unrealized gains of $37,000, respectively, on equity securities, which was recorded as other income in the consolidated statements of income.
Proceeds from the sale of equity securities were $7.7 million for the three and six months ended June 30, 2018. Gross realized losses from the sale of equity securities were $53,000 for the three and six months ended June 30, 2018. There were no gross realized gains from the sale of equity securities for the three and six months ended June 30, 2018. During the three and six months ended June 30, 2018, the Company recognized net unrealized losses of $18,000 and net unrealized gains of $93,000, respectively, on equity securities, which was recorded as other income in the consolidated statements of income.
Note 5 – Loans
The following table presents total loans outstanding by portfolio, which includes non-purchased credit impaired (“Non-PCI”) loans and purchased credit impaired (“PCI”) loans, as of June 30, 2019 and December 31, 2018:
| | | | | | | | | | | | | | | | | | | |
| | June 30, 2019 | | December 31, 2018 | |
| | Non-PCI | | PCI | | | | | Non-PCI | | PCI | | | | |
(dollars in thousands) | | Loans | | Loans (1) | | Total | | Loans | | Loans (1) | | Total | |
Commercial | | $ | 848,587 | | $ | 2,974 | | $ | 851,561 | | $ | 806,027 | | $ | 4,857 | | $ | 810,884 | |
Commercial real estate | | | 1,508,683 | | | 15,686 | | | 1,524,369 | | | 1,619,903 | | | 19,252 | | | 1,639,155 | |
Construction and land development | | | 244,188 | | | 6,226 | | | 250,414 | | | 223,898 | | | 8,331 | | | 232,229 | |
Total commercial loans | | | 2,601,458 | | | 24,886 | | | 2,626,344 | | | 2,649,828 | | | 32,440 | | | 2,682,268 | |
Residential real estate | | | 544,061 | | | 8,345 | | | 552,406 | | | 569,289 | | | 8,759 | | | 578,048 | |
Consumer | | | 595,728 | | | 1,240 | | | 596,968 | | | 611,408 | | | 1,776 | | | 613,184 | |
Lease financing | | | 297,809 | | | — | | | 297,809 | | | 264,051 | | | — | | | 264,051 | |
Total loans | | $ | 4,039,056 | | $ | 34,471 | | $ | 4,073,527 | | $ | 4,094,576 | | $ | 42,975 | | $ | 4,137,551 | |
(1) | The unpaid principal balance for PCI loans totaled $45.0 million and $56.9 million as of June 30, 2019 and December 31, 2018, respectively. |
Total loans include net deferred loan fees of $3.0 million and $11.6 million at June 30, 2019 and December 31, 2018, respectively, and unearned income of $34.2 million and $29.2 million within the lease financing portfolio at June 30, 2019 and December 31, 2018, respectively.
At June 30, 2019 and December 31, 2018, the Company had commercial and residential loans held for sale totaling $22.1 million and $30.4 million, respectively. During the three and six months ended June 30, 2019, the Company sold commercial and residential real estate loans with proceeds totaling $149.4 million and $248.7 million, respectively, and sold commercial and residential real estate loans with proceeds totaling $115.9 million and $269.9 million for the comparable periods in 2018, respectively.
The aggregate loans outstanding to the directors, executive officers, principal shareholders and their affiliates totaled $24.5 million and $26.5 million at June 30, 2019 and December 31, 2018, respectively. During the three and six months ended June 30, 2019, there were $1.6 million and $3.1 million of new loans and other additions, respectively, while repayments and other reductions totaled $643,000 and $5.1 million, respectively.
Credit Quality Monitoring
The Company maintains loan policies and credit underwriting standards as part of the process of managing credit risk. These standards include making loans generally within the Company’s four main regions, which include eastern, northern and southern Illinois and the St. Louis metropolitan area. Our equipment leasing business provides financing to business customers across the country.
The Company has a loan approval process involving underwriting and individual and group loan approval authorities to consider credit quality and loss exposure at loan origination. The loans in the Company’s commercial loan portfolio are risk rated at origination based on the grading system set forth below. All loan authority is based on the aggregate credit to a borrower and its related entities. All loans in the commercial loan portfolio have an assigned relationship manager, and most borrowers provide periodic financial and operating information that allows the