first commit

This commit is contained in:
2026-06-10 10:46:22 +05:45
commit 473bdd627b
136 changed files with 19074 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews -Indexes
</IfModule>
RewriteEngine On
# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
# Handle X-XSRF-Token Header
RewriteCond %{HTTP:x-xsrf-token} .
RewriteRule .* - [E=HTTP_X_XSRF_TOKEN:%{HTTP:X-XSRF-Token}]
# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} (.+)/$
RewriteRule ^ %1 [L,R=301]
# Send Requests To Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>
+72
View File
@@ -0,0 +1,72 @@
$(document).ready(function () {
// MODAL OPEN
$('#newRegistrationBtn').click(() => {
$('#registrationModal').removeClass('hidden').addClass('flex');
});
$('#closeRegistrationModal').click(() => {
$('#registrationModal').removeClass('flex').addClass('hidden');
});
// SEND OTP
$('#sendOtpBtn').click(function () {
$.post("/registrations/send-otp", {
_token: csrf_token,
phone: $('#phone').val()
}, function (res) {
$('#otpPreview')
.removeClass('hidden')
.text("OTP: " + res.otp);
});
});
// VERIFY OTP
$('#verifyOtpBtn').click(function () {
$.post("/registrations/verify-otp", {
_token: csrf_token,
phone: $('#phone').val(),
otp: $('#otp').val()
}, function (res) {
if (res.status === 'needs_registration') {
$('#registrationModal').removeClass('flex').addClass('hidden');
$('#registrationDetailsModal').removeClass('hidden').addClass('flex');
return;
}
if (res.status === 'session_created') {
location.reload();
return;
}
if (res.status === 'blocked') {
alert('Already played today');
}
});
});
// COMPLETE REGISTRATION
$('#completeRegistrationBtn').click(function () {
$.post("/registrations/store", {
_token: csrf_token,
phone: $('#phone').val(),
name: $('#name').val(),
email: $('#email').val()
}, function (res) {
if (res.status === 'session_created') {
location.reload();
}
});
});
});
Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 MiB

View File
+20
View File
@@ -0,0 +1,20 @@
<?php
use Illuminate\Foundation\Application;
use Illuminate\Http\Request;
define('LARAVEL_START', microtime(true));
// Determine if the application is in maintenance mode...
if (file_exists($maintenance = __DIR__.'/../storage/framework/maintenance.php')) {
require $maintenance;
}
// Register the Composer autoloader...
require __DIR__.'/../vendor/autoload.php';
// Bootstrap Laravel and handle the request...
/** @var Application $app */
$app = require_once __DIR__.'/../bootstrap/app.php';
$app->handleRequest(Request::capture());
+2
View File
@@ -0,0 +1,2 @@
User-agent: *
Disallow: