Skip to content

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 ⭐️

3.6 KB
Raw Blame
@php($mailBranding ??= null)
<x-mail::layout>
    {{-- Header --}}
    <x-slot:header>
@if($mailBranding?->hideHiEventsBranding)
        <x-mail::header :url="$mailBranding->organizerUrl">
@if($mailBranding->organizerLogoUrl)
            <img src="{{ $mailBranding->organizerLogoUrl }}" class="logo" alt="{{ $mailBranding->organizerName }}">
@else
            <span class="organizer-name">{{ $mailBranding->organizerName }}</span>
@endif
        </x-mail::header>
@else
        <x-mail::header :url="config('app.email_logo_link_url')">
            @if($appLogo = config('app.email_logo_url'))
                <img src="{{ $appLogo }}" class="logo" alt="{{ config('app.name') }}">
            @else
                <img src="{{ config('app.frontend_url') }}/logos/hi-events-stacked-light.png" class="logo" alt="{{ config('app.name') }}">
            @endif
        </x-mail::header>
@endif
    </x-slot:header>

    {{-- Body --}}
    {{ $slot }}

    {{-- Subcopy --}}
    @isset($subcopy)
        <x-slot:subcopy>
            <x-mail::subcopy>
                {{ $subcopy }}
            </x-mail::subcopy>
        </x-slot:subcopy>
    @endisset

    {{-- Footer --}}
    <x-slot:footer>
@if($mailBranding?->showHiEventsPromo)
        <x-mail::promo :url="$mailBranding->promoUrl" />
@endif
        <x-mail::footer>
            @if($appEmailFooter = config('app.email_footer_text'))
                {{ $appEmailFooter }}
            @elseif(app(\HiEvents\Enterprise\Licensing\LicenceService::class)->allows(\HiEvents\Enterprise\Licensing\LicensedFeature::WHITE_LABEL))
                © {{ date('Y') }} {{ config('app.name') }}
            @elseif($mailBranding?->hideHiEventsBranding)
                © {{ date('Y') }} {{ $mailBranding->organizerName }}
            @else
                {{-- (c) Hi.Events Ltd 2024-present --}}
                {{-- Hi.Events is licensed under the GNU Affero General Public License (AGPL) version 3. --}}
                {{-- The full licence text is in the LICENCE file in the repository root. --}}
                {{-- Under Section 7(b) of the AGPL, the "Powered by Hi.Events" notice must stay on all web pages --}}
                {{-- and emails. If you modify Hi.Events you may rephrase it, for example "Powered by [Your Company] --}}
                {{-- based on Hi.Events", but it must still link to https://hi.events. --}}
                {{-- The notice must stay clearly visible and legible. Do not hide or obscure it, for example by --}}
                {{-- shrinking its font size, lowering its contrast, matching its colour to the background, covering --}}
                {{-- it or moving it off-screen. --}}
                {{-- To remove the notice you need a commercial licence: https://hi.events/licensing --}}
                {{-- With a licence, hide it through your licence key or configuration rather than by editing this code. --}}
                {{-- Commercial licences help keep Hi.Events free and open source. To keep that fair for everyone who --}}
                {{-- pays, we may work with a third-party compliance partner to find installations that remove or --}}
                {{-- obscure this notice without a licence. If you hear from us or them, it will start as a friendly --}}
                {{-- conversation, and you'll have 30 days to get a licence or restore the notice. --}}

                © {{ date('Y') }} {{ config('app.name') }} | Powered by <a title="Manage events and sell tickets online with Hi.Events" href="https://hi.events?utm_source=app-email-footer">Hi.Events</a>
            @endif
        </x-mail::footer>
    </x-slot:footer>
</x-mail::layout>