class AdminMailer < ActionMailer::Base
  default from: "no-reply@reservations.app"

  def notes_reservation_notification(notes_reservations_out, notes_reservations_in)
    @app_configs = AppConfig.first
    @notes_reservations_out = notes_reservations_out
    @notes_reservations_in = notes_reservations_in
    mail(to: @app_configs.admin_email, subject: "[Reservation] Notes for " + (Date.yesterday.midnight).strftime('%m/%d/%y'))
  end


end

class AdminMailer < ActionMailer::Base
  default from: "no-reply@reservations.app"

  def notes_reservation_notification(notes_reservations_out, notes_reservations_in)
    @app_configs = AppConfig.first
    @notes_reservations_out = notes_reservations_out
    @notes_reservations_in = notes_reservations_in
    mail(to: @app_configs.admin_email, subject: "[Reservation] Notes for " + (Date.yesterday.midnight).strftime('%m/%d/%y'))
  end

  def overdue_checked_in_fine_admin(overdue_checked_in)
    @app_configs = AppConfig.first
    @overdue_checked_in = overdue_checked_in
    mail(to: @app_configs.admin_email, subject: "[Reservation] Overdue equipment fine")
  end
end

Revert "removed admin mail for checkout"
Revert "removed admin mail for checkout"

This reverts commit ce0eb77cabdfc3063ac1eb8aa52416f7264b9b0a.
