Basic signup for events
This commit is contained in:
27
app/Providers/GiroCodeProvider.php
Normal file
27
app/Providers/GiroCodeProvider.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
namespace App\Providers;
|
||||
|
||||
use SimpleSoftwareIO\QrCode\Facades\QrCode;
|
||||
|
||||
class GiroCodeProvider {
|
||||
function __construct(private string $recipient, private string $iban, private float $amount, private string $paymentPurpose) {}
|
||||
|
||||
public function create() {
|
||||
$data = "BCD\n".
|
||||
"001\n".
|
||||
"1\n".
|
||||
"SCT\n".
|
||||
"\n".
|
||||
"$this->recipient\n".
|
||||
"$this->iban\n".
|
||||
"EUR$this->amount\n".
|
||||
"\n".
|
||||
"$this->paymentPurpose";
|
||||
|
||||
return
|
||||
QrCode::format('png')->size(300)->generate($data)
|
||||
|
||||
;
|
||||
}
|
||||
}
|
||||
@@ -135,7 +135,7 @@ class GlobalDataProvider {
|
||||
}
|
||||
|
||||
$navigation['common'][] = ['url' => '/invoice/new', 'display' => 'Neue Abrechnung'];
|
||||
$navigation['common'][] = ['url' => '/available-events', 'display' => 'Verfügbare Veranstaltungen'];
|
||||
$navigation['common'][] = ['url' => '/event/available-events', 'display' => 'Verfügbare Veranstaltungen'];
|
||||
|
||||
return $navigation;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user