CMS Info for Header, dyn. Tage, API

This commit is contained in:
Kevin Adametz 2019-12-28 20:15:25 +01:00
parent 7294ccc1d0
commit bed91c4f4a
49 changed files with 3476 additions and 1562 deletions

View file

@ -5,6 +5,7 @@
<sourceFolder url="file://$MODULE_DIR$/app" isTestSource="false" packagePrefix="App\" />
<sourceFolder url="file://$MODULE_DIR$/spec" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/tests" isTestSource="true" packagePrefix="Tests\" />
<excludeFolder url="file://$MODULE_DIR$/vendor/barryvdh/laravel-debugbar" />
<excludeFolder url="file://$MODULE_DIR$/vendor/barryvdh/laravel-dompdf" />
<excludeFolder url="file://$MODULE_DIR$/vendor/cocur/slugify" />
<excludeFolder url="file://$MODULE_DIR$/vendor/cviebrock/eloquent-sluggable" />
@ -21,6 +22,7 @@
<excludeFolder url="file://$MODULE_DIR$/vendor/league/oauth2-server" />
<excludeFolder url="file://$MODULE_DIR$/vendor/markbaker/complex" />
<excludeFolder url="file://$MODULE_DIR$/vendor/markbaker/matrix" />
<excludeFolder url="file://$MODULE_DIR$/vendor/maximebf/debugbar" />
<excludeFolder url="file://$MODULE_DIR$/vendor/opis/closure" />
<excludeFolder url="file://$MODULE_DIR$/vendor/phenx/php-font-lib" />
<excludeFolder url="file://$MODULE_DIR$/vendor/phenx/php-svg-lib" />
@ -31,6 +33,8 @@
<excludeFolder url="file://$MODULE_DIR$/vendor/ralouphie/getallheaders" />
<excludeFolder url="file://$MODULE_DIR$/vendor/reliese/laravel" />
<excludeFolder url="file://$MODULE_DIR$/vendor/sabberworm/php-css-parser" />
<excludeFolder url="file://$MODULE_DIR$/vendor/sebastian/type" />
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/error-handler" />
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/event-dispatcher-contracts" />
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/mime" />
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/polyfill-iconv" />

6
.idea/php.xml generated
View file

@ -124,12 +124,16 @@
<path value="$PROJECT_DIR$/vendor/markbaker/complex" />
<path value="$PROJECT_DIR$/vendor/markbaker/matrix" />
<path value="$PROJECT_DIR$/vendor/iqcontent/laravel-filemanager" />
<path value="$PROJECT_DIR$/vendor/maximebf/debugbar" />
<path value="$PROJECT_DIR$/vendor/sebastian/type" />
<path value="$PROJECT_DIR$/vendor/symfony/error-handler" />
<path value="$PROJECT_DIR$/vendor/barryvdh/laravel-debugbar" />
</include_path>
</component>
<component name="PhpProjectSharedConfiguration" php_language_level="7.1" />
<component name="PhpUnit">
<phpunit_settings>
<PhpUnitSettings load_method="CUSTOM_LOADER" custom_loader_path="$PROJECT_DIR$/vendor/autoload.php" />
<PhpUnitSettings custom_loader_path="$PROJECT_DIR$/vendor/autoload.php" />
</phpunit_settings>
</component>
</project>

122
.idea/workspace.xml generated
View file

@ -2,14 +2,7 @@
<project version="4">
<component name="ChangeListManager">
<list default="true" id="e1ac1cea-a1a5-4c16-b5f0-5908c7d368de" name="Default Changelist" comment="">
<change afterPath="$PROJECT_DIR$/.idea/composerJson.xml" afterDir="false" />
<change afterPath="$PROJECT_DIR$/app/Http/Controllers/CMS/CMSContentInfoController.php" afterDir="false" />
<change afterPath="$PROJECT_DIR$/app/Models/CMSInfo.php" afterDir="false" />
<change afterPath="$PROJECT_DIR$/app/Models/CMSInfoAvailable.php" afterDir="false" />
<change afterPath="$PROJECT_DIR$/app/Models/CMSInfoHoliday.php" afterDir="false" />
<change afterPath="$PROJECT_DIR$/database/migrations/2019_12_11_171153_create_c_m_s_infos_table.php" afterDir="false" />
<change afterPath="$PROJECT_DIR$/database/migrations/2019_12_11_171859_create_c_m_s_info_availables_table.php" afterDir="false" />
<change afterPath="$PROJECT_DIR$/database/migrations/2019_12_11_171918_create_c_m_s_info_holidays_table.php" afterDir="false" />
<change afterPath="$PROJECT_DIR$/app/Http/Controllers/API/CMSContentInfoController.php" afterDir="false" />
<change afterPath="$PROJECT_DIR$/packages/iqcontent/laravel-filemanager/database/migrations/2019_08_05_171716_create_i_q_content_folders_table.php" afterDir="false" />
<change afterPath="$PROJECT_DIR$/packages/iqcontent/laravel-filemanager/database/migrations/2019_08_05_171717_create_i_q_content_files_table.php" afterDir="false" />
<change afterPath="$PROJECT_DIR$/packages/iqcontent/laravel-filemanager/database/migrations/2019_08_05_171718_create_i_q_content_categories_table.php" afterDir="false" />
@ -29,26 +22,45 @@
<change afterPath="$PROJECT_DIR$/packages/iqcontent/laravel-filemanager/src/views/colors.blade.php" afterDir="false" />
<change afterPath="$PROJECT_DIR$/packages/iqcontent/laravel-filemanager/src/views/file.blade.php" afterDir="false" />
<change afterPath="$PROJECT_DIR$/packages/iqcontent/laravel-filemanager/src/views/move-item.blade.php" afterDir="false" />
<change afterPath="$PROJECT_DIR$/resources/views/cms/content/info/index.blade.php" afterDir="false" />
<change afterPath="$PROJECT_DIR$/storage/app/public/Stern-Tours-Mietbedingungen.pdf" afterDir="false" />
<change afterPath="$PROJECT_DIR$/storage/app/public/files/shares/root/Bilder/Bilder-in/thumbs/4_cropped_1574181421.jpg" afterDir="false" />
<change afterPath="$PROJECT_DIR$/storage/app/public/files/shares/root/Bilder/thumbs/logo.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/storage/app/public/files/shares/root2/1Baustein-Q-Board-Zeus.xls" afterDir="false" />
<change afterPath="$PROJECT_DIR$/storage/app/public/files/shares/root2/4_cropped_1574181421.jpg" afterDir="false" />
<change afterPath="$PROJECT_DIR$/storage/app/public/files/shares/root2/thumbs/Wir-STERN-TOURS.jpg" afterDir="false" />
<change afterPath="$PROJECT_DIR$/storage/app/public/files/shares/thumbs/128.jpg" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/dataSources/09ce12d1-7f68-4ce4-9ab1-0229d6366fdb.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/dataSources/09ce12d1-7f68-4ce4-9ab1-0229d6366fdb.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/dataSources/f7aaeef3-b8e1-45ca-9f6a-b9476048d5dd.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/dataSources/f7aaeef3-b8e1-45ca-9f6a-b9476048d5dd.xml" afterDir="false" />
<change afterPath="$PROJECT_DIR$/storage/debugbar/.gitignore" afterDir="false" />
<change afterPath="$PROJECT_DIR$/which" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/mein.sterntours.iml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/mein.sterntours.iml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/php.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/php.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.phpstorm.meta.php" beforeDir="false" afterPath="$PROJECT_DIR$/.phpstorm.meta.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/_ide_helper.php" beforeDir="false" afterPath="$PROJECT_DIR$/_ide_helper.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/_ide_helper_models.php" beforeDir="false" afterPath="$PROJECT_DIR$/_ide_helper_models.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/Http/Controllers/CMS/CMSContentController.php" beforeDir="false" afterPath="$PROJECT_DIR$/app/Http/Controllers/CMS/CMSContentController.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/Http/Controllers/CMS/CMSTravelGuideController.php" beforeDir="false" afterPath="$PROJECT_DIR$/app/Http/Controllers/CMS/CMSTravelGuideController.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/Models/Sym/CmsContent.php" beforeDir="false" afterPath="$PROJECT_DIR$/app/Models/Sym/CmsContent.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/Http/Controllers/API/CMSContentController.php" beforeDir="false" afterPath="$PROJECT_DIR$/app/Http/Controllers/API/CMSContentController.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/Http/Controllers/API/FewoController.php" beforeDir="false" afterPath="$PROJECT_DIR$/app/Http/Controllers/API/FewoController.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/Http/Controllers/CMS/CMSContentInfoController.php" beforeDir="false" afterPath="$PROJECT_DIR$/app/Http/Controllers/CMS/CMSContentInfoController.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/Models/Booking.php" beforeDir="false" afterPath="$PROJECT_DIR$/app/Models/Booking.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/Models/CMSInfo.php" beforeDir="false" afterPath="$PROJECT_DIR$/app/Models/CMSInfo.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/Models/CMSInfoAvailable.php" beforeDir="false" afterPath="$PROJECT_DIR$/app/Models/CMSInfoAvailable.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/Models/Draft.php" beforeDir="false" afterPath="$PROJECT_DIR$/app/Models/Draft.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/Models/DraftType.php" beforeDir="false" afterPath="$PROJECT_DIR$/app/Models/DraftType.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/Models/Feedback.php" beforeDir="false" afterPath="$PROJECT_DIR$/app/Models/Feedback.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/Models/FewoLodging.php" beforeDir="false" afterPath="$PROJECT_DIR$/app/Models/FewoLodging.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/Models/FewoLodgingGroup.php" beforeDir="false" afterPath="$PROJECT_DIR$/app/Models/FewoLodgingGroup.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/Models/FewoLodgingType.php" beforeDir="false" afterPath="$PROJECT_DIR$/app/Models/FewoLodgingType.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/Models/FewoSeason.php" beforeDir="false" afterPath="$PROJECT_DIR$/app/Models/FewoSeason.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/Models/IQContentTree.php" beforeDir="false" afterPath="$PROJECT_DIR$/app/Models/IQContentTree.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/Models/IQContentTreeNode.php" beforeDir="false" afterPath="$PROJECT_DIR$/app/Models/IQContentTreeNode.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/Models/Page.php" beforeDir="false" afterPath="$PROJECT_DIR$/app/Models/Page.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/Models/Sym/ArrangementTemplate.php" beforeDir="false" afterPath="$PROJECT_DIR$/app/Models/Sym/ArrangementTemplate.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/Models/TravelBookingFewoChannel.php" beforeDir="false" afterPath="$PROJECT_DIR$/app/Models/TravelBookingFewoChannel.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/Models/TravelClass.php" beforeDir="false" afterPath="$PROJECT_DIR$/app/Models/TravelClass.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/Models/TravelCountry.php" beforeDir="false" afterPath="$PROJECT_DIR$/app/Models/TravelCountry.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/Models/TravelGuide.php" beforeDir="false" afterPath="$PROJECT_DIR$/app/Models/TravelGuide.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/Models/TravelPageGuide.php" beforeDir="false" afterPath="$PROJECT_DIR$/app/Models/TravelPageGuide.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/Models/TravelProgram.php" beforeDir="false" afterPath="$PROJECT_DIR$/app/Models/TravelProgram.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/Models/TravelUser.php" beforeDir="false" afterPath="$PROJECT_DIR$/app/Models/TravelUser.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/Services/HTMLHelper.php" beforeDir="false" afterPath="$PROJECT_DIR$/app/Services/HTMLHelper.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/database/seeds/DatabaseSeeder.php" beforeDir="false" afterPath="$PROJECT_DIR$/database/seeds/DatabaseSeeder.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/User.php" beforeDir="false" afterPath="$PROJECT_DIR$/app/User.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/bootstrap/cache/packages.php" beforeDir="false" afterPath="$PROJECT_DIR$/bootstrap/cache/packages.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/bootstrap/cache/services.php" beforeDir="false" afterPath="$PROJECT_DIR$/bootstrap/cache/services.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/composer.json" beforeDir="false" afterPath="$PROJECT_DIR$/composer.json" afterDir="false" />
<change beforePath="$PROJECT_DIR$/composer.lock" beforeDir="false" afterPath="$PROJECT_DIR$/composer.lock" afterDir="false" />
<change beforePath="$PROJECT_DIR$/database/migrations/2019_12_11_171859_create_c_m_s_info_availables_table.php" beforeDir="false" afterPath="$PROJECT_DIR$/database/migrations/2019_12_11_171859_create_c_m_s_info_availables_table.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/packages/iqcontent/laravel-filemanager/composer.json" beforeDir="false" afterPath="$PROJECT_DIR$/packages/iqcontent/laravel-filemanager/composer.json" afterDir="false" />
<change beforePath="$PROJECT_DIR$/packages/iqcontent/laravel-filemanager/public/css/cropper.min.css" beforeDir="false" afterPath="$PROJECT_DIR$/packages/iqcontent/laravel-filemanager/public/css/cropper.min.css" afterDir="false" />
<change beforePath="$PROJECT_DIR$/packages/iqcontent/laravel-filemanager/public/js/cropper.min.js" beforeDir="false" afterPath="$PROJECT_DIR$/packages/iqcontent/laravel-filemanager/public/js/cropper.min.js" afterDir="false" />
@ -57,7 +69,6 @@
<change beforePath="$PROJECT_DIR$/packages/iqcontent/laravel-filemanager/src/Controllers/DeleteController.php" beforeDir="false" afterPath="$PROJECT_DIR$/packages/iqcontent/laravel-filemanager/src/Controllers/DeleteController.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/packages/iqcontent/laravel-filemanager/src/Controllers/DemoController.php" beforeDir="false" afterPath="$PROJECT_DIR$/packages/iqcontent/laravel-filemanager/src/Controllers/DemoController.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/packages/iqcontent/laravel-filemanager/src/Controllers/DownloadController.php" beforeDir="false" afterPath="$PROJECT_DIR$/packages/iqcontent/laravel-filemanager/src/Controllers/DownloadController.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/packages/iqcontent/laravel-filemanager/src/Controllers/FileController.php" beforeDir="false" afterPath="$PROJECT_DIR$/packages/iqcontent/laravel-filemanager/src/Controllers/FileController.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/packages/iqcontent/laravel-filemanager/src/Controllers/FolderController.php" beforeDir="false" afterPath="$PROJECT_DIR$/packages/iqcontent/laravel-filemanager/src/Controllers/FolderController.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/packages/iqcontent/laravel-filemanager/src/Controllers/ItemsController.php" beforeDir="false" afterPath="$PROJECT_DIR$/packages/iqcontent/laravel-filemanager/src/Controllers/ItemsController.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/packages/iqcontent/laravel-filemanager/src/Controllers/LfmController.php" beforeDir="false" afterPath="$PROJECT_DIR$/packages/iqcontent/laravel-filemanager/src/Controllers/LfmController.php" afterDir="false" />
@ -90,31 +101,21 @@
<change beforePath="$PROJECT_DIR$/packages/iqcontent/laravel-filemanager/src/LfmStorageRepository.php" beforeDir="false" afterPath="$PROJECT_DIR$/packages/iqcontent/laravel-filemanager/src/LfmStorageRepository.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/packages/iqcontent/laravel-filemanager/src/Middlewares/CreateDefaultFolder.php" beforeDir="false" afterPath="$PROJECT_DIR$/packages/iqcontent/laravel-filemanager/src/Middlewares/CreateDefaultFolder.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/packages/iqcontent/laravel-filemanager/src/Middlewares/MultiUser.php" beforeDir="false" afterPath="$PROJECT_DIR$/packages/iqcontent/laravel-filemanager/src/Middlewares/MultiUser.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/packages/iqcontent/laravel-filemanager/src/Models/IQContentCategory.php" beforeDir="false" afterPath="$PROJECT_DIR$/packages/iqcontent/laravel-filemanager/src/Models/IQContentCategory.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/packages/iqcontent/laravel-filemanager/src/Models/IQContentFile.php" beforeDir="false" afterPath="$PROJECT_DIR$/packages/iqcontent/laravel-filemanager/src/Models/IQContentFile.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/packages/iqcontent/laravel-filemanager/src/Models/IQContentFolder.php" beforeDir="false" afterPath="$PROJECT_DIR$/packages/iqcontent/laravel-filemanager/src/Models/IQContentFolder.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/packages/iqcontent/laravel-filemanager/src/Models/IQContentTag.php" beforeDir="false" afterPath="$PROJECT_DIR$/packages/iqcontent/laravel-filemanager/src/Models/IQContentTag.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/packages/iqcontent/laravel-filemanager/src/config/lfm.php" beforeDir="false" afterPath="$PROJECT_DIR$/packages/iqcontent/laravel-filemanager/src/config/lfm.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/packages/iqcontent/laravel-filemanager/src/lang/de/lfm.php" beforeDir="false" afterPath="$PROJECT_DIR$/packages/iqcontent/laravel-filemanager/src/lang/de/lfm.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/packages/iqcontent/laravel-filemanager/src/views/crop.blade.php" beforeDir="false" afterPath="$PROJECT_DIR$/packages/iqcontent/laravel-filemanager/src/views/crop.blade.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/packages/iqcontent/laravel-filemanager/src/views/demo.blade.php" beforeDir="false" afterPath="$PROJECT_DIR$/packages/iqcontent/laravel-filemanager/src/views/demo.blade.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/packages/iqcontent/laravel-filemanager/src/views/index.blade.php" beforeDir="false" afterPath="$PROJECT_DIR$/packages/iqcontent/laravel-filemanager/src/views/index.blade.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/packages/iqcontent/laravel-filemanager/src/views/move.blade.php" beforeDir="false" afterPath="$PROJECT_DIR$/packages/iqcontent/laravel-filemanager/src/views/move.blade.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/public/js/custom.js" beforeDir="false" afterPath="$PROJECT_DIR$/public/js/custom.js" afterDir="false" />
<change beforePath="$PROJECT_DIR$/public/js/filemanager.js" beforeDir="false" afterPath="$PROJECT_DIR$/public/js/filemanager.js" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resources/views/iq/content/assets/index.blade.php" beforeDir="false" afterPath="$PROJECT_DIR$/resources/views/iq/content/assets/index.blade.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resources/views/layouts/application.blade.php" beforeDir="false" afterPath="$PROJECT_DIR$/resources/views/layouts/application.blade.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resources/views/layouts/includes/layout-sidenav.blade.php" beforeDir="false" afterPath="$PROJECT_DIR$/resources/views/layouts/includes/layout-sidenav.blade.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/public/css/application.css" beforeDir="false" afterPath="$PROJECT_DIR$/public/css/application.css" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resources/views/cms/content/country/detail.blade.php" beforeDir="false" afterPath="$PROJECT_DIR$/resources/views/cms/content/country/detail.blade.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resources/views/cms/content/info/index.blade.php" beforeDir="false" afterPath="$PROJECT_DIR$/resources/views/cms/content/info/index.blade.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/routes/api.php" beforeDir="false" afterPath="$PROJECT_DIR$/routes/api.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/routes/web.php" beforeDir="false" afterPath="$PROJECT_DIR$/routes/web.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/storage/app/public/files/shares/4.jpg" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/storage/app/public/files/shares/8.jpg" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/storage/app/public/files/shares/Baustein-Q-Board-Zeus.xls" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/storage/app/public/files/shares/Wir-STERN-TOURS.youtube" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/storage/app/public/files/shares/root/Bilder/4_cropped_1574181421.jpg" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/storage/app/public/files/shares/root/Bilder/thumbs/4_cropped_1574181421.jpg" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/storage/app/public/files/shares/root/thumbs/logo.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/storage/app/public/files/shares/root/youtube/Wir-STERN-TOURS.youtube" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/storage/app/public/files/shares/root/youtube/thumbs/Wir-STERN-TOURS.jpg" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/storage/app/public/files/shares/root/youtube/youtube-in/Wir-STERN-TOURS.youtube" beforeDir="false" afterPath="$PROJECT_DIR$/storage/app/public/files/shares/root/youtube/youtube-in/Wir-STERN-TOURS.youtube" afterDir="false" />
<change beforePath="$PROJECT_DIR$/storage/app/public/files/shares/thumbs/4.jpg" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/storage/app/public/files/shares/thumbs/8.jpg" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/storage/app/public/pdf/Stern-Tours-Mietbedingungen.pdf" beforeDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
@ -291,6 +292,10 @@
<path value="$PROJECT_DIR$/vendor/markbaker/complex" />
<path value="$PROJECT_DIR$/vendor/markbaker/matrix" />
<path value="$PROJECT_DIR$/vendor/iqcontent/laravel-filemanager" />
<path value="$PROJECT_DIR$/vendor/maximebf/debugbar" />
<path value="$PROJECT_DIR$/vendor/sebastian/type" />
<path value="$PROJECT_DIR$/vendor/symfony/error-handler" />
<path value="$PROJECT_DIR$/vendor/barryvdh/laravel-debugbar" />
</include_path>
</component>
<component name="ProjectId" id="1OVGC0t0zLFaJgjHUxM3IZZZaeh" />
@ -305,11 +310,12 @@
<component name="PropertiesComponent">
<property name="ASKED_ADD_EXTERNAL_FILES" value="true" />
<property name="DatabaseDriversLRU" value="mysql" />
<property name="RunOnceActivity.ShowReadmeOnStart" value="true" />
<property name="SHARE_PROJECT_CONFIGURATION_FILES" value="true" />
<property name="WebServerToolWindowFactoryState" value="false" />
<property name="database.console.LAST_STATE" value="false" />
<property name="js.buildTools.grunt.grunt-cli.package" value="" />
<property name="last_opened_file_path" value="$PROJECT_DIR$/resources/views/cms/content/info" />
<property name="last_opened_file_path" value="$PROJECT_DIR$/app/Http/Controllers/API" />
<property name="nodejs_package_manager_path" value="npm" />
<property name="settings.editor.selected.configurable" value="project.propVCSSupport.Mappings" />
</component>
@ -322,11 +328,11 @@
<recent name="$PROJECT_DIR$/database/migrations" />
</key>
<key name="CopyFile.RECENT_KEYS">
<recent name="$PROJECT_DIR$/app/Http/Controllers/API" />
<recent name="$PROJECT_DIR$/resources/views/cms/content/info" />
<recent name="$PROJECT_DIR$/app/Http/Controllers/CMS" />
<recent name="$PROJECT_DIR$/packages/iqcontent/laravel-filemanager/src/views" />
<recent name="$PROJECT_DIR$/packages/iqcontent/laravel-filemanager/src/Controllers" />
<recent name="$PROJECT_DIR$/app/Models/Sym" />
</key>
</component>
<component name="RunAnythingCache">
@ -580,6 +586,16 @@
<workItem from="1576055546754" duration="12309000" />
<workItem from="1576073978933" duration="9208000" />
<workItem from="1576142228411" duration="9187000" />
<workItem from="1576252624308" duration="95000" />
<workItem from="1577124648667" duration="5861000" />
<workItem from="1577198502643" duration="186000" />
<workItem from="1577198775552" duration="390000" />
<workItem from="1577530002946" duration="3000" />
<workItem from="1577532716106" duration="591000" />
<workItem from="1577533336006" duration="302000" />
<workItem from="1577533716886" duration="2492000" />
<workItem from="1577541571485" duration="15179000" />
<workItem from="1577559732379" duration="538000" />
</task>
<servers />
</component>
@ -618,13 +634,25 @@
<screen x="0" y="23" width="2560" height="1417" />
</state>
<state x="975" y="454" key="#composer-post-update.sh/-2560.23.2560.1417/2560.-571.1440.2537/0.23.2560.1417@0.23.2560.1417" timestamp="1576084046909" />
<state x="1063" y="650" key="com.intellij.openapi.vcs.update.UpdateOrStatusOptionsDialogupdate-v2" timestamp="1576069987144">
<state x="1097" y="610" width="600" height="300" key="ComposerAddDependencyOutputPopupDimensionServiceKey" timestamp="1577532820637">
<screen x="0" y="23" width="2560" height="1417" />
</state>
<state x="1063" y="650" key="com.intellij.openapi.vcs.update.UpdateOrStatusOptionsDialogupdate-v2/-2560.23.2560.1417/2560.-571.1440.2537/0.23.2560.1417@0.23.2560.1417" timestamp="1576069987144" />
<state x="938" y="488" width="1035" height="714" key="find.popup" timestamp="1576083842861">
<state x="1097" y="610" width="600" height="300" key="ComposerAddDependencyOutputPopupDimensionServiceKey/-2560.23.2560.1417/2560.-571.1440.2537/0.23.2560.1417@0.23.2560.1417" timestamp="1577532820637" />
<state x="1020" y="544" width="535" height="375" key="PHPComposerAddDependencyDialogDimensionKey" timestamp="1577532821964">
<screen x="0" y="23" width="2560" height="1417" />
</state>
<state x="938" y="488" width="1035" height="714" key="find.popup/-2560.23.2560.1417/2560.-571.1440.2537/0.23.2560.1417@0.23.2560.1417" timestamp="1576083842861" />
<state x="1020" y="544" width="535" height="375" key="PHPComposerAddDependencyDialogDimensionKey/-2560.23.2560.1417/2560.-571.1440.2537/0.23.2560.1417@0.23.2560.1417" timestamp="1577532821964" />
<state x="1063" y="650" key="com.intellij.openapi.vcs.update.UpdateOrStatusOptionsDialogupdate-v2" timestamp="1577126837332">
<screen x="0" y="23" width="2560" height="1417" />
</state>
<state x="1063" y="650" key="com.intellij.openapi.vcs.update.UpdateOrStatusOptionsDialogupdate-v2/-2560.23.2560.1417/2560.-571.1440.2537/0.23.2560.1417@0.23.2560.1417" timestamp="1577126837332" />
<state x="938" y="488" width="1035" height="714" key="find.popup" timestamp="1577550564294">
<screen x="0" y="23" width="2560" height="1417" />
</state>
<state x="938" y="488" width="1035" height="714" key="find.popup/-2560.23.2560.1417/2560.-571.1440.2537/0.23.2560.1417@0.23.2560.1417" timestamp="1577550564294" />
<state x="946" y="348" width="670" height="676" key="search.everywhere.popup" timestamp="1577556651494">
<screen x="0" y="23" width="2560" height="1417" />
</state>
<state x="946" y="348" width="670" height="676" key="search.everywhere.popup/-2560.23.2560.1417/2560.-571.1440.2537/0.23.2560.1417@0.23.2560.1417" timestamp="1577556651494" />
</component>
</project>

View file

@ -5,13 +5,14 @@ namespace PHPSTORM_META {
/**
* PhpStorm Meta file, to provide autocomplete information for PhpStorm
* Generated on 2019-12-12 12:29:01.
* Generated on 2019-12-28 16:01:55.
*
* @author Barry vd. Heuvel <barryvdh@gmail.com>
* @see https://github.com/barryvdh/laravel-ide-helper
*/
override(new \Illuminate\Contracts\Container\Container, map([
'' => '@',
'Barryvdh\Debugbar\LaravelDebugbar' => \Barryvdh\Debugbar\LaravelDebugbar::class,
'Cviebrock\EloquentSluggable\SluggableObserver' => \Cviebrock\EloquentSluggable\SluggableObserver::class,
'Illuminate\Broadcasting\BroadcastManager' => \Illuminate\Broadcasting\BroadcastManager::class,
'Illuminate\Bus\Dispatcher' => \Illuminate\Bus\Dispatcher::class,
@ -62,6 +63,171 @@ namespace PHPSTORM_META {
'command.config.clear' => \Illuminate\Foundation\Console\ConfigClearCommand::class,
'command.console.make' => \Illuminate\Foundation\Console\ConsoleMakeCommand::class,
'command.controller.make' => \Illuminate\Routing\Console\ControllerMakeCommand::class,
'command.debugbar.clear' => \Barryvdh\Debugbar\Console\ClearCommand::class,
'command.down' => \Illuminate\Foundation\Console\DownCommand::class,
'command.environment' => \Illuminate\Foundation\Console\EnvironmentCommand::class,
'command.event.cache' => \Illuminate\Foundation\Console\EventCacheCommand::class,
'command.event.clear' => \Illuminate\Foundation\Console\EventClearCommand::class,
'command.event.generate' => \Illuminate\Foundation\Console\EventGenerateCommand::class,
'command.event.list' => \Illuminate\Foundation\Console\EventListCommand::class,
'command.event.make' => \Illuminate\Foundation\Console\EventMakeCommand::class,
'command.exception.make' => \Illuminate\Foundation\Console\ExceptionMakeCommand::class,
'command.factory.make' => \Illuminate\Database\Console\Factories\FactoryMakeCommand::class,
'command.ide-helper.eloquent' => \Barryvdh\LaravelIdeHelper\Console\EloquentCommand::class,
'command.ide-helper.generate' => \Barryvdh\LaravelIdeHelper\Console\GeneratorCommand::class,
'command.ide-helper.meta' => \Barryvdh\LaravelIdeHelper\Console\MetaCommand::class,
'command.ide-helper.models' => \Barryvdh\LaravelIdeHelper\Console\ModelsCommand::class,
'command.job.make' => \Illuminate\Foundation\Console\JobMakeCommand::class,
'command.key.generate' => \Illuminate\Foundation\Console\KeyGenerateCommand::class,
'command.listener.make' => \Illuminate\Foundation\Console\ListenerMakeCommand::class,
'command.mail.make' => \Illuminate\Foundation\Console\MailMakeCommand::class,
'command.middleware.make' => \Illuminate\Routing\Console\MiddlewareMakeCommand::class,
'command.migrate' => \Illuminate\Database\Console\Migrations\MigrateCommand::class,
'command.migrate.fresh' => \Illuminate\Database\Console\Migrations\FreshCommand::class,
'command.migrate.install' => \Illuminate\Database\Console\Migrations\InstallCommand::class,
'command.migrate.make' => \Illuminate\Database\Console\Migrations\MigrateMakeCommand::class,
'command.migrate.refresh' => \Illuminate\Database\Console\Migrations\RefreshCommand::class,
'command.migrate.reset' => \Illuminate\Database\Console\Migrations\ResetCommand::class,
'command.migrate.rollback' => \Illuminate\Database\Console\Migrations\RollbackCommand::class,
'command.migrate.status' => \Illuminate\Database\Console\Migrations\StatusCommand::class,
'command.model.make' => \Illuminate\Foundation\Console\ModelMakeCommand::class,
'command.notification.make' => \Illuminate\Foundation\Console\NotificationMakeCommand::class,
'command.notification.table' => \Illuminate\Notifications\Console\NotificationTableCommand::class,
'command.observer.make' => \Illuminate\Foundation\Console\ObserverMakeCommand::class,
'command.optimize' => \Illuminate\Foundation\Console\OptimizeCommand::class,
'command.optimize.clear' => \Illuminate\Foundation\Console\OptimizeClearCommand::class,
'command.package.discover' => \Illuminate\Foundation\Console\PackageDiscoverCommand::class,
'command.policy.make' => \Illuminate\Foundation\Console\PolicyMakeCommand::class,
'command.preset' => \Illuminate\Foundation\Console\PresetCommand::class,
'command.provider.make' => \Illuminate\Foundation\Console\ProviderMakeCommand::class,
'command.queue.failed' => \Illuminate\Queue\Console\ListFailedCommand::class,
'command.queue.failed-table' => \Illuminate\Queue\Console\FailedTableCommand::class,
'command.queue.flush' => \Illuminate\Queue\Console\FlushFailedCommand::class,
'command.queue.forget' => \Illuminate\Queue\Console\ForgetFailedCommand::class,
'command.queue.listen' => \Illuminate\Queue\Console\ListenCommand::class,
'command.queue.restart' => \Illuminate\Queue\Console\RestartCommand::class,
'command.queue.retry' => \Illuminate\Queue\Console\RetryCommand::class,
'command.queue.table' => \Illuminate\Queue\Console\TableCommand::class,
'command.queue.work' => \Illuminate\Queue\Console\WorkCommand::class,
'command.request.make' => \Illuminate\Foundation\Console\RequestMakeCommand::class,
'command.resource.make' => \Illuminate\Foundation\Console\ResourceMakeCommand::class,
'command.route.cache' => \Illuminate\Foundation\Console\RouteCacheCommand::class,
'command.route.clear' => \Illuminate\Foundation\Console\RouteClearCommand::class,
'command.route.list' => \Illuminate\Foundation\Console\RouteListCommand::class,
'command.rule.make' => \Illuminate\Foundation\Console\RuleMakeCommand::class,
'command.seed' => \Illuminate\Database\Console\Seeds\SeedCommand::class,
'command.seeder.make' => \Illuminate\Database\Console\Seeds\SeederMakeCommand::class,
'command.serve' => \Illuminate\Foundation\Console\ServeCommand::class,
'command.session.table' => \Illuminate\Session\Console\SessionTableCommand::class,
'command.storage.link' => \Illuminate\Foundation\Console\StorageLinkCommand::class,
'command.test.make' => \Illuminate\Foundation\Console\TestMakeCommand::class,
'command.tinker' => \Laravel\Tinker\Console\TinkerCommand::class,
'command.up' => \Illuminate\Foundation\Console\UpCommand::class,
'command.vendor.publish' => \Illuminate\Foundation\Console\VendorPublishCommand::class,
'command.view.cache' => \Illuminate\Foundation\Console\ViewCacheCommand::class,
'command.view.clear' => \Illuminate\Foundation\Console\ViewClearCommand::class,
'composer' => \Illuminate\Support\Composer::class,
'cookie' => \Illuminate\Cookie\CookieJar::class,
'datatables' => \Yajra\DataTables\DataTables::class,
'datatables.config' => \Yajra\DataTables\Utilities\Config::class,
'datatables.request' => \Yajra\DataTables\Utilities\Request::class,
'db' => \Illuminate\Database\DatabaseManager::class,
'db.connection' => \Illuminate\Database\MySqlConnection::class,
'db.factory' => \Illuminate\Database\Connectors\ConnectionFactory::class,
'dompdf' => \Dompdf\Dompdf::class,
'dompdf.wrapper' => \Barryvdh\DomPDF\PDF::class,
'encrypter' => \Illuminate\Encryption\Encrypter::class,
'events' => \Illuminate\Events\Dispatcher::class,
'excel' => \Maatwebsite\Excel\Excel::class,
'files' => \Illuminate\Filesystem\Filesystem::class,
'filesystem' => \Illuminate\Filesystem\FilesystemManager::class,
'filesystem.disk' => \Illuminate\Filesystem\FilesystemAdapter::class,
'flash' => \Laracasts\Flash\FlashNotifier::class,
'form' => \Collective\Html\FormBuilder::class,
'hash' => \Illuminate\Hashing\HashManager::class,
'hash.driver' => \Illuminate\Hashing\BcryptHasher::class,
'html' => \Collective\Html\HtmlBuilder::class,
'image' => \Intervention\Image\ImageManager::class,
'log' => \Illuminate\Log\LogManager::class,
'mailer' => \Illuminate\Mail\Mailer::class,
'memcached.connector' => \Illuminate\Cache\MemcachedConnector::class,
'migration.creator' => \Illuminate\Database\Migrations\MigrationCreator::class,
'migration.repository' => \Illuminate\Database\Migrations\DatabaseMigrationRepository::class,
'migrator' => \Illuminate\Database\Migrations\Migrator::class,
'queue' => \Illuminate\Queue\QueueManager::class,
'queue.connection' => \Illuminate\Queue\SyncQueue::class,
'queue.failer' => \Illuminate\Queue\Failed\DatabaseFailedJobProvider::class,
'queue.listener' => \Illuminate\Queue\Listener::class,
'queue.worker' => \Illuminate\Queue\Worker::class,
'redirect' => \Illuminate\Routing\Redirector::class,
'redis' => \Illuminate\Redis\RedisManager::class,
'router' => \Illuminate\Routing\Router::class,
'session' => \Illuminate\Session\SessionManager::class,
'session.store' => \Illuminate\Session\Store::class,
'swift.mailer' => \Swift_Mailer::class,
'swift.transport' => \Illuminate\Mail\TransportManager::class,
'translation.loader' => \Illuminate\Translation\FileLoader::class,
'translator' => \Illuminate\Translation\Translator::class,
'url' => \Illuminate\Routing\UrlGenerator::class,
'validation.presence' => \Illuminate\Validation\DatabasePresenceVerifier::class,
'view' => \Illuminate\View\Factory::class,
'view.engine.resolver' => \Illuminate\View\Engines\EngineResolver::class,
'view.finder' => \Illuminate\View\FileViewFinder::class,
]));
override(\Illuminate\Container\Container::makeWith(0), map([
'' => '@',
'Barryvdh\Debugbar\LaravelDebugbar' => \Barryvdh\Debugbar\LaravelDebugbar::class,
'Cviebrock\EloquentSluggable\SluggableObserver' => \Cviebrock\EloquentSluggable\SluggableObserver::class,
'Illuminate\Broadcasting\BroadcastManager' => \Illuminate\Broadcasting\BroadcastManager::class,
'Illuminate\Bus\Dispatcher' => \Illuminate\Bus\Dispatcher::class,
'Illuminate\Console\Scheduling\Schedule' => \Illuminate\Console\Scheduling\Schedule::class,
'Illuminate\Console\Scheduling\ScheduleFinishCommand' => \Illuminate\Console\Scheduling\ScheduleFinishCommand::class,
'Illuminate\Console\Scheduling\ScheduleRunCommand' => \Illuminate\Console\Scheduling\ScheduleRunCommand::class,
'Illuminate\Contracts\Auth\Access\Gate' => \Illuminate\Auth\Access\Gate::class,
'Illuminate\Contracts\Broadcasting\Broadcaster' => \Illuminate\Broadcasting\Broadcasters\LogBroadcaster::class,
'Illuminate\Contracts\Console\Kernel' => \App\Console\Kernel::class,
'Illuminate\Contracts\Debug\ExceptionHandler' => \NunoMaduro\Collision\Adapters\Laravel\ExceptionHandler::class,
'Illuminate\Contracts\Http\Kernel' => \App\Http\Kernel::class,
'Illuminate\Contracts\Pipeline\Hub' => \Illuminate\Pipeline\Hub::class,
'Illuminate\Contracts\Queue\EntityResolver' => \Illuminate\Database\Eloquent\QueueEntityResolver::class,
'Illuminate\Contracts\Routing\ResponseFactory' => \Illuminate\Routing\ResponseFactory::class,
'Illuminate\Foundation\Mix' => \Illuminate\Foundation\Mix::class,
'Illuminate\Mail\Markdown' => \Illuminate\Mail\Markdown::class,
'Illuminate\Notifications\ChannelManager' => \Illuminate\Notifications\ChannelManager::class,
'Illuminate\Routing\Contracts\ControllerDispatcher' => \Illuminate\Routing\ControllerDispatcher::class,
'Illuminate\Session\Middleware\StartSession' => \Illuminate\Session\Middleware\StartSession::class,
'Laracasts\Flash\SessionStore' => \Laracasts\Flash\LaravelSessionStore::class,
'League\OAuth2\Server\AuthorizationServer' => \League\OAuth2\Server\AuthorizationServer::class,
'League\OAuth2\Server\ResourceServer' => \League\OAuth2\Server\ResourceServer::class,
'Maatwebsite\Excel\Files\Filesystem' => \Maatwebsite\Excel\Files\Filesystem::class,
'Maatwebsite\Excel\Files\TemporaryFileFactory' => \Maatwebsite\Excel\Files\TemporaryFileFactory::class,
'Maatwebsite\Excel\Transactions\TransactionHandler' => \Maatwebsite\Excel\Transactions\DbTransactionHandler::class,
'Maatwebsite\Excel\Transactions\TransactionManager' => \Maatwebsite\Excel\Transactions\TransactionManager::class,
'NunoMaduro\Collision\Contracts\Adapters\Phpunit\Listener' => \NunoMaduro\Collision\Adapters\Phpunit\Listener::class,
'NunoMaduro\Collision\Contracts\Provider' => \NunoMaduro\Collision\Provider::class,
'Psr\Http\Message\ResponseInterface' => \Zend\Diactoros\Response::class,
'Psr\Http\Message\ServerRequestInterface' => \Zend\Diactoros\ServerRequest::class,
'Reliese\Coders\Model\Factory' => \Reliese\Coders\Model\Factory::class,
'auth' => \Illuminate\Auth\AuthManager::class,
'auth.driver' => \Illuminate\Auth\SessionGuard::class,
'auth.password' => \Illuminate\Auth\Passwords\PasswordBrokerManager::class,
'auth.password.broker' => \Illuminate\Auth\Passwords\PasswordBroker::class,
'blade.compiler' => \Illuminate\View\Compilers\BladeCompiler::class,
'cache' => \Illuminate\Cache\CacheManager::class,
'cache.store' => \Illuminate\Cache\Repository::class,
'command.app.name' => \Illuminate\Foundation\Console\AppNameCommand::class,
'command.auth.make' => \Illuminate\Auth\Console\AuthMakeCommand::class,
'command.auth.resets.clear' => \Illuminate\Auth\Console\ClearResetsCommand::class,
'command.cache.clear' => \Illuminate\Cache\Console\ClearCommand::class,
'command.cache.forget' => \Illuminate\Cache\Console\ForgetCommand::class,
'command.cache.table' => \Illuminate\Cache\Console\CacheTableCommand::class,
'command.channel.make' => \Illuminate\Foundation\Console\ChannelMakeCommand::class,
'command.clear-compiled' => \Illuminate\Foundation\Console\ClearCompiledCommand::class,
'command.config.cache' => \Illuminate\Foundation\Console\ConfigCacheCommand::class,
'command.config.clear' => \Illuminate\Foundation\Console\ConfigClearCommand::class,
'command.console.make' => \Illuminate\Foundation\Console\ConsoleMakeCommand::class,
'command.controller.make' => \Illuminate\Routing\Console\ControllerMakeCommand::class,
'command.debugbar.clear' => \Barryvdh\Debugbar\Console\ClearCommand::class,
'command.down' => \Illuminate\Foundation\Console\DownCommand::class,
'command.environment' => \Illuminate\Foundation\Console\EnvironmentCommand::class,
'command.event.cache' => \Illuminate\Foundation\Console\EventCacheCommand::class,
@ -174,6 +340,7 @@ namespace PHPSTORM_META {
]));
override(\Illuminate\Contracts\Container\Container::make(0), map([
'' => '@',
'Barryvdh\Debugbar\LaravelDebugbar' => \Barryvdh\Debugbar\LaravelDebugbar::class,
'Cviebrock\EloquentSluggable\SluggableObserver' => \Cviebrock\EloquentSluggable\SluggableObserver::class,
'Illuminate\Broadcasting\BroadcastManager' => \Illuminate\Broadcasting\BroadcastManager::class,
'Illuminate\Bus\Dispatcher' => \Illuminate\Bus\Dispatcher::class,
@ -224,6 +391,7 @@ namespace PHPSTORM_META {
'command.config.clear' => \Illuminate\Foundation\Console\ConfigClearCommand::class,
'command.console.make' => \Illuminate\Foundation\Console\ConsoleMakeCommand::class,
'command.controller.make' => \Illuminate\Routing\Console\ControllerMakeCommand::class,
'command.debugbar.clear' => \Barryvdh\Debugbar\Console\ClearCommand::class,
'command.down' => \Illuminate\Foundation\Console\DownCommand::class,
'command.environment' => \Illuminate\Foundation\Console\EnvironmentCommand::class,
'command.event.cache' => \Illuminate\Foundation\Console\EventCacheCommand::class,
@ -336,6 +504,7 @@ namespace PHPSTORM_META {
]));
override(\Illuminate\Contracts\Container\Container::makeWith(0), map([
'' => '@',
'Barryvdh\Debugbar\LaravelDebugbar' => \Barryvdh\Debugbar\LaravelDebugbar::class,
'Cviebrock\EloquentSluggable\SluggableObserver' => \Cviebrock\EloquentSluggable\SluggableObserver::class,
'Illuminate\Broadcasting\BroadcastManager' => \Illuminate\Broadcasting\BroadcastManager::class,
'Illuminate\Bus\Dispatcher' => \Illuminate\Bus\Dispatcher::class,
@ -386,6 +555,7 @@ namespace PHPSTORM_META {
'command.config.clear' => \Illuminate\Foundation\Console\ConfigClearCommand::class,
'command.console.make' => \Illuminate\Foundation\Console\ConsoleMakeCommand::class,
'command.controller.make' => \Illuminate\Routing\Console\ControllerMakeCommand::class,
'command.debugbar.clear' => \Barryvdh\Debugbar\Console\ClearCommand::class,
'command.down' => \Illuminate\Foundation\Console\DownCommand::class,
'command.environment' => \Illuminate\Foundation\Console\EnvironmentCommand::class,
'command.event.cache' => \Illuminate\Foundation\Console\EventCacheCommand::class,
@ -498,6 +668,7 @@ namespace PHPSTORM_META {
]));
override(\App::make(0), map([
'' => '@',
'Barryvdh\Debugbar\LaravelDebugbar' => \Barryvdh\Debugbar\LaravelDebugbar::class,
'Cviebrock\EloquentSluggable\SluggableObserver' => \Cviebrock\EloquentSluggable\SluggableObserver::class,
'Illuminate\Broadcasting\BroadcastManager' => \Illuminate\Broadcasting\BroadcastManager::class,
'Illuminate\Bus\Dispatcher' => \Illuminate\Bus\Dispatcher::class,
@ -548,6 +719,7 @@ namespace PHPSTORM_META {
'command.config.clear' => \Illuminate\Foundation\Console\ConfigClearCommand::class,
'command.console.make' => \Illuminate\Foundation\Console\ConsoleMakeCommand::class,
'command.controller.make' => \Illuminate\Routing\Console\ControllerMakeCommand::class,
'command.debugbar.clear' => \Barryvdh\Debugbar\Console\ClearCommand::class,
'command.down' => \Illuminate\Foundation\Console\DownCommand::class,
'command.environment' => \Illuminate\Foundation\Console\EnvironmentCommand::class,
'command.event.cache' => \Illuminate\Foundation\Console\EventCacheCommand::class,
@ -660,6 +832,7 @@ namespace PHPSTORM_META {
]));
override(\App::makeWith(0), map([
'' => '@',
'Barryvdh\Debugbar\LaravelDebugbar' => \Barryvdh\Debugbar\LaravelDebugbar::class,
'Cviebrock\EloquentSluggable\SluggableObserver' => \Cviebrock\EloquentSluggable\SluggableObserver::class,
'Illuminate\Broadcasting\BroadcastManager' => \Illuminate\Broadcasting\BroadcastManager::class,
'Illuminate\Bus\Dispatcher' => \Illuminate\Bus\Dispatcher::class,
@ -710,6 +883,7 @@ namespace PHPSTORM_META {
'command.config.clear' => \Illuminate\Foundation\Console\ConfigClearCommand::class,
'command.console.make' => \Illuminate\Foundation\Console\ConsoleMakeCommand::class,
'command.controller.make' => \Illuminate\Routing\Console\ControllerMakeCommand::class,
'command.debugbar.clear' => \Barryvdh\Debugbar\Console\ClearCommand::class,
'command.down' => \Illuminate\Foundation\Console\DownCommand::class,
'command.environment' => \Illuminate\Foundation\Console\EnvironmentCommand::class,
'command.event.cache' => \Illuminate\Foundation\Console\EventCacheCommand::class,
@ -822,6 +996,7 @@ namespace PHPSTORM_META {
]));
override(\app(0), map([
'' => '@',
'Barryvdh\Debugbar\LaravelDebugbar' => \Barryvdh\Debugbar\LaravelDebugbar::class,
'Cviebrock\EloquentSluggable\SluggableObserver' => \Cviebrock\EloquentSluggable\SluggableObserver::class,
'Illuminate\Broadcasting\BroadcastManager' => \Illuminate\Broadcasting\BroadcastManager::class,
'Illuminate\Bus\Dispatcher' => \Illuminate\Bus\Dispatcher::class,
@ -872,6 +1047,7 @@ namespace PHPSTORM_META {
'command.config.clear' => \Illuminate\Foundation\Console\ConfigClearCommand::class,
'command.console.make' => \Illuminate\Foundation\Console\ConsoleMakeCommand::class,
'command.controller.make' => \Illuminate\Routing\Console\ControllerMakeCommand::class,
'command.debugbar.clear' => \Barryvdh\Debugbar\Console\ClearCommand::class,
'command.down' => \Illuminate\Foundation\Console\DownCommand::class,
'command.environment' => \Illuminate\Foundation\Console\EnvironmentCommand::class,
'command.event.cache' => \Illuminate\Foundation\Console\EventCacheCommand::class,
@ -984,6 +1160,7 @@ namespace PHPSTORM_META {
]));
override(\resolve(0), map([
'' => '@',
'Barryvdh\Debugbar\LaravelDebugbar' => \Barryvdh\Debugbar\LaravelDebugbar::class,
'Cviebrock\EloquentSluggable\SluggableObserver' => \Cviebrock\EloquentSluggable\SluggableObserver::class,
'Illuminate\Broadcasting\BroadcastManager' => \Illuminate\Broadcasting\BroadcastManager::class,
'Illuminate\Bus\Dispatcher' => \Illuminate\Bus\Dispatcher::class,
@ -1034,6 +1211,7 @@ namespace PHPSTORM_META {
'command.config.clear' => \Illuminate\Foundation\Console\ConfigClearCommand::class,
'command.console.make' => \Illuminate\Foundation\Console\ConsoleMakeCommand::class,
'command.controller.make' => \Illuminate\Routing\Console\ControllerMakeCommand::class,
'command.debugbar.clear' => \Barryvdh\Debugbar\Console\ClearCommand::class,
'command.down' => \Illuminate\Foundation\Console\DownCommand::class,
'command.environment' => \Illuminate\Foundation\Console\EnvironmentCommand::class,
'command.event.cache' => \Illuminate\Foundation\Console\EventCacheCommand::class,
@ -1145,6 +1323,7 @@ namespace PHPSTORM_META {
'view.finder' => \Illuminate\View\FileViewFinder::class,
]));
override(\Illuminate\Support\Arr::add(0), type(0));
override(\Illuminate\Support\Arr::except(0), type(0));
override(\Illuminate\Support\Arr::first(0), elementType(0));

File diff suppressed because it is too large Load diff

View file

@ -72,6 +72,10 @@ namespace App{
* @method static \Illuminate\Database\Eloquent\Builder|\App\User newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|\App\User query()
* @method static \Illuminate\Database\Eloquent\Builder|\App\User wherePermissions($value)
* @property-read int|null $clients_count
* @property-read int|null $notifications_count
* @property-read int|null $tokens_count
* @property-read int|null $user_update_email_count
*/
class User extends \Eloquent {}
}
@ -156,6 +160,7 @@ namespace App\Models\Sym{
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Sym\ArrangementTemplate newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Sym\ArrangementTemplate newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Sym\ArrangementTemplate query()
* @property-read int|null $arrangements_count
*/
class ArrangementTemplate extends \Eloquent {}
}
@ -323,6 +328,8 @@ namespace App\Models{
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Booking newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Booking newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Booking query()
* @property-read int|null $arrangements_count
* @property-read int|null $booking_draft_items_count
*/
class Booking extends \Eloquent {}
}
@ -397,6 +404,11 @@ namespace App\Models{
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\FewoLodging whereSingleName($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\FewoLodging whereTypeId($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\FewoLodging whereZipCode($value)
* @property-read int|null $fewo_lodging_images_count
* @property-read int|null $fewo_prices_count
* @property-read int|null $fewo_reservations_count
* @property-read int|null $pages_count
* @property-read int|null $travel_user_booking_fewos_count
*/
class FewoLodging extends \Eloquent {}
}
@ -495,6 +507,10 @@ namespace App\Models{
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\TravelPageGuide whereTreeRoot($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\TravelPageGuide whereUpdatedAt($value)
* @mixin \Eloquent
* @property string|null $title_short
* @property string|null $before_title
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\TravelPageGuide whereBeforeTitle($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\TravelPageGuide whereTitleShort($value)
*/
class TravelPageGuide extends \Eloquent {}
}
@ -546,6 +562,8 @@ namespace App\Models{
* @mixin \Eloquent
* @property-read \Illuminate\Database\Eloquent\Collection|\App\Models\IQContentSite[] $iq_content_site
* @property-read \Illuminate\Database\Eloquent\Collection|\App\Models\IQContentSite[] $iq_content_sites
* @property-read int|null $iq_content_sites_count
* @property-read int|null $iq_content_tree_node_childs_count
*/
class IQContentTreeNode extends \Eloquent {}
}
@ -705,6 +723,7 @@ namespace App\Models{
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\FewoLodgingType query()
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\FewoLodgingType whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\FewoLodgingType whereName($value)
* @property-read int|null $fewo_lodgings_count
*/
class FewoLodgingType extends \Eloquent {}
}
@ -733,6 +752,7 @@ namespace App\Models{
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\FewoSeason whereName($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\FewoSeason whereOnlyWeekday($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\FewoSeason whereToDate($value)
* @property-read int|null $fewo_prices_count
*/
class FewoSeason extends \Eloquent {}
}
@ -916,6 +936,7 @@ namespace App\Models{
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\TravelCountry whereTextBefore($value)
* @property array|null $contact_lands
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\TravelCountry whereContactLands($value)
* @property-read int|null $travel_nationality_requirements_count
*/
class TravelCountry extends \Eloquent {}
}
@ -991,6 +1012,7 @@ namespace App\Models{
* @property-read \Illuminate\Database\Eloquent\Collection|\App\Models\IQContentSite[] $iq_content_sites
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\TravelGuide whereBoxImageUrl($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\TravelGuide whereCountryId($value)
* @property-read int|null $iq_content_sites_count
*/
class TravelGuide extends \Eloquent {}
}
@ -1010,6 +1032,8 @@ namespace App\Models{
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\FewoLodgingGroup query()
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\FewoLodgingGroup whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\FewoLodgingGroup whereName($value)
* @property-read int|null $fewo_lodging_group_images_count
* @property-read int|null $fewo_lodgings_count
*/
class FewoLodgingGroup extends \Eloquent {}
}
@ -1090,7 +1114,6 @@ namespace App\Models{
*
* @property int $id
* @property string $type
* @property int $wday
* @property bool $active
* @property string|null $from
* @property string|null $to
@ -1101,7 +1124,6 @@ namespace App\Models{
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\CMSInfoAvailable query()
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\CMSInfoAvailable whereActive($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\CMSInfoAvailable whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\CMSInfoAvailable whereWday($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\CMSInfoAvailable whereFrom($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\CMSInfoAvailable whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\CMSInfoAvailable whereTo($value)
@ -1110,6 +1132,8 @@ namespace App\Models{
* @mixin \Eloquent
* @property int $wday
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\CMSInfoAvailable whereWday($value)
* @property int $num
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\CMSInfoAvailable whereNum($value)
*/
class CMSInfoAvailable extends \Eloquent {}
}
@ -1195,6 +1219,7 @@ namespace App\Models{
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\TravelBookingFewoChannel whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\TravelBookingFewoChannel whereName($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\TravelBookingFewoChannel whereUpdatedAt($value)
* @property-read int|null $travel_user_booking_fewos_count
*/
class TravelBookingFewoChannel extends \Eloquent {}
}
@ -1293,6 +1318,10 @@ namespace App\Models{
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Page newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Page query()
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Page whereTravelGuideContentId($value)
* @property string|null $title_short
* @property string|null $before_title
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Page whereBeforeTitle($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Page whereTitleShort($value)
*/
class Page extends \Eloquent {}
}
@ -1405,6 +1434,7 @@ namespace App\Models{
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\TravelClass newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\TravelClass newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\TravelClass query()
* @property-read int|null $travel_program_drafts_count
*/
class TravelClass extends \Eloquent {}
}
@ -1432,6 +1462,7 @@ namespace App\Models{
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\DraftType query()
* @property int|null $pos
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\DraftType wherePos($value)
* @property-read int|null $draft_items_count
*/
class DraftType extends \Eloquent {}
}
@ -1624,6 +1655,11 @@ namespace App\Models{
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Feedback newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Feedback query()
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Feedback whereTravelGuideContentId($value)
* @property string|null $title_short
* @property string|null $before_title
* @property-read int|null $children_count
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Feedback whereBeforeTitle($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Feedback whereTitleShort($value)
*/
class Feedback extends \Eloquent {}
}
@ -1733,6 +1769,8 @@ namespace App\Models{
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\TravelProgram newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\TravelProgram newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\TravelProgram query()
* @property-read int|null $classes_count
* @property-read int|null $travel_program_drafts_count
*/
class TravelProgram extends \Eloquent {}
}
@ -1815,6 +1853,7 @@ namespace App\Models{
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\TravelUser whereTravelNationalityId($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\TravelUser whereUpdatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\TravelUser whereZipcode($value)
* @property-read int|null $travel_user_booking_fewos_count
*/
class TravelUser extends \Eloquent {}
}
@ -1899,6 +1938,7 @@ namespace App\Models{
* @property int|null $root_id
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\IQContentTree wherePageId($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\IQContentTree whereRootId($value)
* @property-read int|null $iq_content_tree_nodes_count
*/
class IQContentTree extends \Eloquent {}
}
@ -1975,6 +2015,8 @@ namespace App\Models{
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Draft newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Draft newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Draft query()
* @property-read int|null $draft_items_count
* @property-read int|null $travel_program_drafts_count
*/
class Draft extends \Eloquent {}
}
@ -2020,6 +2062,7 @@ namespace IqContent\LaravelFilemanager\Models{
* @method static \Illuminate\Database\Eloquent\Builder|\IqContent\LaravelFilemanager\Models\IQContentFile whereSlug($value)
* @method static \Illuminate\Database\Eloquent\Builder|\IqContent\LaravelFilemanager\Models\IQContentFile whereUpdatedAt($value)
* @mixin \Eloquent
* @property-read int|null $file_tags_count
*/
class IQContentFile extends \Eloquent {}
}
@ -2051,6 +2094,7 @@ namespace IqContent\LaravelFilemanager\Models{
* @method static \Illuminate\Database\Eloquent\Builder|\IqContent\LaravelFilemanager\Models\IQContentTag whereSlug($value)
* @method static \Illuminate\Database\Eloquent\Builder|\IqContent\LaravelFilemanager\Models\IQContentTag whereUpdatedAt($value)
* @mixin \Eloquent
* @property-read int|null $file_tags_count
*/
class IQContentTag extends \Eloquent {}
}
@ -2079,6 +2123,7 @@ namespace IqContent\LaravelFilemanager\Models{
* @method static \Illuminate\Database\Eloquent\Builder|\IqContent\LaravelFilemanager\Models\IQContentCategory whereSlug($value)
* @method static \Illuminate\Database\Eloquent\Builder|\IqContent\LaravelFilemanager\Models\IQContentCategory whereUpdatedAt($value)
* @mixin \Eloquent
* @property-read int|null $tags_count
*/
class IQContentCategory extends \Eloquent {}
}
@ -2117,6 +2162,8 @@ namespace IqContent\LaravelFilemanager\Models{
* @method static \Illuminate\Database\Eloquent\Builder|\IqContent\LaravelFilemanager\Models\IQContentFolder whereSlug($value)
* @method static \Illuminate\Database\Eloquent\Builder|\IqContent\LaravelFilemanager\Models\IQContentFolder whereUpdatedAt($value)
* @mixin \Eloquent
* @property-read int|null $files_count
* @property-read int|null $folders_count
*/
class IQContentFolder extends \Eloquent {}
}

View file

@ -22,7 +22,7 @@ class CMSContentController extends Controller
return response()->json(['error' => "request no found"], $this->successStatus);
}
if($request['key'] != 'f6077389c9ce710e554763a5de02c8ec'){
if($request['key'] !== 'f6077389c9ce710e554763a5de02c8ec'){
return response()->json(['error' => "key"], 401);
}

View file

@ -0,0 +1,233 @@
<?php
namespace App\Http\Controllers\API;
use App\Http\Controllers\Controller;
use App\Models\CMSInfo;
use App\Models\CMSInfoAvailable;
use App\Models\CMSInfoHoliday;
use App\Services\HTMLHelper;
class CMSContentInfoController extends Controller
{
public $successStatus = 200;
public function headerInfo()
{
$request = \Request::all();
/* if(!isset($request['url']) || !isset($request['key'])){
return response()->json(['error' => "request no found"], $this->successStatus);
}
if($request['key'] !== 'f6077389c9ce710e554763a5de02c8ec'){
return response()->json(['error' => "key"], 401);
}*/
$ret = [];
$days = HTMLHelper::getDeDays();
$locals = CMSInfoAvailable::whereType('local')->whereSpecial(false)->get();
foreach ($locals as $value){
$date = CMSInfoAvailable::getWeekWithDate($value->wday);
$ret['local'][$date['date']] = [
'day'=>$days[$value->wday],
'active' => $value->active,
'from' => $value->from,
'to' => $value->to,
];
}
$phones = CMSInfoAvailable::whereType('phone')->whereSpecial(false)->get();
foreach ($phones as $value){
$date = CMSInfoAvailable::getWeekWithDate($value->wday);
$ret['phone'][$date['date']] = [
'day'=>$days[$value->wday],
'active' => $value->active,
'from' => $value->from,
'to' => $value->to,
];
}
$specials = CMSInfoAvailable::whereSpecial(true)->get();
foreach ($specials as $special){
$ret[$special->type][$special->date] = [
'day'=>$days[$special->wday],
'active' => $special->active,
'from' => $special->from,
'to' => $special->to,
];
}
// ksort($ret);
$ret['info']['office_important_note_active'] = CMSInfo::getContentBySlug('office-important-note-active');
$ret['info']['office_important_note'] = CMSInfo::getContentBySlug('office-important-note');
$ret['info']['office_appointment'] = CMSInfo::getContentBySlug('office-appointment');
$now = \Carbon::now();
$wday = $now->dayOfWeekIso;
$ret['available']['local'] = $this->checkAvailable('local', $wday);
$ret['available']['phone'] = $this->checkAvailable('phone', $wday);
return response()->json(['success' => "content", "ret"=>$ret], $this->successStatus);
}
private function checkAvailable($type, $wday){
$contents = [];
$contents['local'] = [
1 => " keinen Eintrag",
2 => "öffnet am #day#",
3 => "schließt um #to# Uhr",
4 => "öffnet am #n-day# um #from# Uhr",
5 => "ab #from# Uhr",
];
$contents['phone'] = [
1 => " keinen Eintrag",
2 => "ab #day#",
3 => "bis #to# Uhr",
4 => "ab #n-day# um #from# Uhr",
5 => "ab #from# Uhr",
];
$now = \Carbon::now();
//holidays
if($next_date = $this->checkBetweenHoliday($type, $now)){
$content = str_replace('#day#', $next_date, $contents[$type][2]);
return ['active' => 0, 'content'=>$content];
}
$now = \Carbon::now();
$minutes = $now->hour*60 + $now->minute;
if($special = $this->checkDateforSpecial($type, $wday, $now->format("d.m.Y"))) {
if($special->active) {
$from = $special->fromMinutes();
$to = $special->toMinutes();
//open to
if($minutes >= $from && $minutes <= $to){
$content = str_replace('#to#', $special->to, $contents[$type][3]);
return ['active' => 1, 'content'=> $content];
}
//is close, but open today
if($minutes < $from && $minutes < $to) {
$content = str_replace('#from#', $special->from, $contents[$type][5]);
return ['active' => 0, 'content'=> $content];
}
}
}else{
$available = CMSInfoAvailable::getContentBySlug($type, $wday);
if(!$available){
return ['active' => 0, 'content'=> $contents[$type][1]];
}
if($available->active) {
$from = $available->fromMinutes();
$to = $available->toMinutes();
//open to
if($minutes >= $from && $minutes <= $to){
$content = str_replace('#to#', $available->to, $contents[$type][3]);
return ['active' => 1, 'content'=> $content];
}
//is close, but open today
if($minutes < $from && $minutes < $to) {
$content = str_replace('#from#', $available->from, $contents[$type][5]);
return ['active' => 0, 'content'=> $content];
}
}
}
//is next day
$next = $this->getNextActiveDay($type, $wday, $contents);
if($next){
return $next;
}
return ['active' => 0, 'content'=> $contents[$type][1]];
}
private function getNextActiveDay($type, $wday, $contents){
$days = HTMLHelper::getDeDays();
$counter = 0;
while ($counter <= 6) {
$counter++;
$wday = $wday < 7 ? $wday+1 : 1;
$w = CMSInfoAvailable::getWeekWithDate($wday);
$wDate = \Carbon::parse($w['date']);
if($next_date = $this->checkBetweenHoliday($type, $wDate)){
$content = str_replace('#day#', $next_date, $contents[$type][2]);
return ['active' => 0, 'content'=>$content];
}
if($special = $this->checkDateforSpecial($type, $wday, $wDate->format("d.m.Y"))){
if($special->active) {
$content = str_replace('#from#', $special->from, $contents[$type][4]);
$content = str_replace('#n-day#', $days[$special->wday], $content);
return ['active' => 0, 'content'=> $content];
}
}
$available = CMSInfoAvailable::getContentBySlug($type, $wday);
if(isset($available) && $available->active){
//is in holiday?
$content = str_replace('#from#', $available->from, $contents[$type][4]);
$content = str_replace('#n-day#', $days[$available->wday], $content);
return ['active' => 0, 'content'=> $content];
}
}
return false;
}
private function checkBetweenHoliday($type, \Carbon $cdate){
$holidays = CMSInfoHoliday::where($type, true)->get();
foreach ($holidays as $holiday){
//is in range?
$from = \Carbon::parse($holiday->from);
$to = \Carbon::parse($holiday->to);
if($cdate->between($from, $to)){
$to->modify('+1 day');
return $to->format("d.m.Y");
}
}
return false;
}
private function checkDateforSpecial($type, $wday, $date){
$specials = CMSInfoAvailable::whereType($type)->whereWday($wday)->whereSpecial(true)->get();
foreach ($specials as $special){
if($special->date == $date){
return $special;
}
}
}
}

View file

@ -58,7 +58,7 @@ class FewoController extends Controller
'zipcode',
'city',
'phone',
'fax',
'mobile',
'travel_nationality_id'
];

View file

@ -29,7 +29,9 @@ class CMSContentInfoController extends Controller
public function index()
{
$data = [
'days' => $this->createWeekWithDate(),
'days' => CMSInfoAvailable::getWeekWithDate(),
'specials_local' => CMSInfoAvailable::getSpecialsBy('local'),
'specials_phone' => CMSInfoAvailable::getSpecialsBy('phone'),
'cms_holidays' => CMSInfoHoliday::all(),
];
return view('cms.content.info.index', $data);
@ -52,6 +54,19 @@ class CMSContentInfoController extends Controller
}
}
//save in CMSInfoAvailable SPECIALS
if(isset($data['special_availables']) && is_array($data['special_availables'])){
foreach ($data['special_availables'] as $id=>$values){
$special_available = CMSInfoAvailable::findOrFail($id);
$cdate = \Carbon::parse($values['date']);
$values['wday'] = $cdate->dayOfWeekIso;
$special_available->fill($values)->save();
}
}
//save in CMSinfoHolidays
if(isset($data['info_holidays']) && is_array($data['info_holidays'])){
foreach ($data['info_holidays'] as $id=>$val){
@ -75,6 +90,34 @@ class CMSContentInfoController extends Controller
CMSInfoHoliday::create();
}
if($data['action'] === "add_special_available_local"){
$date = CMSInfoAvailable::getNextSpecialDateBy('local', 6);
CMSInfoAvailable::create([
'type' => 'local',
'wday' => $date->dayOfWeekIso,
'special' => true,
'active' => true,
'from' => '10:00',
'to' => '13:00',
'date' => $date->format('d.m.Y'),
]);
}
if($data['action'] === "add_special_available_phone"){
$date = CMSInfoAvailable::getNextSpecialDateBy('phone', 6);
CMSInfoAvailable::create([
'type' => 'phone',
'wday' => $date->dayOfWeekIso,
'special' => true,
'active' => true,
'from' => '10:00',
'to' => '13:00',
'date' => $date->format('d.m.Y'),
]);
}
\Session()->flash('alert-save', '1');
return redirect(route('cms_content_infos'));
}
@ -85,6 +128,7 @@ class CMSContentInfoController extends Controller
$now = \Carbon::now();
$day_of = $now->dayOfWeekIso;
//days after now
for ($i = $day_of; $i<=7; $i++){
$days[$i] = $days[$i].' <span class="text-muted">('.$now->format("d.m.Y").')</span>';
@ -92,10 +136,12 @@ class CMSContentInfoController extends Controller
}
//days before now
for ($i = 1; $i<$day_of; $i++){
$days[$i] = $days[$i].' <span class="text-muted">('.$now->format("d.m.Y").')</span>';
for ($i = 1; $i<$day_of; $i++) {
$days[$i] = $days[$i] . ' <span class="text-muted">(' . $now->format("d.m.Y") . ')</span>';
$now->modify('+1 day');
}
//add
return $days;
}
@ -106,6 +152,12 @@ class CMSContentInfoController extends Controller
$content->delete();
\Session()->flash('alert-success', __('Content gelöscht'));
}
if($model === 'special_available'){
$content = CMSInfoAvailable::findOrFail($id);
$content->delete();
\Session()->flash('alert-success', __('Content gelöscht'));
}
return redirect(route('cms_content_infos'));
}

View file

@ -86,6 +86,8 @@ use Illuminate\Database\Eloquent\Model;
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Booking newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Booking newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Booking query()
* @property-read int|null $arrangements_count
* @property-read int|null $booking_draft_items_count
*/
class Booking extends Model
{

View file

@ -160,6 +160,7 @@ class CMSInfo extends Model
'type' => $type,
]);
}
$content->type = $type;
switch ($content->type){
case 'text':
$content->text = $value;

View file

@ -2,6 +2,8 @@
namespace App\Models;
use App\Services\HTMLHelper;
use Carbon\Carbon;
use Illuminate\Database\Eloquent\Model;
/**
@ -27,6 +29,10 @@ use Illuminate\Database\Eloquent\Model;
* @mixin \Eloquent
* @property int $wday
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\CMSInfoAvailable whereWday($value)
* @property int|null $special
* @property string|null $date
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\CMSInfoAvailable whereDate($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\CMSInfoAvailable whereSpecial($value)
*/
class CMSInfoAvailable extends Model
{
@ -34,21 +40,78 @@ class CMSInfoAvailable extends Model
protected $table = 'c_m_s_info_availables';
protected $fillable = [
'type', 'wday', 'active', 'from', 'to'
'type', 'wday', 'active', 'from', 'to', 'special', 'date'
];
protected $casts = [
'active' => 'bool',
'special' => 'bool',
];
protected static $days;
public static function getContentBySlug($type, $wday){
return CMSInfoAvailable::whereType($type)->whereWday($wday)->first();
public function getDateAttribute()
{
return isset($this->attributes['date']) ? Carbon::parse($this->attributes['date'])->format('d.m.Y') : '';
}
public static function setContentBySlug($type, $wday, $values){
public function setDateAttribute($value)
{
if (!$value) {
$this->attributes['date'] = null;
} else {
$this->attributes['date'] = Carbon::parse($value)->format('Y-m-d');
}
}
$content = CMSInfoAvailable::whereType($type)->whereWday($wday)->first();
public static function getWeekWithDate($wday = false)
{
if(!self::$days){
self::createWeekWithDate();
}
if($wday){
return self::$days[$wday];
}
return self::$days;
}
public static function createWeekWithDate(){
$days = HTMLHelper::getDeDays();
$now = \Carbon::now();
$day_of = $now->dayOfWeekIso;
//days after now
for ($i = $day_of; $i<=7; $i++){
$days[$i] = [
'name'=>$days[$i],
'date'=>$now->format("d.m.Y"),
];
$now->modify('+1 day');
}
//days before now
for ($i = 1; $i<$day_of; $i++) {
$days[$i] = [
'name'=>$days[$i],
'date'=>$now->format("d.m.Y"),
];
$now->modify('+1 day');
}
//add
self::$days = $days;
}
public static function getContentBySlug($type, $wday, $special = false){
$model = CMSInfoAvailable::whereType($type)->whereWday($wday)->whereSpecial($special)->first();
if($model){
return $model;
}
return new CMSInfoAvailable();
}
public static function setContentBySlug($type, $wday, $values, $special = false){
$content = CMSInfoAvailable::whereType($type)->whereWday($wday)->whereSpecial($special)->first();
if(!$content) {
$content = CMSInfoAvailable::create([
'type' => $type,
@ -59,4 +122,46 @@ class CMSInfoAvailable extends Model
$content->save();
return $content;
}
public static function getSpecialsBy($type){
return CMSInfoAvailable::whereType($type)->whereSpecial(true)->get();
}
public static function getNextSpecialDateBy($type, $wday){
$content = CMSInfoAvailable::whereType($type)->whereWday($wday)->whereSpecial(true)->orderBy('date', 'DESC')->first();
$now = \Carbon::now();
$week = 7;
if($content){
$now = \Carbon::parse($content->date);
}
$day_of = $now->dayOfWeekIso;
$week += ($wday - $day_of);
$now->modify('+'.$week.' days');
return $now;
}
public function fromMinutes (){
if(strpos($this->from, ":")){
$from = explode(":", $this->from);
$hours = isset($from[0]) ? (int) $from[0] : 0;
$minute = isset($from[1]) ? (int) $from[1] : 0;
return $hours * 60 + $minute;
}
return 0;
}
public function toMinutes (){
if(strpos($this->to, ":")){
$to = explode(":", $this->to);
$hours = isset($to[0]) ? (int) $to[0] : 0;
$minute = isset($to[1]) ? (int) $to[1] : 0;
return $hours * 60 + $minute;
}
return 0;
}
}

View file

@ -23,6 +23,8 @@ use Illuminate\Database\Eloquent\Model;
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Draft newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Draft newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Draft query()
* @property-read int|null $draft_items_count
* @property-read int|null $travel_program_drafts_count
*/
class Draft extends Model
{

View file

@ -26,6 +26,7 @@ use Illuminate\Database\Eloquent\Model;
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\DraftType query()
* @property int|null $pos
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\DraftType wherePos($value)
* @property-read int|null $draft_items_count
*/
class DraftType extends Model
{

View file

@ -100,6 +100,11 @@ use HTMLHelper;
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Feedback newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Feedback query()
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Feedback whereTravelGuideContentId($value)
* @property string|null $title_short
* @property string|null $before_title
* @property-read int|null $children_count
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Feedback whereBeforeTitle($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Feedback whereTitleShort($value)
*/
class Feedback extends Page
{

View file

@ -58,6 +58,11 @@ use Reliese\Database\Eloquent\Model as Eloquent;
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\FewoLodging whereSingleName($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\FewoLodging whereTypeId($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\FewoLodging whereZipCode($value)
* @property-read int|null $fewo_lodging_images_count
* @property-read int|null $fewo_prices_count
* @property-read int|null $fewo_reservations_count
* @property-read int|null $pages_count
* @property-read int|null $travel_user_booking_fewos_count
*/
class FewoLodging extends Model
{

View file

@ -23,6 +23,8 @@ use Illuminate\Database\Eloquent\Model;
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\FewoLodgingGroup query()
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\FewoLodgingGroup whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\FewoLodgingGroup whereName($value)
* @property-read int|null $fewo_lodging_group_images_count
* @property-read int|null $fewo_lodgings_count
*/
class FewoLodgingGroup extends Model
{

View file

@ -22,6 +22,7 @@ use Illuminate\Database\Eloquent\Model;
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\FewoLodgingType query()
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\FewoLodgingType whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\FewoLodgingType whereName($value)
* @property-read int|null $fewo_lodgings_count
*/
class FewoLodgingType extends Model
{

View file

@ -32,6 +32,7 @@ use Illuminate\Database\Eloquent\Model;
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\FewoSeason whereName($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\FewoSeason whereOnlyWeekday($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\FewoSeason whereToDate($value)
* @property-read int|null $fewo_prices_count
*/
class FewoSeason extends Model
{

View file

@ -47,6 +47,7 @@ use Illuminate\Support\Str;
* @property int|null $root_id
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\IQContentTree wherePageId($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\IQContentTree whereRootId($value)
* @property-read int|null $iq_content_tree_nodes_count
*/
class IQContentTree extends Model
{

View file

@ -53,6 +53,8 @@ use Illuminate\Support\Str;
* @mixin \Eloquent
* @property-read \Illuminate\Database\Eloquent\Collection|\App\Models\IQContentSite[] $iq_content_site
* @property-read \Illuminate\Database\Eloquent\Collection|\App\Models\IQContentSite[] $iq_content_sites
* @property-read int|null $iq_content_sites_count
* @property-read int|null $iq_content_tree_node_childs_count
*/
class IQContentTreeNode extends Model
{

View file

@ -97,6 +97,10 @@ use Illuminate\Database\Eloquent\Model;
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Page newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Page query()
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Page whereTravelGuideContentId($value)
* @property string|null $title_short
* @property string|null $before_title
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Page whereBeforeTitle($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Page whereTitleShort($value)
*/
class Page extends Model
{

View file

@ -17,6 +17,7 @@ use Illuminate\Database\Eloquent\Model;
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Sym\ArrangementTemplate newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Sym\ArrangementTemplate newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Sym\ArrangementTemplate query()
* @property-read int|null $arrangements_count
*/
class ArrangementTemplate extends Model
{

View file

@ -26,6 +26,7 @@ use Illuminate\Database\Eloquent\Model;
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\TravelBookingFewoChannel whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\TravelBookingFewoChannel whereName($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\TravelBookingFewoChannel whereUpdatedAt($value)
* @property-read int|null $travel_user_booking_fewos_count
*/
class TravelBookingFewoChannel extends Model
{

View file

@ -28,6 +28,7 @@ use Illuminate\Database\Eloquent\Model;
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\TravelClass newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\TravelClass newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\TravelClass query()
* @property-read int|null $travel_program_drafts_count
*/
class TravelClass extends Model
{

View file

@ -57,6 +57,7 @@ use Illuminate\Support\Str;
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\TravelCountry whereTextBefore($value)
* @property array|null $contact_lands
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\TravelCountry whereContactLands($value)
* @property-read int|null $travel_nationality_requirements_count
*/
class TravelCountry extends Model
{

View file

@ -47,6 +47,7 @@ use Illuminate\Database\Eloquent\Model;
* @property-read \Illuminate\Database\Eloquent\Collection|\App\Models\IQContentSite[] $iq_content_sites
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\TravelGuide whereBoxImageUrl($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\TravelGuide whereCountryId($value)
* @property-read int|null $iq_content_sites_count
*/
class TravelGuide extends Model
{

View file

@ -97,6 +97,10 @@ use Illuminate\Database\Eloquent\Model;
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\TravelPageGuide whereTreeRoot($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\TravelPageGuide whereUpdatedAt($value)
* @mixin \Eloquent
* @property string|null $title_short
* @property string|null $before_title
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\TravelPageGuide whereBeforeTitle($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\TravelPageGuide whereTitleShort($value)
*/
class TravelPageGuide extends Model
{

View file

@ -109,6 +109,8 @@ use Illuminate\Database\Eloquent\Model;
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\TravelProgram newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\TravelProgram newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\TravelProgram query()
* @property-read int|null $classes_count
* @property-read int|null $travel_program_drafts_count
*/
class TravelProgram extends Model
{

View file

@ -66,6 +66,7 @@ use Illuminate\Database\Eloquent\Model;
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\TravelUser whereTravelNationalityId($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\TravelUser whereUpdatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\TravelUser whereZipcode($value)
* @property-read int|null $travel_user_booking_fewos_count
*/
class TravelUser extends Model
{

View file

@ -82,6 +82,9 @@ class HTMLHelper
public static function getDeDays(){
return self::$de_days;
}
public static function getDeDay($i){
return self::$de_days[$i];
}

View file

@ -72,6 +72,10 @@ use Laravel\Passport\HasApiTokens;
* @method static \Illuminate\Database\Eloquent\Builder|\App\User newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|\App\User query()
* @method static \Illuminate\Database\Eloquent\Builder|\App\User wherePermissions($value)
* @property-read int|null $clients_count
* @property-read int|null $notifications_count
* @property-read int|null $tokens_count
* @property-read int|null $user_update_email_count
*/
class User extends Authenticatable
{

View file

@ -1,4 +1,15 @@
<?php return array (
'barryvdh/laravel-debugbar' =>
array (
'providers' =>
array (
0 => 'Barryvdh\\Debugbar\\ServiceProvider',
),
'aliases' =>
array (
'Debugbar' => 'Barryvdh\\Debugbar\\Facade',
),
),
'barryvdh/laravel-dompdf' =>
array (
'providers' =>
@ -125,6 +136,13 @@
0 => 'NunoMaduro\\Collision\\Adapters\\Laravel\\CollisionServiceProvider',
),
),
'reliese/laravel' =>
array (
'providers' =>
array (
0 => 'Reliese\\Coders\\CodersServiceProvider',
),
),
'yajra/laravel-datatables-oracle' =>
array (
'providers' =>

View file

@ -23,34 +23,36 @@
19 => 'Illuminate\\Translation\\TranslationServiceProvider',
20 => 'Illuminate\\Validation\\ValidationServiceProvider',
21 => 'Illuminate\\View\\ViewServiceProvider',
22 => 'Barryvdh\\DomPDF\\ServiceProvider',
23 => 'Barryvdh\\LaravelIdeHelper\\IdeHelperServiceProvider',
24 => 'Cviebrock\\EloquentSluggable\\ServiceProvider',
25 => 'Fideloper\\Proxy\\TrustedProxyServiceProvider',
26 => 'Intervention\\Image\\ImageServiceProvider',
27 => 'IqContent\\LaravelFilemanager\\LaravelFilemanagerServiceProvider',
28 => 'Jenssegers\\Date\\DateServiceProvider',
29 => 'Laracasts\\Flash\\FlashServiceProvider',
30 => 'Laravel\\Passport\\PassportServiceProvider',
31 => 'Laravel\\Tinker\\TinkerServiceProvider',
32 => 'Collective\\Html\\HtmlServiceProvider',
33 => 'Maatwebsite\\Excel\\ExcelServiceProvider',
34 => 'Carbon\\Laravel\\ServiceProvider',
35 => 'NunoMaduro\\Collision\\Adapters\\Laravel\\CollisionServiceProvider',
36 => 'Yajra\\DataTables\\DataTablesServiceProvider',
37 => 'Laravel\\Tinker\\TinkerServiceProvider',
38 => 'Laravel\\Passport\\PassportServiceProvider',
39 => 'App\\Providers\\AppServiceProvider',
40 => 'App\\Providers\\AuthServiceProvider',
41 => 'App\\Providers\\EventServiceProvider',
42 => 'App\\Providers\\RouteServiceProvider',
43 => 'Barryvdh\\LaravelIdeHelper\\IdeHelperServiceProvider',
44 => 'Jenssegers\\Date\\DateServiceProvider',
45 => 'Collective\\Html\\HtmlServiceProvider',
46 => 'Intervention\\Image\\ImageServiceProvider',
47 => 'Maatwebsite\\Excel\\ExcelServiceProvider',
48 => 'Yajra\\DataTables\\DataTablesServiceProvider',
49 => 'Reliese\\Coders\\CodersServiceProvider',
22 => 'Barryvdh\\Debugbar\\ServiceProvider',
23 => 'Barryvdh\\DomPDF\\ServiceProvider',
24 => 'Barryvdh\\LaravelIdeHelper\\IdeHelperServiceProvider',
25 => 'Cviebrock\\EloquentSluggable\\ServiceProvider',
26 => 'Fideloper\\Proxy\\TrustedProxyServiceProvider',
27 => 'Intervention\\Image\\ImageServiceProvider',
28 => 'IqContent\\LaravelFilemanager\\LaravelFilemanagerServiceProvider',
29 => 'Jenssegers\\Date\\DateServiceProvider',
30 => 'Laracasts\\Flash\\FlashServiceProvider',
31 => 'Laravel\\Passport\\PassportServiceProvider',
32 => 'Laravel\\Tinker\\TinkerServiceProvider',
33 => 'Collective\\Html\\HtmlServiceProvider',
34 => 'Maatwebsite\\Excel\\ExcelServiceProvider',
35 => 'Carbon\\Laravel\\ServiceProvider',
36 => 'NunoMaduro\\Collision\\Adapters\\Laravel\\CollisionServiceProvider',
37 => 'Reliese\\Coders\\CodersServiceProvider',
38 => 'Yajra\\DataTables\\DataTablesServiceProvider',
39 => 'Laravel\\Tinker\\TinkerServiceProvider',
40 => 'Laravel\\Passport\\PassportServiceProvider',
41 => 'App\\Providers\\AppServiceProvider',
42 => 'App\\Providers\\AuthServiceProvider',
43 => 'App\\Providers\\EventServiceProvider',
44 => 'App\\Providers\\RouteServiceProvider',
45 => 'Barryvdh\\LaravelIdeHelper\\IdeHelperServiceProvider',
46 => 'Jenssegers\\Date\\DateServiceProvider',
47 => 'Collective\\Html\\HtmlServiceProvider',
48 => 'Intervention\\Image\\ImageServiceProvider',
49 => 'Maatwebsite\\Excel\\ExcelServiceProvider',
50 => 'Yajra\\DataTables\\DataTablesServiceProvider',
51 => 'Reliese\\Coders\\CodersServiceProvider',
),
'eager' =>
array (
@ -64,26 +66,27 @@
7 => 'Illuminate\\Pagination\\PaginationServiceProvider',
8 => 'Illuminate\\Session\\SessionServiceProvider',
9 => 'Illuminate\\View\\ViewServiceProvider',
10 => 'Barryvdh\\DomPDF\\ServiceProvider',
11 => 'Cviebrock\\EloquentSluggable\\ServiceProvider',
12 => 'Fideloper\\Proxy\\TrustedProxyServiceProvider',
13 => 'Intervention\\Image\\ImageServiceProvider',
14 => 'IqContent\\LaravelFilemanager\\LaravelFilemanagerServiceProvider',
15 => 'Jenssegers\\Date\\DateServiceProvider',
16 => 'Laracasts\\Flash\\FlashServiceProvider',
17 => 'Laravel\\Passport\\PassportServiceProvider',
18 => 'Maatwebsite\\Excel\\ExcelServiceProvider',
19 => 'Carbon\\Laravel\\ServiceProvider',
20 => 'Yajra\\DataTables\\DataTablesServiceProvider',
21 => 'Laravel\\Passport\\PassportServiceProvider',
22 => 'App\\Providers\\AppServiceProvider',
23 => 'App\\Providers\\AuthServiceProvider',
24 => 'App\\Providers\\EventServiceProvider',
25 => 'App\\Providers\\RouteServiceProvider',
26 => 'Jenssegers\\Date\\DateServiceProvider',
27 => 'Intervention\\Image\\ImageServiceProvider',
28 => 'Maatwebsite\\Excel\\ExcelServiceProvider',
29 => 'Yajra\\DataTables\\DataTablesServiceProvider',
10 => 'Barryvdh\\Debugbar\\ServiceProvider',
11 => 'Barryvdh\\DomPDF\\ServiceProvider',
12 => 'Cviebrock\\EloquentSluggable\\ServiceProvider',
13 => 'Fideloper\\Proxy\\TrustedProxyServiceProvider',
14 => 'Intervention\\Image\\ImageServiceProvider',
15 => 'IqContent\\LaravelFilemanager\\LaravelFilemanagerServiceProvider',
16 => 'Jenssegers\\Date\\DateServiceProvider',
17 => 'Laracasts\\Flash\\FlashServiceProvider',
18 => 'Laravel\\Passport\\PassportServiceProvider',
19 => 'Maatwebsite\\Excel\\ExcelServiceProvider',
20 => 'Carbon\\Laravel\\ServiceProvider',
21 => 'Yajra\\DataTables\\DataTablesServiceProvider',
22 => 'Laravel\\Passport\\PassportServiceProvider',
23 => 'App\\Providers\\AppServiceProvider',
24 => 'App\\Providers\\AuthServiceProvider',
25 => 'App\\Providers\\EventServiceProvider',
26 => 'App\\Providers\\RouteServiceProvider',
27 => 'Jenssegers\\Date\\DateServiceProvider',
28 => 'Intervention\\Image\\ImageServiceProvider',
29 => 'Maatwebsite\\Excel\\ExcelServiceProvider',
30 => 'Yajra\\DataTables\\DataTablesServiceProvider',
),
'deferred' =>
array (

View file

@ -33,6 +33,7 @@
"iqcontent/laravel-filemanager": "*"
},
"require-dev": {
"barryvdh/laravel-debugbar": "^3.2",
"barryvdh/laravel-ide-helper": "*",
"filp/whoops": "*",
"fzaninotto/faker": "*",

1778
composer.lock generated

File diff suppressed because it is too large Load diff

View file

@ -19,10 +19,12 @@ class CreateCMSInfoAvailablesTable extends Migration
$table->char('type', 5)->index();
$table->unsignedTinyInteger('wday')->index();
$table->boolean('active')->default(true);
$table->string('from', 5)->nullable();
$table->string('to', 5)->nullable();
$table->boolean('special')->default(false);
$table->date('date')->nullable();
$table->timestamps();
});
}

View file

@ -28,6 +28,7 @@ use Illuminate\Database\Eloquent\Model;
* @method static \Illuminate\Database\Eloquent\Builder|\IqContent\LaravelFilemanager\Models\IQContentCategory whereSlug($value)
* @method static \Illuminate\Database\Eloquent\Builder|\IqContent\LaravelFilemanager\Models\IQContentCategory whereUpdatedAt($value)
* @mixin \Eloquent
* @property-read int|null $tags_count
*/
class IQContentCategory extends Model
{

View file

@ -46,6 +46,7 @@ use Illuminate\Support\Str;
* @method static \Illuminate\Database\Eloquent\Builder|\IqContent\LaravelFilemanager\Models\IQContentFile whereSlug($value)
* @method static \Illuminate\Database\Eloquent\Builder|\IqContent\LaravelFilemanager\Models\IQContentFile whereUpdatedAt($value)
* @mixin \Eloquent
* @property-read int|null $file_tags_count
*/
class IQContentFile extends Model
{

View file

@ -39,6 +39,8 @@ use Illuminate\Support\Str;
* @method static \Illuminate\Database\Eloquent\Builder|\IqContent\LaravelFilemanager\Models\IQContentFolder whereSlug($value)
* @method static \Illuminate\Database\Eloquent\Builder|\IqContent\LaravelFilemanager\Models\IQContentFolder whereUpdatedAt($value)
* @mixin \Eloquent
* @property-read int|null $files_count
* @property-read int|null $folders_count
*/
class IQContentFolder extends Model
{

View file

@ -31,6 +31,7 @@ use Illuminate\Database\Eloquent\Model;
* @method static \Illuminate\Database\Eloquent\Builder|\IqContent\LaravelFilemanager\Models\IQContentTag whereSlug($value)
* @method static \Illuminate\Database\Eloquent\Builder|\IqContent\LaravelFilemanager\Models\IQContentTag whereUpdatedAt($value)
* @mixin \Eloquent
* @property-read int|null $file_tags_count
*/
class IQContentTag extends Model
{

View file

@ -243,4 +243,14 @@ li li li li li div.dd-content-link {
flex-basis: 19rem;
}
}
.switcher-on-off.switcher .switcher-input ~ .switcher-indicator {
background: #d9534f;
color: #fff;
}
.switcher-on-off.switcher .switcher-input:checked ~ .switcher-indicator {
background: #648859;
color: #fff;
}

View file

@ -27,6 +27,7 @@
</li>
</ul>
<div class="tab-content">
<div class="tab-pane fade @if($step == false) active show @endif" id="navs-site">
<div class="card-body">
@ -38,6 +39,45 @@
{{ Form::textarea('html_information', $model->html_information, ['class' => 'form-control summernote']) }}
</div>
</div>
<div class="form-row">
<div class="col-12 py-2">
<label class="switcher switcher-on-off">
{{ Form::hidden('active_frontend', 0) }}
{{ Form::checkbox('active_frontend', 1, $model->active_frontend, array('class'=>'switcher-input')) }}
<span class="switcher-indicator">
<span class="switcher-yes"></span>
<span class="switcher-no"></span>
</span>
<span class="switcher-label">Sichtbar im Frontend (Suche)</span>
</label>
</div>
<div class="col-12 py-2">
<label class="switcher switcher-on-off">
{{ Form::hidden('active_backend', 0) }}
{{ Form::checkbox('active_backend', 1, $model->active_backend, array('class'=>'switcher-input')) }}
<span class="switcher-indicator">
<span class="switcher-yes"></span>
<span class="switcher-no"></span>
</span>
<span class="switcher-label">Sichtbar im Backend CRM</span>
</label>
</div>
<div class="col-12 py-2">
<label class="switcher switcher-on-off">
{{ Form::hidden('is_customer_country', 0) }}
{{ Form::checkbox('is_customer_country', 1, $model->is_customer_country, array('class'=>'switcher-input')) }}
<span class="switcher-indicator">
<span class="switcher-yes"></span>
<span class="switcher-no"></span>
</span>
<span class="switcher-label">Sichtbar bei Kunden</span>
</label>
</div>
</div>
<button type="submit" name="action" value="" class="btn btn-submit">{{ __('save changes') }}</button>&nbsp;
</div>

View file

@ -35,11 +35,11 @@
<div class="card-body">
<h4>Lokale Öffnungszeiten</h4>
<p>Die Öffnungszeiten können eine Woche im Voraus geplant werden und wird live im Frontend angezeigt.</p>
@foreach($days as $wday => $day_name)
@foreach($days as $wday => $values)
@php($available = \App\Models\CMSInfoAvailable::getContentBySlug('local', $wday))
<div class="form-row">
{{ Form::hidden('info_availables[local]['.$wday.'][wday]', $wday) }}
<div class="col-sm-2 col-6 py-2"><strong>{!! $day_name !!}</strong></div>
<div class="col-sm-2 col-6 py-2"><strong>{{ $values['name'] }} <span class="text-muted">({{ $values['date'] }})</span></strong></div>
<div class="col-sm-3 col-6 py-2">
<label class="switcher">
{{ Form::hidden('info_availables[local]['.$wday.'][active]', 0) }}
@ -66,17 +66,61 @@
</div>
</div>
<div class="card mb-4">
<div class="card-body">
<button type="submit" name="action" value="add_special_available_local" class="btn btn-primary btn-sm float-right mb-2"><i class="ion ion-ios-add-circle"></i> Eintrag</button>
<h4>Spezielle Öffnungszeiten Lokal</h4>
<p>Überschreibt bei dem speziellen Datum Erreichbarkeit und fügt das Datum den Öffnungszeiten hinzu.</p>
@foreach($specials_local as $special_local)
<div class="form-row">
{{ Form::hidden('special_availables['.$special_local->id.'][wday]', $special_local->wday) }}
<div class="col-sm-2 col-6">
{{ Form::text('special_availables['.$special_local->id.'][date]', $special_local->date, array('placeholder'=>__('Datum'), 'class'=>'form-control datepicker-base')) }}
</div>
<div class="col-sm-2 col-6 py-2"><strong>{!! \App\Services\HTMLHelper::getDeDay($special_local->wday) !!}</strong></div>
<div class="col-sm-2 col-12 py-2">
<label class="switcher">
{{ Form::hidden('special_availables['.$special_local->id.'][active]', 0) }}
{{ Form::checkbox('special_availables['.$special_local->id.'][active]', 1, $special_local->active, array('class'=>'switcher-input')) }}
<span class="switcher-indicator">
<span class="switcher-yes"></span>
<span class="switcher-no"></span>
</span>
<span class="switcher-label"><span class="switcher-label-yes">geöffnet</span> <span class="switcher-label-no">geschlossen</span></span>
</label>
</div>
<div class="form-group col-sm-2 col-6">
<select class="selectpicker" data-style="btn-default" name="special_availables[{{$special_local->id}}][from]" data-live-search="true">
{!! \App\Services\HTMLHelper::getTimeInSteps($special_local->from) !!}
</select>
</div>
<div class="form-group col-sm-2 col-6">
<select class="selectpicker" data-style="btn-default" name="special_availables[{{$special_local->id}}][to]" data-live-search="true">
{!! \App\Services\HTMLHelper::getTimeInSteps($special_local->to) !!}
</select>
</div>
<div class="col-sm-1 col-2 p-1">
<a href="{{route('cms_content_infos_delete', ['special_available', $special_local->id])}}" class="btn btn-danger btn-sm" onclick="return confirm('Wirklich löschen?');"><i class="far fa-trash-alt"></i></a>
</div>
</div>
<hr>
@endforeach
</div>
</div>
<div class="card mb-4">
<div class="card-body">
<h4>Telefon Erreichbarkeit</h4>
<p>Die Erreichbarkeit per Telefon kann eine Woche im Voraus geplant werden und wird live im Frontend angezeigt.</p>
@foreach($days as $wday => $day_name)
@foreach($days as $wday => $values)
@php($available = \App\Models\CMSInfoAvailable::getContentBySlug('phone', $wday))
<div class="form-row">
{{ Form::hidden('info_availables[phone]['.$wday.'][active]', 0) }}
{{ Form::hidden('info_availables[phone]['.$wday.'][wday]', $wday) }}
<div class="col-sm-2 col-6 py-2"><strong>{!! $day_name !!}</strong></div>
<div class="col-sm-2 col-6 py-2"><strong>{{ $values['name'] }} <span class="text-muted">({{ $values['date'] }})</span></strong></div>
<div class="col-sm-3 col-6 py-2">
<label class="switcher">
{{ Form::hidden('info_availables[phone]['.$wday.'][active]', 0) }}
@ -103,6 +147,51 @@
</div>
</div>
<div class="card mb-4">
<div class="card-body">
<button type="submit" name="action" value="add_special_available_phone" class="btn btn-primary btn-sm float-right mb-2"><i class="ion ion-ios-add-circle"></i> Eintrag</button>
<h4>Spezielle Erreichbarkeit Telefon</h4>
<p>Überschreibt bei dem speziellen Datum Erreichbarkeit und fügt das Datum der Erreichbarkeit hinzu.</p>
@foreach($specials_phone as $special_phone)
<div class="form-row">
{{ Form::hidden('special_availables['.$special_phone->id.'][wday]', $special_phone->wday) }}
<div class="col-sm-2 col-6">
{{ Form::text('special_availables['.$special_phone->id.'][date]', $special_phone->date, array('placeholder'=>__('Datum'), 'class'=>'form-control datepicker-base')) }}
</div>
<div class="col-sm-2 col-6 py-2"><strong>{!! \App\Services\HTMLHelper::getDeDay($special_phone->wday) !!}</strong></div>
<div class="col-sm-2 col-12 py-2">
<label class="switcher">
{{ Form::hidden('special_availables['.$special_phone->id.'][active]', 0) }}
{{ Form::checkbox('special_availables['.$special_phone->id.'][active]', 1, $special_phone->active, array('class'=>'switcher-input')) }}
<span class="switcher-indicator">
<span class="switcher-yes"></span>
<span class="switcher-no"></span>
</span>
<span class="switcher-label"><span class="switcher-label-yes">geöffnet</span> <span class="switcher-label-no">geschlossen</span></span>
</label>
</div>
<div class="form-group col-sm-2 col-6">
<select class="selectpicker" data-style="btn-default" name="special_availables[{{$special_phone->id}}][from]" data-live-search="true">
{!! \App\Services\HTMLHelper::getTimeInSteps($special_phone->from) !!}
</select>
</div>
<div class="form-group col-sm-2 col-6">
<select class="selectpicker" data-style="btn-default" name="special_availables[{{$special_phone->id}}][to]" data-live-search="true">
{!! \App\Services\HTMLHelper::getTimeInSteps($special_phone->to) !!}
</select>
</div>
<div class="col-sm-1 col-2 p-1">
<a href="{{route('cms_content_infos_delete', ['special_available', $special_phone->id])}}" class="btn btn-danger btn-sm" onclick="return confirm('Wirklich löschen?');"><i class="far fa-trash-alt"></i></a>
</div>
</div>
<hr>
@endforeach
</div>
</div>
<div class="card mb-4">
<div class="card-body">
<button type="submit" name="action" value="add_holiday" class="btn btn-primary btn-sm float-right mb-2"><i class="ion ion-ios-add-circle"></i> Eintrag</button>
@ -175,9 +264,9 @@
</div>
<div class="form-row">
<div class="form-group col-sm-12">
<label class="form-label" for="office_appointment">{{ __('Termin') }}*</label>
{{ Form::text('infos[office-appointment][val]', \App\Models\CMSInfo::getContentBySlug('office-appointment'), array('placeholder'=>__('Text zur Terminvereinbarung'), 'class'=>'form-control', 'id'=>'office_appointment')) }}
{{ Form::hidden('infos[office-appointment][type]', 'text') }}
<label class="form-label" for="office_appointment">{{ __('Termin Text') }}*</label>
{{ Form::textarea('infos[office-appointment][val]', \App\Models\CMSInfo::getContentBySlug('office-appointment'), array('placeholder'=>__('Text zur Terminvereinbarung'), 'class'=>'form-control', 'id'=>'office_appointment', 'rows'=>4)) }}
{{ Form::hidden('infos[office-appointment][type]', 'full_text') }}
</div>
</div>
<div class="form-row">

View file

@ -17,6 +17,8 @@ Route::post('login', 'API\UserController@login');
Route::post('cms/search', 'API\CMSContentController@search');
Route::post('cms/keywords', 'API\CMSContentController@keywords');
Route::post('cms/header/info', 'API\CMSContentInfoController@headerInfo');
Route::get('cms/header/info', 'API\CMSContentInfoController@headerInfo');
Route::group(['middleware' => 'auth:api'], function(){

View file

@ -222,7 +222,6 @@ Route::group(['middleware' => ['admin']], function()
Route::post('/cms/content/infos', 'CMS\CMSContentInfoController@store')->name('cms_content_infos');
Route::get('/cms/content/infos/delete/{model}/{id}', 'CMS\CMSContentInfoController@delete')->name('cms_content_infos_delete');
// CMS Inhalte
Route::get('/cms/content/all', 'CMS\CMSContentController@index')->name('cms_content_all');
Route::post('/cms/content/all/store', 'CMS\CMSContentController@store')->name('cms_content_all_store');

2
storage/debugbar/.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
*
!.gitignore

65
which Normal file
View file

@ -0,0 +1,65 @@
______
/ ____/___ ____ ___ ____ ____ ________ _____
/ / / __ \/ __ `__ \/ __ \/ __ \/ ___/ _ \/ ___/
/ /___/ /_/ / / / / / / /_/ / /_/ (__ ) __/ /
\____/\____/_/ /_/ /_/ .___/\____/____/\___/_/
/_/
Composer version 1.9.0 2019-08-02 20:55:32
Usage:
command [options] [arguments]
Options:
-h, --help Display this help message
-q, --quiet Do not output any message
-V, --version Display this application version
--ansi Force ANSI output
--no-ansi Disable ANSI output
-n, --no-interaction Do not ask any interactive question
--profile Display timing and memory usage information
--no-plugins Whether to disable plugins.
-d, --working-dir=WORKING-DIR If specified, use the given directory as working directory.
--no-cache Prevent use of the cache
-v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
Available commands:
about Shows the short information about Composer.
archive Creates an archive of this composer package.
browse Opens the package's repository URL or homepage in your browser.
check-platform-reqs Check that platform requirements are satisfied.
clear-cache Clears composer's internal package cache.
clearcache Clears composer's internal package cache.
config Sets config options.
create-project Creates new project from a package into given directory.
depends Shows which packages cause the given package to be installed.
diagnose Diagnoses the system to identify common errors.
dump-autoload Dumps the autoloader.
dumpautoload Dumps the autoloader.
exec Executes a vendored binary/script.
global Allows running commands in the global composer dir ($COMPOSER_HOME).
help Displays help for a command
home Opens the package's repository URL or homepage in your browser.
i Installs the project dependencies from the composer.lock file if present, or falls back on the composer.json.
info Shows information about packages.
init Creates a basic composer.json file in current directory.
install Installs the project dependencies from the composer.lock file if present, or falls back on the composer.json.
licenses Shows information about licenses of dependencies.
list Lists commands
outdated Shows a list of installed packages that have updates available, including their latest version.
prohibits Shows which packages prevent the given package from being installed.
remove Removes a package from the require or require-dev.
require Adds required packages to your composer.json and installs them.
run Runs the scripts defined in composer.json.
run-script Runs the scripts defined in composer.json.
search Searches for packages.
self-update Updates composer.phar to the latest version.
selfupdate Updates composer.phar to the latest version.
show Shows information about packages.
status Shows a list of locally modified packages, for packages installed from source.
suggests Shows package suggestions.
u Upgrades your dependencies to the latest version according to composer.json, and updates the composer.lock file.
update Upgrades your dependencies to the latest version according to composer.json, and updates the composer.lock file.
upgrade Upgrades your dependencies to the latest version according to composer.json, and updates the composer.lock file.
validate Validates a composer.json and composer.lock.
why Shows which packages cause the given package to be installed.
why-not Shows which packages prevent the given package from being installed.