Merge branch 'cart-temp'

This commit is contained in:
elvira
2026-09-29 16:12:20 +03:00
35 changed files with 931 additions and 75 deletions
+1 -1
View File
@@ -58,8 +58,8 @@ MAIL_PORT=1025
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_FROM_ADDRESS="hello@example.com"
# Fallback only: the sender name comes from Store Details' "Mail from name" when set.
MAIL_FROM_NAME="${APP_NAME}"
CONTACT_EMAIL=
HCAPTCHA_SITEKEY=
HCAPTCHA_SECRET=
+11 -6
View File
@@ -5,6 +5,7 @@
use App\Http\Requests\ContactRequest;
use App\Mail\ContactConfirmationMail;
use App\Mail\ContactMessageMail;
use App\Models\StoicPage;
use Illuminate\Http\RedirectResponse;
use Illuminate\Support\Facades\Log;
use Illuminate\Support\Facades\Mail;
@@ -15,7 +16,7 @@
/**
* Contact form. Nothing is stored: the message is emailed to the store
* (CONTACT_EMAIL) and the sender gets a generic confirmation. Both are sent
* (Store Details' contact email) and the sender gets a generic confirmation. Both are sent
* synchronously so a failed store email can be reported back on the form.
*
* Limited per IP in here rather than with throttle middleware, so the limit
@@ -28,11 +29,15 @@ class ContactController extends Controller
public function index(string $locale): View
{
// Address and phone come from Store Details; the email is still
// CONTACT_EMAIL until Store Details has an email field.
$page = StoicPage::localized('contact');
if (! $page) {
abort(404);
}
return view('contact', [
'page' => $page,
'store' => app(StoreDetailsService::class)->current(),
'contactEmail' => config('services.contact.email'),
]);
}
@@ -47,11 +52,11 @@ public function send(string $locale, ContactRequest $request): RedirectResponse
RateLimiter::hit($key, self::SEND_DECAY_SECONDS);
$data = $request->validated();
$to = config('services.contact.email');
$to = app(StoreDetailsService::class)->current()->contact_email;
try {
if (blank($to)) {
throw new \RuntimeException('CONTACT_EMAIL is not set.');
throw new \RuntimeException('Store Details has no contact email.');
}
Mail::to($to)->send(new ContactMessageMail(
+51 -6
View File
@@ -4,27 +4,72 @@
use App\Catalog\ProductCard;
use App\Models\StoicPage;
use Modules\Core\Catalog\DTOs\ProductFilters;
use Modules\Core\Catalog\Services\CollectionService;
use Modules\Core\Catalog\Services\ProductService;
class HomeController extends Controller
{
public function __construct(private readonly ProductService $products) {}
/** Slug of the hero collection in the "Homepage" collection group. */
private const HERO_COLLECTION_SLUG = 'hero';
private const HERO_FALLBACK_COUNT = 5;
private const CLASSICS_COUNT = 8;
public function __construct(
private readonly ProductService $products,
private readonly CollectionService $collections,
) {}
public function index(string $locale)
{
$page = StoicPage::firstWhere('slug', 'home');
$page = StoicPage::localized('home');
if (! $page) {
abort(404);
}
$products = collect($this->products->random(13))
->map(fn (array $product) => ProductCard::fromIndexed($product));
// Random pool for the classics carousel, and for the hero too when the
// hero collection is missing or empty. Oversized so hero products can be
// excluded from it and still leave enough.
$random = collect($this->products->random(self::HERO_FALLBACK_COUNT + self::CLASSICS_COUNT));
$hero = collect($this->heroCollectionProducts());
if ($hero->isEmpty()) {
$hero = $random->take(self::HERO_FALLBACK_COUNT);
}
$heroIds = $hero->pluck('id')->all();
$classics = $random
->reject(fn (array $product) => in_array($product['id'], $heroIds))
->take(self::CLASSICS_COUNT);
return view('home', [
'page' => $page,
'heroProducts' => $products->take(5)->values(),
'classicsProducts' => $products->slice(5)->values(),
'heroProducts' => $hero->map(fn (array $product) => ProductCard::fromIndexed($product))->values(),
'classicsProducts' => $classics->map(fn (array $product) => ProductCard::fromIndexed($product))->values(),
]);
}
/**
* Products the store owner picked for the hero, via the Lunar collection
* with slug "hero". Not in the owner's drag order yet: the product index
* doesn't carry per-collection position (pending a boboko-core task).
*/
private function heroCollectionProducts(): array
{
$collection = $this->collections->getBySlug(self::HERO_COLLECTION_SLUG);
if ($collection === null) {
return [];
}
return $this->products
->list(new ProductFilters(collectionId: $collection['id']))
->products
->items();
}
}
+3 -1
View File
@@ -15,6 +15,8 @@ class LegalPageController extends Controller
'{store_name}' => 'name',
'{store_address}' => 'address',
'{store_phone}' => 'phone',
'{store_contact_email}' => 'contact_email',
'{store_legal_name}' => 'legal_name',
'{store_tax_identifier}' => 'tax_identifier',
'{store_registration_number}' => 'registration_number',
];
@@ -45,7 +47,7 @@ public function cookies(string $locale)
private function show(string $slug)
{
$page = StoicPage::firstWhere('slug', $slug);
$page = StoicPage::localized($slug);
if (! $page) {
abort(404);
+1 -1
View File
@@ -8,7 +8,7 @@
use Illuminate\Mail\Mailables\Envelope;
/**
* A contact-form message, sent to the store's CONTACT_EMAIL. Reply-To is the
* A contact-form message, sent to Store Details' contact email. Reply-To is the
* sender, so replying from the inbox goes straight to them.
*/
class ContactMessageMail extends Mailable
+17 -1
View File
@@ -2,16 +2,32 @@
namespace App\Models;
use App\Services\Stoic;
use Illuminate\Database\Eloquent\Model;
use JacobJoergensen\LaravelPaper\Attributes\ContentPath;
use JacobJoergensen\LaravelPaper\Attributes\Driver;
use JacobJoergensen\LaravelPaper\Attributes\Timestamps;
use JacobJoergensen\LaravelPaper\Paper;
// Points at the default locale (el), which Stoic writes every field to. Other
// locales hold only the translatable fields — use localized() to get a page
// with those layered on top for the current locale.
#[Driver("markdown")]
#[ContentPath("resources/stoic/content/pages")]
#[ContentPath("resources/stoic/content/el/pages")]
#[Timestamps]
class StoicPage extends Model
{
use Paper;
/**
* The page in the current locale: the default-locale entry, with the
* current locale's non-empty fields (and body) swapped in. Untranslated
* fields fall back to the default locale.
*/
public static function localized(string $slug): ?static
{
$page = static::firstWhere('slug', $slug);
return $page?->forceFill(Stoic::localeOverrides("pages/{$slug}.md"));
}
}
+38 -5
View File
@@ -6,15 +6,20 @@
use App\Models\Staff;
use App\Services\StoicSettings;
use Illuminate\Database\Eloquent\Relations\Relation;
use Illuminate\Mail\Events\MessageSending;
use Illuminate\Support\Facades\Event;
use Illuminate\Support\Facades\URL;
use Illuminate\Support\Facades\View;
use Illuminate\Support\ServiceProvider;
use Illuminate\View\View as ViewInstance;
use Lunar\Facades\ModelManifest;
use Lunar\Facades\Telemetry;
use Lunar\Models\CollectionGroup;
use Modules\Core\Catalog\DTOs\CollectionFilters;
use Modules\Core\Catalog\Enums\CollectionSort;
use Modules\Core\Catalog\Services\CollectionService;
use Modules\Core\Store\Services\StoreDetailsService;
use Symfony\Component\Mime\Address;
class AppServiceProvider extends ServiceProvider
{
@@ -27,12 +32,17 @@ public function boot(): void
{
Telemetry::optOut();
// header.blade.php's category dropdown — root collections only, resolved
// per-request so the composer runs after `locale` middleware has already
// set App::getLocale(), which CollectionService's name resolution depends on.
// header.blade.php's category dropdown — root collections of the catalog
// group only, so merchandising groups (e.g. "Homepage") stay out of the
// nav. Resolved per-request so the composer runs after `locale` middleware
// has already set App::getLocale(), which CollectionService's name
// resolution depends on. The group is looked up by handle, not id, since
// ids can differ between environments.
View::composer('components.header', function (ViewInstance $view) {
$view->with('categories', app(CollectionService::class)->list(
filters: new CollectionFilters(rootOnly: true),
$groupId = CollectionGroup::where('handle', 'shopify')->value('id');
$view->with('categories', $groupId === null ? [] : app(CollectionService::class)->list(
filters: new CollectionFilters(groupId: $groupId, rootOnly: true),
perPage: 100,
sort: CollectionSort::Position,
)->items());
@@ -45,6 +55,29 @@ public function boot(): void
fn (ViewInstance $view) => $view->with('stoicSettings', app(StoicSettings::class)),
);
// INTERIM, belongs in boboko-core's Store module: the sender name on
// outgoing emails comes from Store Details' "Mail from name", with
// MAIL_FROM_NAME as the fallback when it's empty. Done per message
// rather than by setting config at boot, so a long-running queue
// worker picks up a changed name without a restart. Only the default
// from address is renamed; a mailable with its own from is left alone.
Event::listen(MessageSending::class, function (MessageSending $event) {
$name = app(StoreDetailsService::class)->current()->mail_from_name;
if (blank($name)) {
return;
}
$defaultAddress = config('mail.from.address');
$event->message->from(...array_map(
fn (Address $from) => $from->getAddress() === $defaultAddress
? new Address($from->getAddress(), $name)
: $from,
$event->message->getFrom(),
));
});
if ($this->app->environment('production')) {
URL::forceScheme('https');
}
+37
View File
@@ -4,6 +4,7 @@
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\Storage;
use Spatie\YamlFrontMatter\YamlFrontMatter;
use Symfony\Component\Yaml\Yaml;
class Stoic
@@ -29,6 +30,42 @@ public static function presets(): array
return static::$presets;
}
// Stoic's default locale (first in i18n.locales), or null when i18n is off.
// Its content folder holds every field; other locales only translatable ones.
public static function defaultLocale(): ?string
{
static::loadConfig();
return static::$config["i18n"]["locales"][0]["code"] ?? null;
}
// The current locale's translated fields for a content file (path relative
// to a locale folder, e.g. "pages/home.md"), with the markdown body as
// `content`. Empty when the current locale is the default one (or i18n is
// off), the file doesn't exist, or a field is left blank — so layering this
// over the default-locale values falls back to them field by field.
public static function localeOverrides(string $file): array
{
$default = static::defaultLocale();
$locale = app()->getLocale();
if ($default === null || $locale === $default) {
return [];
}
$path = resource_path("stoic/content/{$locale}/{$file}");
if (!is_file($path)) {
return [];
}
$document = YamlFrontMatter::parse(file_get_contents($path));
return array_filter(
[...$document->matter(), "content" => trim($document->body())],
fn($value) => filled($value),
);
}
// Returns the public URL for a stoic image at a given preset.
public static function image(string $filename, string $preset): string
{
+44 -18
View File
@@ -6,13 +6,19 @@
/**
* Site-wide, marketing-editable settings from Stoic's `settings` singleton
* (resources/stoic/content/settings.md). Read directly rather than through a
* Paper model: Paper models map to a folder of entries, and this is one file
* at the content root. Legal and transactional details (address, ΑΦΜ, phone)
* (resources/stoic/content/{locale}/settings.md). Read directly rather than
* through a Paper model: Paper models map to a folder of entries, and this is
* one file per locale. Legal and transactional details (address, ΑΦΜ, phone)
* live in boboko-core's StoreDetails instead.
*
* Bound as scoped in AppServiceProvider, so the file is parsed once per
* request (or queued job) and edits in Stoic show up on the next one.
* Stoic writes every field to the default locale's file and only the
* translatable ones (e.g. meta_description) to the others, so the current
* locale's file is layered over the default one; empty values fall through.
*
* Bound as scoped in AppServiceProvider, so files are parsed at most once per
* locale per request (or queued job) and edits in Stoic show up on the next one.
* The locale is read per call, not at construction, so a mail rendered with
* ->locale() still gets its own locale's values.
*/
class StoicSettings
{
@@ -22,26 +28,20 @@ class StoicSettings
'tiktok' => 'TikTok',
];
private array $data;
public function __construct()
{
$path = resource_path('stoic/content/settings.md');
$this->data = is_file($path)
? YamlFrontMatter::parse(file_get_contents($path))->matter()
: [];
}
/** @var array<string, array<string, mixed>> keyed by locale */
private array $data = [];
public function get(string $key, mixed $default = null): mixed
{
return filled($this->data[$key] ?? null) ? $this->data[$key] : $default;
$value = $this->data()[$key] ?? null;
return filled($value) ? $value : $default;
}
/**
* Absolute og:image URL for a Stoic image field value (the page's own, else
* this file's default), or null. Image fields store a comma-separated list;
* only the first is used.
* the default from settings.md), or null. Image fields store a
* comma-separated list; only the first is used.
*/
public function ogImageUrl(?string $pageImage = null): ?string
{
@@ -67,4 +67,30 @@ public function socialLinks(): array
return $links;
}
private function data(): array
{
$locale = app()->getLocale();
return $this->data[$locale] ??= $this->load();
}
private function load(): array
{
$default = Stoic::defaultLocale();
if ($default === null) {
return $this->parse(resource_path('stoic/content/settings.md'));
}
return array_merge(
$this->parse(resource_path("stoic/content/{$default}/settings.md")),
Stoic::localeOverrides('settings.md'),
);
}
private function parse(string $path): array
{
return is_file($path) ? YamlFrontMatter::parse(file_get_contents($path))->matter() : [];
}
}
-5
View File
@@ -35,11 +35,6 @@
],
],
// Where contact-form messages are sent (ContactController).
'contact' => [
'email' => env('CONTACT_EMAIL'),
],
// Bot check on guest forms (login, contact), verified by App\Rules\HCaptcha. For
// local dev use hCaptcha's test keys, the real ones reject localhost:
// sitekey 10000000-ffff-ffff-ffff-000000000001,
+8
View File
@@ -9,6 +9,14 @@ content_path: /content
media_path: /media
thumbs_path: /var/www/html/storage/app/public/stoic/
repository_path: /app
# First locale is Stoic's default: it holds every field, the others only the
# translatable ones (content/{locale}/...). Codes match app.available_locales.
i18n:
locales:
- code: el
label: Ελληνικά
- code: en
label: English
presets:
- code: large
mode: resize
@@ -0,0 +1,13 @@
---
name: "Επικοινωνία"
slug: "contact"
meta_title: "Επικοινωνία"
meta_description: "Επικοινώνησε μαζί μας για οποιαδήποτε απορία ή ιδέα έχεις και θα σου απαντήσουμε το συντομότερο δυνατό."
og_image: ""
heading_first: "Επικοινώνησε"
heading_second: "μαζί μας"
heading_highlight: "άμεσα"
intro: "Έχεις απορία, ιδέα ή θες να μας πεις κάτι; Γράψε μας το μήνυμά σου και θα σου απαντήσουμε το συντομότερο δυνατό."
---
@@ -18,12 +18,12 @@ ## 1. Υπεύθυνος επεξεργασίας
Υπεύθυνος επεξεργασίας των προσωπικών δεδομένων που συλλέγονται μέσω του ηλεκτρονικού καταστήματος είναι:
**3DEALER**
**{store_legal_name}**
Πάρου 31, Κυψέλη, ΤΚ 11255, Αθήνα
ΑΦΜ: {store_tax_identifier}
ΓΕΜΗ: {store_registration_number}
Email: [print@3dealer.gr](mailto:print@3dealer.gr)
Τηλέφωνο: 6976 443140
Email: [{store_contact_email}](mailto:{store_contact_email})
Τηλέφωνο: {store_phone}
Η 3DEALER καθορίζει τους σκοπούς και τα μέσα επεξεργασίας των προσωπικών δεδομένων των πελατών και χρηστών του ηλεκτρονικού καταστήματος.
@@ -81,7 +81,7 @@ ## 6. Newsletter και εμπορική επικοινωνία
Η εγγραφή στο newsletter πραγματοποιείται με τη συγκατάθεσή σας.
Μπορείτε να ανακαλέσετε τη συγκατάθεσή σας οποιαδήποτε στιγμή, χρησιμοποιώντας τον σύνδεσμο απεγγραφής που περιλαμβάνεται στα emails ή επικοινωνώντας μαζί μας στο [print@3dealer.gr](mailto:print@3dealer.gr).
Μπορείτε να ανακαλέσετε τη συγκατάθεσή σας οποιαδήποτε στιγμή, χρησιμοποιώντας τον σύνδεσμο απεγγραφής που περιλαμβάνεται στα emails ή επικοινωνώντας μαζί μας στο [{store_contact_email}](mailto:{store_contact_email}).
Η ανάκληση της συγκατάθεσης δεν επηρεάζει τη νομιμότητα της επεξεργασίας που πραγματοποιήθηκε πριν από αυτήν.
@@ -186,8 +186,8 @@ ## 16. Τα δικαιώματά σας
Για την άσκηση των δικαιωμάτων σας μπορείτε να επικοινωνήσετε μαζί μας:
**Email:** [print@3dealer.gr](mailto:print@3dealer.gr)
**Τηλέφωνο:** 6976 443140
**Email:** [{store_contact_email}](mailto:{store_contact_email})
**Τηλέφωνο:** {store_phone}
Θα απαντήσουμε στο αίτημά σας χωρίς αδικαιολόγητη καθυστέρηση και, κατά κανόνα, εντός ενός (1) μήνα από την παραλαβή του.
@@ -45,7 +45,7 @@ ## 3. Χρόνος παράδοσης
Η 3DEALER δεν ευθύνεται για καθυστερήσεις που οφείλονται αποκλειστικά στην εταιρεία μεταφοράς, σε ακραία καιρικά φαινόμενα, απεργίες, προβλήματα στο δίκτυο μεταφορών ή άλλες περιστάσεις που βρίσκονται εκτός του εύλογου ελέγχου της.
Σε περίπτωση καθυστέρησης, μπορείτε να επικοινωνήσετε μαζί μας στο [print@3dealer.gr](mailto:print@3dealer.gr).
Σε περίπτωση καθυστέρησης, μπορείτε να επικοινωνήσετε μαζί μας στο [{store_contact_email}](mailto:{store_contact_email}).
## 4. Παραλαβή παραγγελίας
@@ -55,7 +55,7 @@ ## 4. Παραλαβή παραγγελίας
## 5. Προϊόν που παραδόθηκε κατεστραμμένο
Σε περίπτωση που το προϊόν παραδοθεί εμφανώς κατεστραμμένο, παρακαλούμε να επικοινωνήσετε μαζί μας το συντομότερο δυνατό στο [print@3dealer.gr](mailto:print@3dealer.gr) και να μας αποστείλετε φωτογραφίες του προϊόντος και της συσκευασίας.
Σε περίπτωση που το προϊόν παραδοθεί εμφανώς κατεστραμμένο, παρακαλούμε να επικοινωνήσετε μαζί μας το συντομότερο δυνατό στο [{store_contact_email}](mailto:{store_contact_email}) και να μας αποστείλετε φωτογραφίες του προϊόντος και της συσκευασίας.
Η 3DEALER θα εξετάσει το περιστατικό και, εφόσον διαπιστωθεί ζημιά που προέκυψε κατά τη μεταφορά ή άλλη έλλειψη συμμόρφωσης, θα προχωρήσει στην κατάλληλη λύση σύμφωνα με την ισχύουσα νομοθεσία.
@@ -63,7 +63,7 @@ ## 6. Δικαίωμα υπαναχώρησης
Για τις αγορές που εμπίπτουν στο πεδίο εφαρμογής του δικαιώματος υπαναχώρησης, ο καταναλωτής μπορεί να υπαναχωρήσει από τη σύμβαση εντός δεκατεσσάρων (14) ημερολογιακών ημερών από την ημέρα παραλαβής του προϊόντος.
Για την άσκηση του δικαιώματος υπαναχώρησης, ο πελάτης πρέπει να ενημερώσει την 3DEALER με σαφή δήλωση στο [print@3dealer.gr](mailto:print@3dealer.gr).
Για την άσκηση του δικαιώματος υπαναχώρησης, ο πελάτης πρέπει να ενημερώσει την 3DEALER με σαφή δήλωση στο [{store_contact_email}](mailto:{store_contact_email}).
Το προϊόν πρέπει να επιστραφεί χωρίς αδικαιολόγητη καθυστέρηση και, σε κάθε περίπτωση, εντός δεκατεσσάρων (14) ημερών από την ημέρα κατά την οποία ο πελάτης ενημέρωσε την 3DEALER για την απόφασή του να υπαναχωρήσει.
@@ -101,4 +101,4 @@ ## 10. Ελαττωματικά ή μη συμμορφούμενα προϊόν
Η ύπαρξη μικρών αισθητικών χαρακτηριστικών που είναι φυσιολογικά για την τρισδιάστατη εκτύπωση, όπως γραμμές στρώσεων ή μικρές διαφοροποιήσεις, δεν αποτελεί από μόνη της ελάττωμα.
Για οποιοδήποτε πρόβλημα με προϊόν, επικοινωνήστε μαζί μας στο [print@3dealer.gr](mailto:print@3dealer.gr), αναφέροντας τον αριθμό παραγγελίας και, όπου είναι δυνατόν, επισυνάπτοντας φωτογραφίες.
Για οποιοδήποτε πρόβλημα με προϊόν, επικοινωνήστε μαζί μας στο [{store_contact_email}](mailto:{store_contact_email}), αναφέροντας τον αριθμό παραγγελίας και, όπου είναι δυνατόν, επισυνάπτοντας φωτογραφίες.
@@ -1,25 +1,23 @@
---
name: "Όροι & Προϋποθέσεις"
name: "Όροι & Προϋποθέσεις Terms"
slug: "terms-and-conditions"
meta_title: ""
meta_description: ""
og_image: ""
noindex: true
---
## 1. Γενικά
Το ηλεκτρονικό κατάστημα 3DEALER (εφεξής «το Κατάστημα» ή «3DEALER») λειτουργεί από την επιχείρηση 3DEALER, με έδρα στην Πάρου 31, Κυψέλη, ΤΚ 11255, Αθήνα.
Το ηλεκτρονικό κατάστημα 3DEALER (εφεξής «το Κατάστημα» ή «3DEALER») λειτουργεί από την επιχείρηση {store_legal_name}, με έδρα στην Πάρου 31, Κυψέλη, ΤΚ 11255, Αθήνα.
**ΑΦΜ:** {store_tax_identifier}
**ΑΦΜ:** {store_tax_identifier}\
**ΓΕΜΗ:** {store_registration_number}
Για οποιαδήποτε πληροφορία ή επικοινωνία σχετικά με παραγγελίες, προϊόντα ή τη λειτουργία του Καταστήματος, μπορείτε να επικοινωνείτε μαζί μας:
**Email:** [print@3dealer.gr](mailto:print@3dealer.gr)
**Τηλέφωνο:** 6976 443140
**Email:** [{store_contact_email}](mailto:{store_contact_email})\
**Τηλέφωνο:** {store_phone}
Η χρήση του Καταστήματος και η πραγματοποίηση αγορών μέσω αυτού προϋποθέτουν την αποδοχή των παρόντων Όρων & Προϋποθέσεων.
@@ -1,5 +1,5 @@
---
meta_description: "Your local 3Dealer of 3D printed, high-quality products. Geek culture, decoration, fun and skulls, and custom orders."
meta_description: ""
og_image: ""
facebook_url: "https://www.facebook.com/3Dealer.gr/"
instagram_url: "https://www.instagram.com/3dealer.gr/"
@@ -0,0 +1,9 @@
---
name: "Contact"
meta_title: "Contact"
meta_description: "Get in touch with any question or idea you have and we'll get back to you as soon as we can."
heading_first: "Contact"
heading_second: "us"
heading_highlight: "today"
intro: "Got a question, an idea or something to tell us? Send us your message and we'll get back to you as soon as we can."
---
@@ -0,0 +1,132 @@
---
name: "Cookie Policy"
meta_title: ""
meta_description: ""
---
This Cookie Policy explains how 3DEALER uses cookies and similar technologies when you visit the online store.
## 1. What cookies are
Cookies are small text files stored on your device when you visit a website. They are used to make the website work properly, store preferences, collect statistics and, where permitted, show or measure advertising.
Besides cookies, we may also use similar technologies, such as pixels and tags.
## 2. Which cookies we use
3DEALER uses different categories of cookies, depending on their purpose.
### Essential cookies
Essential cookies are those required for the online store to work correctly and securely.
They can be used, among other things, for:
* running the shopping cart,
* keeping your session,
* signing in to your account,
* completing checkout,
* keeping the website secure,
* storing your cookie choices.
These cookies cannot be turned off through the consent tool, because without them some basic functions of the online store would not be available.
### Functionality cookies
Functionality cookies are used to store choices and preferences that improve your experience of the online store.
**@TODO: List the specific functionality cookies used by Boboko/3DEALER.**
### Analytics cookies
Analytics cookies are used to understand how visitors use the online store.
3DEALER uses services such as **Google Analytics** and may use **Google Tag Manager** to manage the related tags.
The information collected may include details such as:
* which pages you visit,
* how long you stay on the website,
* which page you came from,
* the device and browser you use,
* general information about how you interact with the website.
These cookies are only activated in line with your consent choices, where required by applicable law.
### Advertising and marketing cookies
3DEALER uses advertising measurement and marketing technologies, such as:
* **Meta Pixel**
* **TikTok Pixel**
These technologies can be used to measure how effective advertising is, to understand interactions with ads and, where supported and permitted, to show more relevant ads.
The related cookies and pixels are only activated in line with your consent choices, where required.
**@TODO: Confirm the exact Meta/TikTok cookies and events used in production.**
## 3. Cookie table
The table below should be updated based on the cookies actually used in the production environment.
| Cookie / Technology | Provider | Category | Purpose | Duration |
| ------------------- | ---------------- | --------- | ------------------------------------------- | -------- |
| @TODO | Boboko / 3DEALER | Essential | Store operation | @TODO |
| @TODO | Boboko / 3DEALER | Essential | Cart / checkout | @TODO |
| @TODO | Google | Analytics | Usage statistics | @TODO |
| @TODO | Meta | Marketing | Advertising measurement | @TODO |
| @TODO | TikTok | Marketing | Advertising measurement | @TODO |
| @TODO | hCaptcha | Security | Protection against automated/malicious use | @TODO |
**@TODO: The table must be completed after checking the production site, ideally with a cookie scan.**
## 4. Consent to the use of cookies
On your first visit to the online store, a cookie consent tool is shown, where you can choose which categories of non-essential cookies you allow.
You can:
* accept all cookies,
* reject non-essential cookies,
* choose specific categories of cookies.
Essential cookies stay active, as they are needed for the online store to work.
Your choice is saved and applied on your future visits.
## 5. Withdrawing or changing your consent
You can change or withdraw your consent to the use of non-essential cookies at any time.
**@TODO: Add how Boboko's cookie preference centre is reopened, e.g. through a "Cookie settings" link in the footer.**
Withdrawing consent does not affect the lawfulness of processing carried out before the withdrawal.
## 6. Third-party cookies
Some of the services we use are provided by third parties, such as Google, Meta, TikTok and hCaptcha.
These third-party providers may process information collected through cookies or similar technologies in accordance with their own policies and terms.
Using third-party services may also involve transferring data outside the European Economic Area. Where required, the safeguards provided by law for such transfers are applied.
## 7. Cookies and personal data
Some cookies or similar technologies may lead to the processing of information that counts as personal data.
For more information on how 3DEALER collects and processes personal data, see the **Privacy Policy**.
## 8. Browser settings
You can also limit or delete cookies through your browser settings.
However, turning off some cookies may affect how the online store works or prevent some services from working properly.
## 9. Changes to this Cookie Policy
This Cookie Policy may be changed when the technologies we use, the services of the online store or the relevant legislation change.
The latest version will always be available on the 3DEALER website.
**Last updated:** @TODO
+7
View File
@@ -0,0 +1,7 @@
---
name: "Home"
meta_title: "3dealer: Whatever you imagine, printed in 3D"
meta_description: "Gaming figures, skulls, key holders and the craziest things you can dream up. Designed and 3D printed, one by one."
trivia_body: "Gaming figures, skulls, key holders, dark humor and the craziest things you can dream up, all designed and printed right here in Greece."
classics_title: "Legendary & unbeatable"
---
@@ -0,0 +1,196 @@
---
name: "Privacy Policy"
meta_title: ""
meta_description: ""
---
3DEALER ("3DEALER", "we", "us") respects the privacy of its visitors and customers and protects their personal data in accordance with applicable law, including the General Data Protection Regulation (EU) 2016/679 ("GDPR") and the related Greek legislation.
This Privacy Policy explains what personal data we collect, what we use it for, who we may share it with and what rights you have.
## 1. Data controller
The controller of the personal data collected through the online store is:
**{store_legal_name}**
Parou 31, Kypseli, 11255 Athens, Greece
Tax ID (ΑΦΜ): {store_tax_identifier}
Company registration number (ΓΕΜΗ): {store_registration_number}
Email: [{store_contact_email}](mailto:{store_contact_email})
Phone: {store_phone}
3DEALER determines the purposes and means of processing the personal data of the online store's customers and users.
## 2. What data we collect
Depending on how you use the online store, we may collect:
* your full name,
* your email address,
* your phone number,
* your shipping and billing address,
* order and product details,
* payment-related details,
* contact details and the content of messages you send us,
* user account details,
* reviews you choose to publish,
* technical data about your use of the website,
* data collected through cookies and similar technologies, as described in the Cookie Policy.
We do not store your full credit or debit card details on 3DEALER's servers. Electronic payments are made through external payment providers.
## 3. Creating an account
You can create an account in the online store to manage your orders and details.
To create and run your account, we may process details such as your name, email and login details.
This processing is necessary to provide the account service.
The online store also supports guest checkout. With guest checkout, no user account is created. The details you provide are used only to the extent necessary to process and complete the order and for the related legal obligations.
## 4. Orders and purchases
When you place an order, we process the details needed to:
* record and fulfil the order,
* process the payment,
* ship and deliver the products,
* contact you about the order,
* issue the necessary invoices and receipts,
* meet our tax and accounting obligations,
* handle any returns, cancellations or complaints.
The legal basis for this processing is, as the case may be, the performance of the contract, compliance with a legal obligation and 3DEALER's legitimate interest in the proper operation and protection of its business.
## 5. Contacting us
If you contact us by email, phone or through the contact form, we process the details you give us in order to respond to your request.
The legal basis is, depending on the case, taking steps at your request before entering into a contract, the performance of a contract, or our legitimate interest in serving our users and customers.
## 6. Newsletter and marketing communication
If you choose to subscribe to the 3DEALER newsletter, we use your email address to send you updates, offers and other marketing content.
Subscribing to the newsletter is based on your consent.
You can withdraw your consent at any time by using the unsubscribe link included in the emails or by contacting us at [{store_contact_email}](mailto:{store_contact_email}).
Withdrawing consent does not affect the lawfulness of processing carried out before the withdrawal.
## 7. Product reviews
If you choose to submit a product review, we may publish your name or another identifier you chose to display with the review.
Please do not include your own or other people's personal data in a public review unless it is necessary.
## 8. Payment providers
To complete payments we may use third-party providers such as Stripe and PayPal, as well as banks for payments by bank transfer or IRIS.
The data required to complete a payment may be passed to the relevant payment provider.
**@TODO: Confirm the exact payment providers/banks that will be used in production and add them to the final version.**
These providers process data in accordance with their own privacy policies and applicable terms.
## 9. Shipping and delivery companies
To ship your orders we use shipping and delivery services, including ELTA Courier and BOX NOW.
To deliver an order, details such as your full name, address, phone number and other details needed for delivery may be passed to the relevant provider.
## 10. Accounting and tax services
Order details and the necessary customer details may be passed to the Epsilon system that 3DEALER uses to issue and manage invoices and receipts and to meet its tax and accounting obligations.
## 11. Security and abuse protection
We use technical and organizational measures to protect personal data against loss, unauthorized access, alteration or unlawful processing.
To protect the website against malicious or automated use, we may use the hCaptcha service. Using this service may involve processing technical data in accordance with the relevant provider's privacy policy.
## 12. Analytics and advertising services
3DEALER uses traffic analytics and advertising measurement services, such as:
* Google Analytics
* Google Tag Manager
* Meta Pixel
* TikTok Pixel
These technologies may use cookies or similar technologies to collect information about how the website is used and how effective advertising is.
Non-essential technologies are only activated in line with the consent choices you make through the cookie management tool.
More information is available in the Cookie Policy.
**@TODO: Confirm the exact tools, accounts and services that will be active in production.**
## 13. Who may have access to your data
3DEALER does not sell or rent your personal data.
To the extent necessary to provide the relevant services, the following may have access to personal data:
* payment providers,
* courier companies,
* hosting and technical support providers,
* email/newsletter service providers,
* analytics and advertising providers,
* accounting and tax services,
* public authorities and bodies, where required by law.
Third-party providers that process data on behalf of 3DEALER are used in accordance with the requirements of applicable data protection law.
## 14. Transfers outside the European Economic Area
Some of the providers we use may process data outside the European Economic Area.
In these cases, 3DEALER takes appropriate measures to ensure the transfer complies with the GDPR and that personal data receives the required level of protection.
**@TODO: Check the exact processing countries and transfer mechanisms for Stripe, PayPal, Google, Meta, TikTok, hCaptcha and the newsletter provider.**
## 15. Retention period
We keep personal data only for as long as necessary for the purpose it was collected for.
Data relating to orders and transactions is kept for as long as required by tax, accounting and commercial law.
Account data is kept for as long as the account remains active, unless there is a legal reason to keep it longer.
Data used for the newsletter is kept until you withdraw your consent or unsubscribe, unless there is another legal reason to keep it.
Contact data is kept for as long as necessary to handle your request and, where required, to protect our legitimate interests.
## 16. Your rights
Under the GDPR, and subject to the conditions set out in the law, you have the right to:
* access your personal data,
* correct inaccurate or incomplete data,
* have your data erased,
* restrict processing,
* data portability,
* object to certain types of processing,
* withdraw your consent, where processing is based on consent.
Exercising a right does not mean it can be applied in every case. For example, we may be required to keep certain data because of a tax or other legal obligation.
To exercise your rights, you can contact us:
**Email:** [{store_contact_email}](mailto:{store_contact_email})
**Phone:** {store_phone}
We will respond to your request without undue delay and, as a rule, within one (1) month of receiving it.
## 17. Right to lodge a complaint
If you believe the processing of your personal data breaches applicable law, you have the right to lodge a complaint with the Hellenic Data Protection Authority.
## 18. Changes to this Privacy Policy
This Privacy Policy may be changed when necessary, for example due to changes in legislation, in the services we use or in the way the online store operates.
The latest version will always be available on our website.
@@ -0,0 +1,99 @@
---
name: "Shipping & Returns"
meta_title: ""
meta_description: ""
---
## 1. Order preparation
All 3DEALER products are printed and prepared to order.
The usual preparation time for an order is **2 to 7 business days**.
Preparation time does not include the courier's transit time.
During periods of high demand there may be delays. In the event of a significant delay, 3DEALER will inform the customer.
## 2. Shipping
Orders are shipped via:
* ELTA Courier
* BOX NOW
We ship to the regions supported by the online store:
* Greece
* Cyprus
The available shipping options and costs are shown at checkout.
**Shipping costs:** @TODO — shipping rates are set dynamically in the Store's settings.
Free shipping is not offered.
Cash on delivery is not supported.
## 3. Delivery time
Delivery time depends on the courier and the destination.
3DEALER is not responsible for delays caused solely by the carrier, extreme weather, strikes, problems in the transport network or other circumstances beyond its reasonable control.
In case of a delay, you can contact us at [{store_contact_email}](mailto:{store_contact_email}).
## 4. Receiving your order
The customer is responsible for the accuracy of the delivery details entered when placing the order.
If the address is incorrect or incomplete, delivery may be delayed or a new shipment may be required. Any additional costs arising from incorrect delivery details may be charged to the customer.
## 5. Product delivered damaged
If the product arrives visibly damaged, please contact us as soon as possible at [{store_contact_email}](mailto:{store_contact_email}) and send us photos of the product and the packaging.
3DEALER will look into the case and, if damage that occurred in transit or another non-conformity is found, will provide an appropriate remedy in accordance with applicable law.
## 6. Right of withdrawal
For purchases that fall within the scope of the right of withdrawal, the consumer may withdraw from the contract within fourteen (14) calendar days of the day the product was received.
To exercise the right of withdrawal, the customer must inform 3DEALER with a clear statement at [{store_contact_email}](mailto:{store_contact_email}).
The product must be returned without undue delay and, in any case, within fourteen (14) days of the day the customer informed 3DEALER of their decision to withdraw.
The customer bears the direct cost of returning the product, unless otherwise agreed or 3DEALER did not inform them of this beforehand.
The customer is responsible for any reduction in the product's value resulting from handling beyond what is necessary to establish its nature, characteristics and functioning.
## 7. Exceptions to the right of withdrawal
The right of withdrawal does not apply in the cases excluded by applicable law.
In particular, it may not apply to products made to the customer's specifications or clearly personalized.
**@TODO: Confirm which 3DEALER products are considered personalized/custom and whether any products are not subject to the right of withdrawal.**
The fact that a product is produced after the order is placed does not in itself exclude it from the right of withdrawal.
## 8. Refunds
In the case of a valid withdrawal, 3DEALER refunds the money received from the customer for the purchase, including, where required by law, the standard delivery costs.
The refund is made using the same payment method as the original transaction, unless otherwise agreed.
3DEALER may withhold the refund until it has received the returned product or until the customer has provided proof of having sent it, whichever comes first.
## 9. Product exchanges
**@TODO: Confirm whether 3DEALER offers product/size exchanges or whether exchanges are handled only through a return and a new order.**
Where exchanges are offered, the procedure and any shipping costs will be communicated to the customer before the exchange is completed.
## 10. Defective or non-conforming products
If a product is defective or does not conform to the contract, the customer has the rights provided by applicable legislation on the sale of goods and consumer protection.
Minor cosmetic characteristics that are normal for 3D printing, such as layer lines or small variations, do not in themselves constitute a defect.
For any problem with a product, contact us at [{store_contact_email}](mailto:{store_contact_email}), stating your order number and, where possible, attaching photos.
@@ -0,0 +1,115 @@
---
name: "Terms & Conditions"
meta_title: ""
meta_description: ""
---
## 1. General
The online store 3DEALER (hereinafter "the Store" or "3DEALER") is operated by the business {store_legal_name}, registered at Parou 31, Kypseli, 11255 Athens, Greece.
**Tax ID (ΑΦΜ):** {store_tax_identifier}\
**Company registration number (ΓΕΜΗ):** {store_registration_number}
For any information or questions about orders, products or the operation of the Store, you can contact us:
**Email:** [{store_contact_email}](mailto:{store_contact_email})\
**Phone:** {store_phone}
Using the Store and making purchases through it requires acceptance of these Terms & Conditions.
These terms govern purchases made through the online store and are supplemented by the Privacy Policy and the Shipping & Returns Policy.
## 2. Products
The products offered through the Store are described and pictured as accurately as possible.
3DEALER products are made by 3D printing. Due to the nature of the production process, they may show layer lines, seams, small variations or other minor cosmetic imperfections. These characteristics are a normal result of the 3D printing process and are not in themselves considered a product defect.
All products are printed and prepared to order. The usual preparation time is 2 to 7 business days.
Unless otherwise stated in the description of a specific product, products are intended for decorative use or for use within reasonable and realistic limits. Use with excessive force, at very high temperatures or in a way other than intended may damage the product.
## 3. Prices
All product prices are shown in euros (€) and include the applicable VAT.
Shipping costs are calculated at checkout and shown before the purchase is confirmed.
**Shipping costs:** @TODO — the exact cost is calculated dynamically based on the Store's shipping settings.
## 4. Orders
Customers can make a purchase either by creating an account in the Store or by using guest checkout, without creating an account.
Completing an order requires the details necessary for processing, payment and delivery.
Before finalizing the order, the customer can review the order details and the total cost, including any shipping charges.
Once the order is completed, a confirmation is sent to the email address provided by the customer.
**@TODO: Confirm whether the order is considered final once payment is completed or once the order confirmation is sent.**
## 5. Payment methods
The Store supports the following payment methods:
* Credit or debit card
* PayPal
* Stripe
* IRIS
* Bank transfer
Electronic payments may use third-party payment services. Card details or other sensitive payment details are not stored by 3DEALER, but are processed by the relevant payment provider in accordance with its own terms and privacy policy.
## 6. Order cancellations
**@TODO: Confirm the cancellation policy.**
As a general rule, customers who wish to cancel an order can contact 3DEALER as soon as possible after placing it.
If preparation of the order has not yet started, 3DEALER can cancel it and refund the amount paid.
If production has already started, the terms of the Shipping & Returns Policy apply, together with the statutory right of withdrawal where applicable.
## 7. Right of withdrawal and returns
Where provided for by applicable law, consumers have the right to withdraw from a distance contract within fourteen (14) calendar days of receiving the product, without having to give a reason.
Exceptions to the right of withdrawal apply in the cases provided for by applicable law, including for products made to the consumer's specifications or clearly personalized.
The returns procedure and terms are described in detail in the Shipping & Returns Policy.
## 8. Legal guarantee and defective products
3DEALER is responsible for the conformity of products with the contract and for the consumer's statutory rights in the event of non-conformity or a defect, in accordance with applicable law.
Normal characteristics of 3D printing, such as layer lines or small cosmetic variations that are expected from this production process, do not in themselves constitute non-conformity.
## 9. Availability
3DEALER makes every effort to keep product availability information accurate.
In exceptional cases where a product cannot be produced or shipped, 3DEALER will contact the customer and explain the available options.
## 10. Intellectual property
The content of the Store, including but not limited to designs, photographs, texts, graphics, logos and other material, is the property of 3DEALER or is lawfully used by it, and is protected by applicable intellectual and industrial property law.
Copying, reproducing, modifying, distributing or commercially exploiting the content without prior written permission is not allowed.
## 11. Personal data
Customers' personal data is processed in accordance with the 3DEALER Privacy Policy.
## 12. Changes to these Terms
3DEALER reserves the right to change these Terms & Conditions when necessary, in particular due to changes in legislation, services or the way the Store operates.
The terms that apply to each order are those that were available at the time that order was placed.
## 13. Governing law
These Terms & Conditions are governed by Greek law.
Any dispute relating to the use of the Store or the purchase of products is subject to the applicable Greek and European consumer protection legislation.
+3
View File
@@ -0,0 +1,3 @@
---
meta_description: "Your local 3Dealer of 3D printed, high-quality products. Geek culture, decoration, fun and skulls, and custom orders."
---
+8
View File
@@ -9,6 +9,14 @@ content_path: /content
media_path: /media
thumbs_path: /storage/app/public/stoic/
repository_path: /repository
# First locale is Stoic's default: it holds every field, the others only the
# translatable ones (content/{locale}/...). Codes match app.available_locales.
i18n:
locales:
- code: el
label: Ελληνικά
- code: en
label: English
presets:
- code: large
mode: resize
+63 -1
View File
@@ -2,6 +2,7 @@ schemas:
- name: pages
label: Pages
type: files
translatable: true
files:
- name: home
label: Home Page
@@ -10,15 +11,18 @@ schemas:
- name: name
label: Name
ui: string
translatable: true
- name: slug
label: Slug
ui: slug
- name: meta_title
label: Meta Title
ui: string
translatable: true
- name: meta_description
label: Meta Description
ui: string
translatable: true
- name: og_image
label: Og Image
ui: image
@@ -27,10 +31,50 @@ schemas:
ui: image
- name: trivia_body
label: "Trivia Body (intro paragraph under the hero)"
ui: markdown
ui: text
translatable: true
- name: classics_title
label: "Classics Section Title (favorites carousel heading)"
ui: string
translatable: true
- name: contact
label: Contact Page
file: pages/contact.md
fields:
- name: name
label: Name
ui: string
translatable: true
- name: slug
label: Slug
ui: slug
- name: meta_title
label: Meta Title
ui: string
translatable: true
- name: meta_description
label: Meta Description
ui: string
translatable: true
- name: og_image
label: Og Image
ui: image
- name: heading_first
label: "Heading, first line (animated)"
ui: string
translatable: true
- name: heading_second
label: "Heading, second line"
ui: string
translatable: true
- name: heading_highlight
label: "Heading, last word(s) of the second line (animated)"
ui: string
translatable: true
- name: intro
label: "Intro (paragraph above the form)"
ui: text
translatable: true
- name: terms-and-conditions
label: "Terms & Conditions Page"
file: pages/terms-and-conditions.md
@@ -38,15 +82,18 @@ schemas:
- name: name
label: Name
ui: string
translatable: true
- name: slug
label: Slug
ui: slug
- name: meta_title
label: Meta Title
ui: string
translatable: true
- name: meta_description
label: Meta Description
ui: string
translatable: true
- name: og_image
label: Og Image
ui: image
@@ -56,6 +103,7 @@ schemas:
- name: body
label: Body
ui: markdown
translatable: true
- name: shipping-returns
label: "Shipping & Returns Page"
file: pages/shipping-returns.md
@@ -63,15 +111,18 @@ schemas:
- name: name
label: Name
ui: string
translatable: true
- name: slug
label: Slug
ui: slug
- name: meta_title
label: Meta Title
ui: string
translatable: true
- name: meta_description
label: Meta Description
ui: string
translatable: true
- name: og_image
label: Og Image
ui: image
@@ -81,6 +132,7 @@ schemas:
- name: body
label: Body
ui: markdown
translatable: true
- name: privacy-policy
label: "Privacy Policy Page"
file: pages/privacy-policy.md
@@ -88,15 +140,18 @@ schemas:
- name: name
label: Name
ui: string
translatable: true
- name: slug
label: Slug
ui: slug
- name: meta_title
label: Meta Title
ui: string
translatable: true
- name: meta_description
label: Meta Description
ui: string
translatable: true
- name: og_image
label: Og Image
ui: image
@@ -106,6 +161,7 @@ schemas:
- name: body
label: Body
ui: markdown
translatable: true
- name: cookies-policy
label: "Cookies Policy Page"
file: pages/cookies-policy.md
@@ -113,15 +169,18 @@ schemas:
- name: name
label: Name
ui: string
translatable: true
- name: slug
label: Slug
ui: slug
- name: meta_title
label: Meta Title
ui: string
translatable: true
- name: meta_description
label: Meta Description
ui: string
translatable: true
- name: og_image
label: Og Image
ui: image
@@ -131,14 +190,17 @@ schemas:
- name: body
label: Body
ui: markdown
translatable: true
- name: settings
label: Settings
type: singleton
file: settings.md
translatable: true
fields:
- name: meta_description
label: "Default Meta Description (used when a page has none)"
ui: text
translatable: true
- name: og_image
label: "Default Og Image (used when a page has none, ideally 1200×630)"
ui: image
@@ -1,16 +1,15 @@
{{--
Store address and phone from Lunar's Store Details (Modules\Core\Store),
email from CONTACT_EMAIL until Store Details has an email field too.
Each line is left out when its value is empty.
Store address, phone and email from Lunar's Store Details
(Modules\Core\Store). Each line is left out when its value is empty.
--}}
@props([
'store' => null,
'email' => null,
])
@php
$address = $store?->translate('address');
$phone = $store?->phone;
$email = $store?->contact_email;
@endphp
@if (filled($address) || filled($phone) || filled($email))
+8 -8
View File
@@ -1,7 +1,8 @@
@extends('layouts.app')
@section('title', __('storefront.nav.contact'))
@section('description', 'Επικοινώνησε μαζί μας για οποιαδήποτε απορία ή ιδέα έχεις και θα σου απαντήσουμε το συντομότερο δυνατό.')
@section('title', $page->meta_title ?: $page->name)
@section('description', $page->meta_description)
@section('og_image', $page->og_image)
{{-- Only on pages with a captcha, not in the global layout. --}}
@push('scripts')
@@ -21,13 +22,12 @@
<h1 class="font-display text-h1 font-semibold leading-tight"
data-controller="appear"
data-appear-visible-class="is-visible">
<span class="text-dance">Επικοινώνησε</span><br>
μαζί μας <span class="text-dance [--dance-delay:200ms]">άμεσα</span>
<span class="text-dance" data-stoic="pages/contact#heading_first">{{ $page->heading_first }}</span><br>
<span data-stoic="pages/contact#heading_second">{{ $page->heading_second }}</span>
<span class="text-dance [--dance-delay:200ms]" data-stoic="pages/contact#heading_highlight">{{ $page->heading_highlight }}</span>
</h1>
<p class="max-w-xl ">
Έχεις απορία, ιδέα ή θες να μας πεις κάτι; Γράψε μας το μήνυμά σου και θα σου απαντήσουμε το συντομότερο δυνατό.
</p>
<p class="max-w-xl" data-stoic="pages/contact#intro">{{ $page->intro }}</p>
<x-ui.status class="max-w-xl" />
@@ -76,7 +76,7 @@ class="h-captcha min-h-[78px]"
</div>
<div class="flex flex-col justify-center border-t border-black px-8 py-16 lg:border-t-0 lg:px-16">
<x-contact-details :store="$store" :email="$contactEmail" />
<x-contact-details :store="$store" />
</div>
</section>
+4
View File
@@ -0,0 +1,4 @@
@extends('errors.layout')
@section('error_title', __('storefront.errors.404_title'))
@section('error_text', __('storefront.errors.404_text'))
+4
View File
@@ -0,0 +1,4 @@
@extends('errors.layout')
@section('error_title', __('storefront.errors.4xx_title'))
@section('error_text', __('storefront.errors.4xx_text'))
+4
View File
@@ -0,0 +1,4 @@
@extends('errors.layout')
@section('error_title', __('storefront.errors.500_title'))
@section('error_text', __('storefront.errors.500_text'))
+4
View File
@@ -0,0 +1,4 @@
@extends('errors.layout')
@section('error_title', __('storefront.errors.5xx_title'))
@section('error_text', __('storefront.errors.5xx_text'))
+26
View File
@@ -0,0 +1,26 @@
{{-- Shared by every errors/{code} view: each one only sets title + text. --}}
@extends('layouts.app')
{{-- Block form: the inline @section('title', …) form would escape the
already-escaped error_title a second time. --}}
@section('title')
@yield('error_title')
@endsection
@push('seo')
<meta name="robots" content="noindex">
@endpush
@section('content')
<section class="flex flex-col items-center justify-center gap-8 px-8 py-24 text-center min-h-[calc(100vh-12rem)] sm:min-h-[calc(100vh-8rem)]">
<h1 class="font-display text-h1 font-semibold leading-tight">@yield('error_title')</h1>
<p class="max-w-xl">@yield('error_text')</p>
<x-ui.button :href="route('home')" class="mt-4">{{ __('storefront.errors.back_home') }}</x-ui.button>
</section>
@endsection
+6
View File
@@ -131,4 +131,10 @@
->name('account.email.resend');
});
// Unmatched URLs would otherwise 404 during routing, before `web` and
// `locale` middleware run, so errors/404 would render with no session,
// no App::setLocale() and no URL::defaults() — the header's route()
// calls would then throw on the missing {locale}. Catching them here
// renders the 404 inside the locale group like any other page.
Route::fallback(fn () => abort(404));
});