;; Events pages — mounted on various nested blueprints

;; Calendar admin (mounted on calendar.admin bp)
(defpage calendar-admin
  :path "/"
  :auth :admin
  :layout :events-calendar-admin
  :content (calendar-admin-content))

;; Day admin (mounted on day.admin bp)
(defpage day-admin
  :path "/"
  :auth :admin
  :layout :events-day-admin
  :content (day-admin-content))

;; Slots listing (mounted on slots bp)
(defpage slots-listing
  :path "/"
  :auth :public
  :layout :events-slots
  :content (slots-content))

;; Slot detail (mounted on slot bp)
(defpage slot-detail
  :path "/"
  :auth :admin
  :layout :events-slot
  :content (slot-content))

;; Entry detail (mounted on calendar_entry bp)
(defpage entry-detail
  :path "/"
  :auth :admin
  :layout :events-entry
  :content (entry-content)
  :menu (entry-menu))

;; Entry admin (mounted on calendar_entry.admin bp)
(defpage entry-admin
  :path "/"
  :auth :admin
  :layout :events-entry-admin
  :content (entry-admin-content)
  :menu (admin-menu))

;; Ticket types listing (mounted on ticket_types bp)
(defpage ticket-types-listing
  :path "/"
  :auth :public
  :layout :events-ticket-types
  :content (ticket-types-content)
  :menu (admin-menu))

;; Ticket type detail (mounted on ticket_type bp)
(defpage ticket-type-detail
  :path "/"
  :auth :admin
  :layout :events-ticket-type
  :content (ticket-type-content)
  :menu (admin-menu))

;; My tickets (mounted on tickets bp)
(defpage my-tickets
  :path "/"
  :auth :public
  :layout :root
  :content (tickets-content))

;; Ticket detail (mounted on tickets bp)
(defpage ticket-detail
  :path "/<code>/"
  :auth :public
  :layout :root
  :content (ticket-detail-content))

;; Ticket admin dashboard (mounted on ticket_admin bp)
(defpage ticket-admin
  :path "/"
  :auth :admin
  :layout :root
  :content (ticket-admin-content))

;; Markets (mounted on markets bp)
(defpage events-markets
  :path "/"
  :auth :public
  :layout :events-markets
  :content (markets-content))
