@php
$isMobile = $isMobile ?? false;
$layout = $isMobile ? 'layouts.mobile' : 'layouts.desktop';
$redirectUrl = $redirectUrl ?? request('redirect', session('url.intended'));
$isServicesFlow = $isServicesFlow ?? (is_string($redirectUrl) && str_contains($redirectUrl, '/services'));
$loginUrl = $redirectUrl ? url('login?redirect=' . urlencode($redirectUrl)) : url('login');
// $googleUrl = route('google.login') . ($redirectUrl ? '?redirect=' . urlencode($redirectUrl) : '');
@endphp
@extends($layout)
@section('title', $isServicesFlow ? 'Join Gletra Services' : 'Create Account - Gletra')
@push('styles')
{{-- Google Fonts (disabled)
--}}
@endpush
@section('content')
@php
$registrationRole = old('role', request('role', 'customer'));
$isVendorRegistration = $registrationRole === 'vendor';
$isWorkerRegistration = $registrationRole === 'worker';
@endphp
@if($isMobile)
{{ $isVendorRegistration ? 'Complete steps open Seller account on Gletra.' : ($isServicesFlow ? 'Sign up once, then return to services booking instantly.' : 'Join our community and start shopping') }}