View Invoice - Thank You Email

Added logic to show Send Thank You Email when the invoice status is set
to “Paid”. Included a Thank You email template and controller changes
Invoice Model - Invoice Status

Added a condition to filter out draft invoices so they aren’t marked as
Due when the due date is past
Big Fixes - Create Invoice

Made some minor changes to handle scenario when a customer deletes all
their client records