diff --git a/app/Http/Controllers/ContactController.php b/app/Http/Controllers/ContactController.php index 61d38719..461ea61c 100644 --- a/app/Http/Controllers/ContactController.php +++ b/app/Http/Controllers/ContactController.php @@ -13,6 +13,7 @@ use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\DB; use App\Models\SubscribeChild; use App\Models\SubscribeVaccinate; +use App\Models\SubscribeYouthFireFighter; use App\Helpers\AccessHelper as Access; use \Carbon\Carbon; use Response; @@ -27,6 +28,9 @@ class ContactController extends ExtendedController parent::__construct(); } + /********************************/ + /* Anmeldung für Nikolausaktion */ + /********************************/ public function subscribe(Request $request) { $formdata = new SubscribeChild(); @@ -97,6 +101,87 @@ class ContactController extends ExtendedController return $view; } + + /*********************************/ + /* Anmeldung zur Kinderfeuerwehr */ + /*********************************/ + public function subscribeYouthFireFighter(Request $request) + { + $formdata = new SubscribeYouthFireFighter(); + $view = view("inc.contact.subscribeYouthFireFighter"); + $view->with('url', $this->route); + $view->with('formdata', $formdata); + $view->with('expired', false); + + return $view; + } + + public function subscribeYouthFireFighterSave(Request $request) + { + $request->request->add(['city' => $request->city[0]]); + $formdata = $request->validate([ + 'firstnameParent' => 'required|min:3', + 'lastnameParent' => 'required|min:3', + 'firstnameChild' => 'required|min:3', + 'birthday' => 'required|date_format:d.m.Y', + 'street' => 'required|min:3', + 'streetnumber' => 'required', + 'city' => 'required', + 'phone' => 'required|min:4', + 'email' => 'required|email' + ], + [ + 'firstnameParent.required' => 'Pflichtfeld', + 'firstnameParent.min' => 'Mindestens :min Zeichen', + 'lastnameParent.required' => 'Pflichtfeld', + 'lastnameParent.min' => 'Mindestens :min Zeichen', + 'firstnameChild.required' => 'Pflichtfeld', + 'firstnameChild.min' => 'Mindestens :min Zeichen', + 'street.required' => 'Pflichtfeld', + 'street.min' => 'Mindestens :min Zeichen', + 'streetnumber.required' => 'Pflichtfeld', + 'streetnumber.min' => 'Mindestens :min Zeichen', + 'city.required' => 'Pflichtfeld', + 'phone.required' => 'Pflichtfeld', + 'phone.min' => 'Mindestens :min Zeichen', + 'email.email' => 'Es muss eine gültige Emailadresse angegeben werden', + 'birthday.required' => 'Pflichtfeld', + 'birthday.date_format' => 'Das Datum muss im Format tt.mm.jjjj (tag.monat.jahr) eingegeben werden', + ]); + + $checkmodel = SubscribeChild::where('lastnameParent', $request->lastnameParent) + ->where('firstnameParent', $request->firstnameParent) + ->where('firstnameChild', $request->firstnameChild) + ->where('city', $request->city) + ->get(); + + $view = null; + if($checkmodel->count()) + { + $view = view("inc.contact.subscribeDouble"); + $view->with('firstnameChild', $request->firstnameChild); + $view->with('lastnameChild', $request->lastnameParent); + } + else + { + $model = new SubscribeChild(); + $model->fill($request->all()); + $model->birthday = $request->birthday; +# $model->city = $request->city[0]; + $model->save(); + + $view = view("inc.contact.subscribeYouthFireFighterSuccess"); + } + + + return $view; + } + + + /********************************/ + /* Anmeldung zur Coronaimnpfung */ + /********************************/ + public function subscribeVaccinate(Request $request) { $formdata = new SubscribeVaccinate(); diff --git a/app/Models/SubscribeYouthFireFighter.php b/app/Models/SubscribeYouthFireFighter.php new file mode 100644 index 00000000..6b5ecb4c --- /dev/null +++ b/app/Models/SubscribeYouthFireFighter.php @@ -0,0 +1,29 @@ + + array ( + 'name' => 'Freiwillige Feuerwehr Eppingen', + 'env' => 'development', + 'debug' => true, + 'url' => 'http://ffw:8888', + 'timezone' => 'Europe/Berlin', + 'locale' => 'de', + 'fallback_locale' => 'de', + 'key' => 'base64:eTnmUyo9rkgRsXdoXWk7weXbwYd7ixi2e1GQGT+VosI=', + 'cipher' => 'AES-256-CBC', + 'log' => 'single', + 'log_level' => 'debug', + 'providers' => + array ( + 0 => 'Illuminate\\Auth\\AuthServiceProvider', + 1 => 'Illuminate\\Broadcasting\\BroadcastServiceProvider', + 2 => 'Illuminate\\Bus\\BusServiceProvider', + 3 => 'Illuminate\\Cache\\CacheServiceProvider', + 4 => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider', + 5 => 'Illuminate\\Cookie\\CookieServiceProvider', + 6 => 'Illuminate\\Database\\DatabaseServiceProvider', + 7 => 'Illuminate\\Encryption\\EncryptionServiceProvider', + 8 => 'Illuminate\\Filesystem\\FilesystemServiceProvider', + 9 => 'Illuminate\\Foundation\\Providers\\FoundationServiceProvider', + 10 => 'Illuminate\\Hashing\\HashServiceProvider', + 11 => 'Illuminate\\Mail\\MailServiceProvider', + 12 => 'Illuminate\\Notifications\\NotificationServiceProvider', + 13 => 'Illuminate\\Pagination\\PaginationServiceProvider', + 14 => 'Illuminate\\Pipeline\\PipelineServiceProvider', + 15 => 'Illuminate\\Queue\\QueueServiceProvider', + 16 => 'Illuminate\\Redis\\RedisServiceProvider', + 17 => 'Illuminate\\Auth\\Passwords\\PasswordResetServiceProvider', + 18 => 'Illuminate\\Session\\SessionServiceProvider', + 19 => 'Illuminate\\Translation\\TranslationServiceProvider', + 20 => 'Illuminate\\Validation\\ValidationServiceProvider', + 21 => 'Illuminate\\View\\ViewServiceProvider', + 22 => 'Spatie\\Permission\\PermissionServiceProvider', + 23 => 'App\\Providers\\AppServiceProvider', + 24 => 'App\\Providers\\AuthServiceProvider', + 25 => 'App\\Providers\\EventServiceProvider', + 26 => 'App\\Providers\\RouteServiceProvider', + 27 => 'Collective\\Html\\HtmlServiceProvider', + 28 => 'Intervention\\Image\\ImageServiceProvider', + 29 => 'OwenIt\\Auditing\\AuditingServiceProvider', + 30 => 'App\\Providers\\ValidatorServiceProvider', + 31 => 'App\\Providers\\HelperServiceProvider', + 32 => 'Barryvdh\\Debugbar\\ServiceProvider', + 33 => 'SimpleSoftwareIO\\QrCode\\QrCodeServiceProvider', + ), + 'aliases' => + array ( + 'App' => 'Illuminate\\Support\\Facades\\App', + 'Artisan' => 'Illuminate\\Support\\Facades\\Artisan', + 'Auth' => 'Illuminate\\Support\\Facades\\Auth', + 'Blade' => 'Illuminate\\Support\\Facades\\Blade', + 'Broadcast' => 'Illuminate\\Support\\Facades\\Broadcast', + 'Bus' => 'Illuminate\\Support\\Facades\\Bus', + 'Cache' => 'Illuminate\\Support\\Facades\\Cache', + 'Config' => 'Illuminate\\Support\\Facades\\Config', + 'Cookie' => 'Illuminate\\Support\\Facades\\Cookie', + 'Crypt' => 'Illuminate\\Support\\Facades\\Crypt', + 'DB' => 'Illuminate\\Support\\Facades\\DB', + 'Eloquent' => 'Illuminate\\Database\\Eloquent\\Model', + 'Event' => 'Illuminate\\Support\\Facades\\Event', + 'Document' => 'Intervention\\Image\\Facades\\Image', + 'Gate' => 'Illuminate\\Support\\Facades\\Gate', + 'Hash' => 'Illuminate\\Support\\Facades\\Hash', + 'Lang' => 'Illuminate\\Support\\Facades\\Lang', + 'Log' => 'Illuminate\\Support\\Facades\\Log', + 'Mail' => 'Illuminate\\Support\\Facades\\Mail', + 'Notification' => 'Illuminate\\Support\\Facades\\Notification', + 'Password' => 'Illuminate\\Support\\Facades\\Password', + 'Queue' => 'Illuminate\\Support\\Facades\\Queue', + 'Redirect' => 'Illuminate\\Support\\Facades\\Redirect', + 'Redis' => 'Illuminate\\Support\\Facades\\Redis', + 'Request' => 'Illuminate\\Support\\Facades\\Request', + 'Response' => 'Illuminate\\Support\\Facades\\Response', + 'Route' => 'Illuminate\\Support\\Facades\\Route', + 'Schema' => 'Illuminate\\Support\\Facades\\Schema', + 'Session' => 'Illuminate\\Support\\Facades\\Session', + 'Storage' => 'Illuminate\\Support\\Facades\\Storage', + 'URL' => 'App\\Helpers\\URLHelper', + 'Validator' => 'Illuminate\\Support\\Facades\\Validator', + 'View' => 'Illuminate\\Support\\Facades\\View', + 'Form' => 'Collective\\Html\\FormFacade', + 'HTML' => 'Collective\\Html\\HtmlFacade', + 'Access' => 'App\\Helpers\\AccessHelper', + 'Menu' => 'App\\Helpers\\MenuHelper', + 'Post' => 'App\\Helpers\\PostHelper', + 'Debugbar' => 'Barryvdh\\Debugbar\\Facade', + 'Tag' => 'App\\Helpers\\TagHelper', + 'Breadcrumb' => 'App\\Helpers\\BreadcrumbHelper', + 'QuickLogin' => 'App\\Helpers\\QuickLoginHelper', + 'Date' => 'App\\Helpers\\DateHelper', + 'Carbon' => 'Carbon\\Carbon', + 'QrCode' => 'SimpleSoftwareIO\\QrCode\\Facades\\QrCode', + 'Wizard' => 'App\\Helpers\\WizardHelper', + 'String' => 'App\\Helpers\\StringHelper', + 'BreakingNews' => 'App\\Helpers\\BreakingNewsHelper', + ), + ), + 'audit' => + array ( + 'implementation' => 'OwenIt\\Auditing\\Models\\Audit', + 'user' => + array ( + 'primary_key' => 'id', + 'foreign_key' => 'user_id', + 'model' => 'App\\Models\\User', + 'resolver' => 'App\\Models\\User', + ), + 'resolver' => + array ( + 'user' => 'OwenIt\\Auditing\\Resolvers\\UserResolver', + 'ip_address' => 'OwenIt\\Auditing\\Resolvers\\IpAddressResolver', + 'user_agent' => 'OwenIt\\Auditing\\Resolvers\\UserAgentResolver', + 'url' => 'OwenIt\\Auditing\\Resolvers\\UrlResolver', + ), + 'events' => + array ( + 0 => 'created', + 1 => 'updated', + 2 => 'deleted', + 3 => 'restored', + ), + 'strict' => false, + 'timestamps' => false, + 'threshold' => 0, + 'redact' => false, + 'driver' => 'database', + 'drivers' => + array ( + 'database' => + array ( + 'table' => 'revisions', + 'connection' => NULL, + ), + ), + 'console' => true, + ), + 'auth' => + array ( + 'defaults' => + array ( + 'guard' => 'web', + 'passwords' => 'user', + ), + 'guards' => + array ( + 'web' => + array ( + 'driver' => 'session', + 'provider' => 'user', + ), + 'api' => + array ( + 'driver' => 'token', + 'provider' => 'user', + ), + ), + 'providers' => + array ( + 'user' => + array ( + 'driver' => 'eloquent', + 'model' => 'App\\Models\\User', + 'table' => 'user', + ), + ), + 'passwords' => + array ( + 'user' => + array ( + 'provider' => 'user', + 'table' => 'password_resets', + 'expire' => 60, + ), + ), + ), + 'broadcasting' => + array ( + 'default' => 'log', + 'connections' => + array ( + 'pusher' => + array ( + 'driver' => 'pusher', + 'key' => '', + 'secret' => '', + 'app_id' => '', + 'options' => + array ( + ), + ), + 'redis' => + array ( + 'driver' => 'redis', + 'connection' => 'default', + ), + 'log' => + array ( + 'driver' => 'log', + ), + 'null' => + array ( + 'driver' => 'null', + ), + ), + ), + 'cache' => + array ( + 'default' => 'file', + 'stores' => + array ( + 'apc' => + array ( + 'driver' => 'apc', + ), + 'array' => + array ( + 'driver' => 'array', + ), + 'database' => + array ( + 'driver' => 'database', + 'table' => 'cache', + 'connection' => NULL, + ), + 'file' => + array ( + 'driver' => 'file', + 'path' => 'C:\\xampp\\htdocs\\ffw_laravel\\storage\\framework/cache/data', + ), + 'memcached' => + array ( + 'driver' => 'memcached', + 'persistent_id' => NULL, + 'sasl' => + array ( + 0 => NULL, + 1 => NULL, + ), + 'options' => + array ( + ), + 'servers' => + array ( + 0 => + array ( + 'host' => '127.0.0.1', + 'port' => 11211, + 'weight' => 100, + ), + ), + ), + 'redis' => + array ( + 'driver' => 'redis', + 'connection' => 'default', + ), + ), + 'prefix' => 'laravel', + ), + 'database' => + array ( + 'default' => 'mysql', + 'connections' => + array ( + 'sqlite' => + array ( + 'driver' => 'sqlite', + 'database' => 'ffw_laravel', + 'prefix' => '', + ), + 'mysql' => + array ( + 'driver' => 'mysql', + 'host' => '127.0.0.1', + 'port' => '8889', + 'database' => 'ffw_laravel', + 'username' => 'ffw', + 'password' => 'ffw', + 'unix_socket' => '', + 'charset' => 'utf8', + 'collation' => 'utf8_unicode_ci', + 'prefix' => '', + 'strict' => false, + 'engine' => 'InnoDB', + ), + 'mysql_alt' => + array ( + 'driver' => 'mysql', + 'host' => '127.0.0.1', + 'port' => '8889', + 'database' => 'ffw_alt', + 'username' => 'ffw', + 'password' => 'ffw', + 'unix_socket' => '', + 'charset' => 'utf8', + 'collation' => 'utf8_unicode_ci', + 'prefix' => '', + 'strict' => false, + 'engine' => 'InnoDB', + ), + 'pgsql' => + array ( + 'driver' => 'pgsql', + 'host' => '127.0.0.1', + 'port' => '8889', + 'database' => 'ffw_laravel', + 'username' => 'ffw', + 'password' => 'ffw', + 'charset' => 'utf8', + 'prefix' => '', + 'schema' => 'public', + 'sslmode' => 'prefer', + ), + 'sqlsrv' => + array ( + 'driver' => 'sqlsrv', + 'host' => '127.0.0.1', + 'port' => '8889', + 'database' => 'ffw_laravel', + 'username' => 'ffw', + 'password' => 'ffw', + 'charset' => 'utf8', + 'prefix' => '', + ), + ), + 'migrations' => 'migrations', + 'redis' => + array ( + 'client' => 'predis', + 'default' => + array ( + 'host' => '127.0.0.1', + 'password' => NULL, + 'port' => '6379', + 'database' => 0, + ), + ), + ), + 'debugbar' => + array ( + 'enabled' => true, + 'except' => + array ( + ), + 'storage' => + array ( + 'enabled' => true, + 'driver' => 'file', + 'path' => 'C:\\xampp\\htdocs\\ffw_laravel\\storage\\debugbar', + 'connection' => NULL, + 'provider' => '', + ), + 'include_vendors' => true, + 'capture_ajax' => true, + 'add_ajax_timing' => false, + 'error_handler' => false, + 'clockwork' => false, + 'collectors' => + array ( + 'phpinfo' => true, + 'messages' => true, + 'time' => true, + 'memory' => true, + 'exceptions' => true, + 'log' => true, + 'db' => true, + 'views' => true, + 'route' => true, + 'auth' => true, + 'gate' => true, + 'session' => true, + 'symfony_request' => true, + 'mail' => true, + 'laravel' => false, + 'events' => false, + 'default_request' => false, + 'logs' => false, + 'files' => false, + 'config' => false, + 'cache' => false, + ), + 'options' => + array ( + 'auth' => + array ( + 'show_name' => true, + ), + 'db' => + array ( + 'with_params' => true, + 'backtrace' => true, + 'timeline' => false, + 'explain' => + array ( + 'enabled' => false, + 'types' => + array ( + 0 => 'SELECT', + ), + ), + 'hints' => true, + ), + 'mail' => + array ( + 'full_log' => false, + ), + 'views' => + array ( + 'data' => false, + ), + 'route' => + array ( + 'label' => true, + ), + 'logs' => + array ( + 'file' => NULL, + ), + 'cache' => + array ( + 'values' => true, + ), + ), + 'inject' => true, + 'route_prefix' => '_debugbar', + 'route_domain' => NULL, + ), + 'filesystems' => + array ( + 'default' => 'local', + 'cloud' => 's3', + 'disks' => + array ( + 'local' => + array ( + 'driver' => 'local', + 'root' => 'C:\\xampp\\htdocs\\ffw_laravel\\storage\\app', + ), + 'public' => + array ( + 'driver' => 'local', + 'root' => 'C:\\xampp\\htdocs\\ffw_laravel\\storage\\app/public', + 'url' => 'http://ffw:8888/storage', + 'visibility' => 'public', + ), + 'upload' => + array ( + 'driver' => 'local', + 'root' => 'C:\\xampp\\htdocs\\ffw_laravel\\storage\\app', + 'url' => 'http://ffw:8888/uploads', + 'visibility' => 'public', + ), + 'import' => + array ( + 'driver' => 'local', + 'root' => 'C:\\xampp\\htdocs\\ffw_laravel\\storage\\app', + 'url' => 'http://ffw:8888/import', + 'visibility' => 'public', + ), + 's3' => + array ( + 'driver' => 's3', + 'key' => NULL, + 'secret' => NULL, + 'region' => NULL, + 'bucket' => NULL, + ), + ), + ), + 'formats' => + array ( + 'datetime' => + array ( + 'database' => 'Y-m-d H:i:s', + ), + ), + 'images' => + array ( + 'full_size_dir' => 'C:\\xampp\\htdocs\\ffw_laravel\\public\\images/full_size/', + 'icon_size_dir' => 'C:\\xampp\\htdocs\\ffw_laravel\\public\\images/icon_size/', + 'full_size_width' => 1200, + 'full_size_height' => 1200, + 'icon_size_width' => 300, + 'icon_size_height' => 300, + ), + 'larasap' => + array ( + 'telegram' => + array ( + 'api_token' => '', + 'bot_username' => '', + 'channel_username' => '', + 'channel_signature' => '', + ), + 'twitter' => + array ( + 'consurmer_key' => 'wuW1fupwwXGt9DHQLNqzqa2K6', + 'consurmer_secret' => 'LHwebXZMn7P3n7Cctazd0ZqxlBCCm2VwgfEXsOx601e5DSi46P', + 'access_token' => '1012802726433050624-AXI5Su8tLLKWkgkFjFJRHl5LIWyreW', + 'access_token_secret' => '5tmxYjSnYLx7t80OFuslyK6vrq3cC4XCC4sTeRG10FVvs', + ), + 'facebook' => + array ( + 'app_id' => '409085882937136', + 'app_secret' => '8ce7c47cc9ad691ceb1df2d84cc44155', + 'default_graph_version' => 'v3.0', + 'page_access_token' => 'EAAF0D7q8LzABAESosJDjXwbZBpI2lMOO5JWZAaa9mZCFUpcx8I0r7Q1QZBPHJWrC5y1PcDg0WY9GOSVOreuDPhWH7iQkwmhJFK6nQGlqxrScQMjZBgSLjgbjltVCgP2BfkKXcP6XoCZAwEGbqBItkZBkkMStZCDKxtZCjLQKykDZB1zgZDZD', + ), + ), + 'mail' => + array ( + 'driver' => 'smtp', + 'host' => 'smtp.gmail.com', + 'port' => '587', + 'from' => + array ( + 'address' => 'info@feuerwehr-eppingen.de', + 'name' => 'Feuerwehr Eppingen', + ), + 'encryption' => 'tls', + 'username' => 'marco.glietsch@googlemail.com', + 'password' => 'marcogoogle', + 'sendmail' => 'C:\\xampp\\sendmail\\sendmailexe -bs', + 'markdown' => + array ( + 'theme' => 'default', + 'paths' => + array ( + 0 => 'C:\\xampp\\htdocs\\ffw_laravel\\resources\\views/vendor/mail', + ), + ), + 'stream' => + array ( + 'ssl' => + array ( + 'allow_self_signed' => true, + 'verify_peer' => false, + 'verify_peer_name' => false, + ), + ), + ), + 'permission' => + array ( + 'models' => + array ( + 'permission' => 'Spatie\\Permission\\Models\\Permission', + 'role' => 'Spatie\\Permission\\Models\\Role', + ), + 'table_names' => + array ( + 'role' => 'role', + 'roles' => 'roles', + 'permission' => 'permission', + 'permissions' => 'permissions', + 'model_has_permissions' => 'model_has_permissions', + 'model_has_roles' => 'model_has_roles', + 'role_has_permissions' => 'role_has_permissions', + ), + 'cache_expiration_time' => 1440, + 'display_permission_in_exception' => false, + ), + 'queue' => + array ( + 'default' => 'sync', + 'connections' => + array ( + 'sync' => + array ( + 'driver' => 'sync', + ), + 'database' => + array ( + 'driver' => 'database', + 'table' => 'jobs', + 'queue' => 'default', + 'retry_after' => 90, + ), + 'beanstalkd' => + array ( + 'driver' => 'beanstalkd', + 'host' => 'localhost', + 'queue' => 'default', + 'retry_after' => 90, + ), + 'sqs' => + array ( + 'driver' => 'sqs', + 'key' => 'your-public-key', + 'secret' => 'your-secret-key', + 'prefix' => 'https://sqs.us-east-1.amazonaws.com/your-account-id', + 'queue' => 'your-queue-name', + 'region' => 'us-east-1', + ), + 'redis' => + array ( + 'driver' => 'redis', + 'connection' => 'default', + 'queue' => 'default', + 'retry_after' => 90, + ), + ), + 'failed' => + array ( + 'database' => 'mysql', + 'table' => 'failed_jobs', + ), + ), + 'quicklogin' => + array ( + 'timeout' => 15, + ), + 'services' => + array ( + 'mailgun' => + array ( + 'domain' => NULL, + 'secret' => NULL, + ), + 'ses' => + array ( + 'key' => NULL, + 'secret' => NULL, + 'region' => 'us-east-1', + ), + 'sparkpost' => + array ( + 'secret' => NULL, + ), + 'stripe' => + array ( + 'model' => 'App\\Models\\User', + 'key' => NULL, + 'secret' => NULL, + ), + ), + 'session' => + array ( + 'driver' => 'file', + 'lifetime' => 600, + 'expire_on_close' => false, + 'encrypt' => false, + 'files' => 'C:\\xampp\\htdocs\\ffw_laravel\\storage\\framework/sessions', + 'connection' => NULL, + 'table' => 'sessions', + 'store' => NULL, + 'lottery' => + array ( + 0 => 2, + 1 => 100, + ), + 'cookie' => 'freiwillige_feuerwehr_eppingen_session', + 'path' => '/', + 'domain' => NULL, + 'secure' => false, + 'http_only' => true, + 'same_site' => NULL, + ), + 'social-media-manager' => + array ( + 'twitter' => + array ( + 'consurmer_key' => 'wuW1fupwwXGt9DHQLNqzqa2K6', + 'consurmer_secret' => 'LHwebXZMn7P3n7Cctazd0ZqxlBCCm2VwgfEXsOx601e5DSi46P', + 'access_token' => '1012802726433050624-AXI5Su8tLLKWkgkFjFJRHl5LIWyreW', + 'access_token_secret' => '5tmxYjSnYLx7t80OFuslyK6vrq3cC4XCC4sTeRG10FVvs', + ), + 'facebook' => + array ( + 'app_id' => '409085882937136', + 'app_secret' => '8ce7c47cc9ad691ceb1df2d84cc44155', + 'default_graph_version' => 'v3.0', + 'page_access_token' => 'EAAF0D7q8LzABAESosJDjXwbZBpI2lMOO5JWZAaa9mZCFUpcx8I0r7Q1QZBPHJWrC5y1PcDg0WY9GOSVOreuDPhWH7iQkwmhJFK6nQGlqxrScQMjZBgSLjgbjltVCgP2BfkKXcP6XoCZAwEGbqBItkZBkkMStZCDKxtZCjLQKykDZB1zgZDZD', + ), + ), + 'view' => + array ( + 'paths' => + array ( + 0 => 'C:\\xampp\\htdocs\\ffw_laravel\\resources\\views', + ), + 'compiled' => false, + ), + 'image' => + array ( + 'driver' => 'gd', + ), + 'sluggable' => + array ( + 'source' => NULL, + 'maxLength' => NULL, + 'maxLengthKeepWords' => true, + 'method' => NULL, + 'separator' => '-', + 'unique' => true, + 'uniqueSuffix' => NULL, + 'includeTrashed' => false, + 'reserved' => NULL, + 'onUpdate' => false, + ), + 'trustedproxy' => + array ( + 'proxies' => NULL, + 'headers' => 30, + ), + 'tinker' => + array ( + 'dont_alias' => + array ( + ), + ), +); diff --git a/database/migrations/2022_08_15_145900_create_subscribe_youth_fire_fighter.php b/database/migrations/2022_08_15_145900_create_subscribe_youth_fire_fighter.php new file mode 100644 index 00000000..ea924cc7 --- /dev/null +++ b/database/migrations/2022_08_15_145900_create_subscribe_youth_fire_fighter.php @@ -0,0 +1,41 @@ +increments('id'); + $table->string('lastnameParent', 50); + $table->string('firstnameParent', 50); + $table->string('firstnameChild', 50); + $table->string('street', 50); + $table->string('streetnumber', 5); + $table->string('city', 20); + $table->string('phone', 50); + $table->date('birthday'); + $table->string('email', 100); + $table->timestamps(); + $table->softDeletes(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('subscribe_child'); + } +} diff --git a/resources/views/inc/contact/subscribeYouthFireFighter.blade.php b/resources/views/inc/contact/subscribeYouthFireFighter.blade.php new file mode 100644 index 00000000..bb54952e --- /dev/null +++ b/resources/views/inc/contact/subscribeYouthFireFighter.blade.php @@ -0,0 +1,138 @@ +@extends('layouts.app') + +@section('social_media') + + +@endsection + +@section('content') +
+
+

+ Anmeldung zur Kinderfeuerwehr +

+
+
+
+
+
+
+ + @if($expired) +
+
+ Es tut uns Leid, aber der Anmeldezeitraum ist abgelaufen. +
+
+ @else + +
+
+

+ Hiermit melde ich mein Kind zur Kinderfeuerwehr der Freiwilligen Feuerwehr Eppingen an. + Weitere Informationen erhalten Sie nach erfolgreicher Anmeldung per Mail. +

+
+
+
+
+
+ + @include('inc.forms.inputText', [ + 'name' => 'lastnameParent', + 'label' => 'Nachname des/der Erziehungsberechtigten *', + 'placeholder' => 'Nachname des/der Erziehungsberechtigten', + 'value' => $formdata->firstnameParent + ]) + @include('inc.forms.inputText', [ + 'name' => 'firstnameParent', + 'label' => 'Vorname des/der Erziehungsberechtigten *', + 'placeholder' => 'Vorname des/der Erziehungsberechtigten', + 'value' => $formdata->lastnameParent + ]) + @include('inc.forms.inputText', [ + 'name' => 'firstnameChild', + 'label' => 'Vorname des Kindes *', + 'placeholder' => 'Vorname des Kindes', + 'value' => $formdata->firstnameChild + ]) + @include('inc.forms.inputText', [ + 'name' => 'birthday', + 'label' => 'Geburtstag des Kindes*', + 'placeholder' => 'tt.mm.jjjj', + 'value' => $formdata->birthday + ]) + @include('inc.forms.inputText', [ + 'name' => 'street', + 'label' => 'Straße *', + 'placeholder' => 'Straße', + 'value' => $formdata->street + ]) + @include('inc.forms.inputText', [ + 'name' => 'streetnumber', + 'label' => 'Hausnummer *', + 'placeholder' => 'Hausnummer', + 'value' => $formdata->streetnumber + ]) + {{ $formdata->streetnumber }} + @include('inc.forms.inputSelect', [ + 'name' => 'city', + 'label' => 'Wohnort *', + 'placeholder' => 'Wohnort', + 'selected' => old('city.0'), + 'modelValue' => 'city', + 'modelLabel' => 'city', + 'models' => [ + (object)['city' => ''], + (object)['city' => 'Adelshofen'], + (object)['city' => 'Elsenz'], + (object)['city' => 'Eppingen'], + (object)['city' => 'Kleingartach'], + (object)['city' => 'Mühlbach'], + (object)['city' => 'Richen'], + (object)['city' => 'Rohrbach'] + ] + ]) + @include('inc.forms.inputText', [ + 'name' => 'phone', + 'label' => 'Telefonnummer für Rückfragen *', + 'placeholder' => 'Telefonnummer', + 'value' => $formdata->phone + ]) + @include('inc.forms.inputText', [ + 'name' => 'email', + 'label' => 'Emailadresse für weiterführende Informationen *', + 'placeholder' => 'Email', + 'value' => $formdata->email + ]) +
+ * Pflichtfeld +
+
+ +
+
+
+
+ @endif +
+ +
+
+@endsection \ No newline at end of file diff --git a/resources/views/inc/navigation/navbar.blade.php b/resources/views/inc/navigation/navbar.blade.php index 40914c0b..5874b208 100644 --- a/resources/views/inc/navigation/navbar.blade.php +++ b/resources/views/inc/navigation/navbar.blade.php @@ -322,6 +322,16 @@ 'class' => 'dropdown-item' ]) @endforeach + @include('inc.navigation.navbarLink', [ + 'url' => 'seite/jugendfeuerwehr-3', + 'label' => 'Jugendfeuerwehr', + 'class' => 'dropdown-item' + ]) + @include('inc.navigation.navbarLink', [ + 'url' => 'seite/kinderfeuerwehr', + 'label' => 'Kinderfeuerwehr', + 'class' => 'dropdown-item' + ]) diff --git a/routes/web.php b/routes/web.php index 096ce9ec..78f43c94 100755 --- a/routes/web.php +++ b/routes/web.php @@ -107,6 +107,19 @@ Route::post("umfrage/impfstatus/abschliessen", [ 'middleware' => 'auth', function (){} ]); +Route::get("anmeldung-kinderfeuerwehr", [ + "uses" => "ContactController@subscribeYouthFireFighter", +], [ + 'middleware' => 'auth', function (){} +]); +Route::post("anmeldung-kinderfeuerwehr/abschliessen", [ + "uses" => "ContactController@subscribeYouthFireFighterSave", +], [ + 'middleware' => 'auth', function (){} +]); + + + /****************************************/ /* Standard Routen für den User-Bereich */ /****************************************/