Open-source event management and ticket selling platform — perfect for concerts, conferences, and everything in between 🎟️ If you find this project helpful, please consider giving us a star ⭐️
PHP attendize-alternativedoor-managementevent-check-inevent-managementevent-registrationevent-ticketingeventbrite-alternativeeventslaravelopen-sourcephpreactself-hostedsell-ticketssell-tickets-onlineticket-sellingticketing-systemtickettailor-alternativetito-alternative
<?php
namespace HiEvents\Resources\Event;
use HiEvents\DomainObjects\EventSettingDomainObject;
use Illuminate\Http\Resources\Json\JsonResource;
/**
* @mixin EventSettingDomainObject
*/
class EventSettingsResource extends JsonResource
{
public function toArray($request): array
{
return [
'pre_checkout_message' => $this->getPreCheckoutMessage(),
'post_checkout_message' => $this->getPostCheckoutMessage(),
'product_page_message' => $this->getProductPageMessage(),
'continue_button_text' => $this->getContinueButtonText(),
'get_tickets_button_text' => $this->getGetTicketsButtonText(),
'required_attendee_details' => $this->getRequireAttendeeDetails(),
'attendee_details_collection_method' => $this->getAttendeeDetailsCollectionMethod(),
'email_footer_message' => $this->getEmailFooterMessage(),
'support_email' => $this->getSupportEmail(),
'order_timeout_in_minutes' => $this->getOrderTimeoutInMinutes(),
'homepage_body_background_color' => $this->getHomepageBodyBackgroundColor(),
'homepage_background_color' => $this->getHomepageBackgroundColor(),
'homepage_primary_color' => $this->getHomepagePrimaryColor(),
'homepage_primary_text_color' => $this->getHomepagePrimaryTextColor(),
'homepage_secondary_color' => $this->getHomepageSecondaryColor(),
'homepage_secondary_text_color' => $this->getHomepageSecondaryTextColor(),
'homepage_background_type' => $this->getHomepageBackgroundType(),
'website_url' => $this->getWebsiteUrl(),
'maps_url' => $this->getMapsUrl(),
'seo_title' => $this->getSeoTitle(),
'seo_description' => $this->getSeoDescription(),
'seo_keywords' => $this->getSeoKeywords(),
'allow_search_engine_indexing' => $this->getAllowSearchEngineIndexing(),
'notify_organizer_of_new_orders' => $this->getNotifyOrganizerOfNewOrders(),
'price_display_mode' => $this->getPriceDisplayMode(),
// Ticket design settings
'ticket_design_settings' => $this->getTicketDesignSettings(),
// Payment settings
'payment_providers' => $this->getPaymentProviders(),
'offline_payment_instructions' => $this->getOfflinePaymentInstructions(),
'allow_orders_awaiting_offline_payment_to_check_in' => $this->getAllowOrdersAwaitingOfflinePaymentToCheckIn(),
'offline_payment_reporting_enabled' => $this->getOfflinePaymentReportingEnabled(),
'offline_payment_order_reference_enabled' => $this->getOfflinePaymentOrderReferenceEnabled(),
'payment_links_enabled' => $this->getPaymentLinksEnabled(),
'payment_link_expiry_hours' => $this->getPaymentLinkExpiryHours(),
// Invoice settings
'enable_invoicing' => $this->getEnableInvoicing(),
'invoice_label' => $this->getInvoiceLabel(),
'invoice_prefix' => $this->getInvoicePrefix(),
'invoice_start_number' => $this->getInvoiceStartNumber(),
'require_billing_address' => $this->getRequireBillingAddress(),
'organization_name' => $this->getOrganizationName(),
'organization_address' => $this->getOrganizationAddress(),
'invoice_tax_details' => $this->getInvoiceTaxDetails(),
'invoice_notes' => $this->getInvoiceNotes(),
'invoice_payment_terms_days' => $this->getInvoicePaymentTermsDays(),
// Marketing settings
'show_marketing_opt_in' => $this->getShowMarketingOptIn(),
// Attendee detail copy control
'allow_copy_details_to_all_attendees' => $this->getAllowCopyDetailsToAllAttendees(),
// Platform fee settings
'pass_platform_fee_to_buyer' => $this->getPassPlatformFeeToBuyer(),
// Homepage theme settings
'homepage_theme_settings' => $this->getHomepageThemeSettings(),
'homepage_sections' => $this->getHomepageSections(),
// Self-service settings
'allow_attendee_self_edit' => $this->getAllowAttendeeSelfEdit(),
// Occurrence display
'show_available_occurrence_capacity' => $this->getShowAvailableOccurrenceCapacity(),
'hide_sold_out_occurrences' => $this->getHideSoldOutOccurrences(),
// Waitlist settings
'waitlist_auto_process' => $this->getWaitlistAutoProcess(),
'waitlist_offer_timeout_minutes' => $this->getWaitlistOfferTimeoutMinutes(),
];
}
}