Initial commit

This commit is contained in:
Ronald Huynen
2026-03-23 21:37:59 +01:00
commit 2547717edb
2193 changed files with 972171 additions and 0 deletions

View File

@@ -0,0 +1,102 @@
<x-jetstream.form-section submit="updateProfileInformation">
<x-slot name="title">
{{ trans_with_platform('Transfer @PLATFORM_NAME_SHORT@ Hours') }}
</x-slot>
<x-slot name="description">
{{ __('Update your account\'s profile information and email address.') }}
</x-slot>
<x-slot name="form">
<!-- Profile Photo -->
@if (Laravel\Jetstream\Jetstream::managesProfilePhotos())
<div x-data="{photoName: null, photoPreview: null}" class="col-span-6 sm:col-span-4">
<!-- Profile Photo File Input -->
<input type="file" class="hidden"
wire:model.live="photo"
x-ref="photo"
x-on:change="
photoName = $refs.photo.files[0].name;
const reader = new FileReader();
reader.onload = (e) => {
photoPreview = e.target.result;
};
reader.readAsDataURL($refs.photo.files[0]);
" />
<x-jetstream.label for="photo" value="{{ __('Photo') }}" />
<!-- Current Profile Photo -->
<div class="mt-2" x-show="! photoPreview">
<img src="{{ $this->user->profile_photo_url }}" alt="{{ $this->user->name }}" class="rounded-full profile-photo h-20 w-20 object-cover">
</div>
<!-- New Profile Photo Preview -->
<div class="mt-2" x-show="photoPreview" style="display: none;">
<span class="block rounded-full w-20 h-20 bg-cover bg-no-repeat bg-center"
x-bind:style="'background-image: url(\'' + photoPreview + '\');'">
</span>
</div>
<x-jetstream.secondary-button class="mt-2 mr-2" type="button" x-on:click.prevent="$refs.photo.click()">
{{ __('Select A New Photo') }}
</x-jetstream.secondary-button>
@if ($this->user->profile->profile_photo_path)
<x-jetstream.secondary-button type="button" class="mt-2" wire:click="deleteProfilePhoto">
{{ __('Remove Photo') }}
</x-jetstream.secondary-button>
@endif
<x-jetstream.input-error for="photo" class="mt-2" />
</div>
@endif
<!-- Name -->
<div class="col-span-6 sm:col-span-4">
<x-jetstream.label for="name" value="{{ __('Name') }}" />
<x-jetstream.input id="name" type="text" class="mt-1 block w-full" wire:model="state.name" autocomplete="name" />
<x-jetstream.input-error for="name" class="mt-2" />
</div>
<!-- Language -->
<div class="col-span-6 sm:col-span-4">
<x-jetstream.label for="locale" value="{{ __('Language') }}" />
<x-jetstream.input id="locale" type="text" class="mt-1 block w-full" wire:model="state.locale" autocomplete="locale" />
<x-jetstream.input-error for="locale" class="mt-2" />
</div>
<!-- Email -->
<div class="col-span-6 sm:col-span-4">
<x-jetstream.label for="email" value="{{ __('Email') }}" />
<x-jetstream.input id="email" type="email" class="mt-1 block w-full" wire:model="state.email" />
<x-jetstream.input-error for="email" class="mt-2" />
@if (Laravel\Fortify\Features::enabled(Laravel\Fortify\Features::emailVerification()) && ! $this->user->hasVerifiedEmail())
<p class="text-sm mt-2">
{{ __('Your email address is unverified.') }}
<button type="button" class="underline text-sm text-gray-600 hover:text-gray-900" wire:click.prevent="sendEmailVerification">
{{ __('Click here to re-send the verification email.') }}
</button>
</p>
@if ($this->verificationLinkSent)
<p v-show="verificationLinkSent" class="mt-2 font-medium text-sm text-green-600">
{{ __('A new verification link has been sent to your email address.') }}
</p>
@endif
@endif
</div>
</x-slot>
<x-slot name="actions">
<x-jetstream.action-message class="mr-3" on="saved">
{{ __('Saved') }}
</x-jetstream.action-message>
<x-jetstream.button wire:loading.attr="disabled" wire:target="photo">
{{ __('Save') }}
</x-jetstream.button>
</x-slot>
</x-jetstream.form-section>

View File

@@ -0,0 +1,43 @@
<x-app-layout>
<x-slot name="header">
{{ str_replace(['@PLATFORM_NAME@', '@CURRENCY@'], [platform_name(), platform_currency_name_plural()], __('Transfer @PLATFORM_NAME@ @CURRENCY@')) }}
</x-slot>
<div class="mx-auto max-w-7xl py-6 sm:px-6 lg:px-8">
<div class="md:grid md:grid-cols-3 md:gap-6">
<div class="md:col-span-1">
<div class="px-3 sm:px-0">
@livewire('side-post', [
'type' => 'SiteContents\Pay\Sticky' ?? null,
'sticky' => true,
'alwaysShowFull' => true,
'fallbackTitle' => __('Your time is currency'),
'fallbackDescription' => trans_with_platform(
'@PLATFORM_NAME_SHORT@ @PLATFORM_CURRENCY_NAME_PLURAL@ can only be used to trade work, help, or services. ' .
'Each hour equals 60 minutes of work. They can\'t be turned into euros, emphasizing that all work is valued equally. ' .
'These simple rules ensure that no profit can be made, keeping the focus on cooperation and mutual support.'
)
])
<div class="hidden md:block sm:my-12">
@livewire('side-post', [
'type' => 'SiteContents\Pay' ?? null,
'random' => true,
'fallbackTitle' => '',
'fallbackDescription' => '' ])
</div>
</div>
</div>
<div class="mt-0 md:col-span-2">
@livewire('pay', [
'amount' => $amount ?? null,
'hours' => $hours ?? null,
'minutes' => $minutes ?? null,
'toAccountId' => $toAccountId ?? null,
'toHolderName' => $name ?? null,
'description' => $description ?? null,
'type' => $type ?? null,
])
</div>
</div>
</div>
</x-app-layout>