first commit

This commit is contained in:
f4ilji
2024-09-19 16:06:49 +05:00
commit b686638a39
1664 changed files with 428174 additions and 0 deletions
+49
View File
@@ -0,0 +1,49 @@
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
<title inertia>{{ config('app.name', 'Laravel') }}</title>
<!-- Fonts -->
<link rel="preconnect" href="https://fonts.bunny.net">
<link href="https://fonts.bunny.net/css?family=figtree:400,500,600&display=swap" rel="stylesheet"/>
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon.ico">
<link rel="stylesheet" href="/css/bvi.min.css">
<!-- Scripts -->
@routes
@vite(['resources/js/app.js', "resources/js/Pages/{$page['component']}.vue"])
@inertiaHead
</head>
<style>
a, button {
-webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
-webkit-tap-highlight-color: transparent !important;
}
.ce-header {
font-weight: bold;
font-size: 20px;
}
html {
scroll-behavior: smooth;
scroll-padding: 6rem;
overflow-x: hidden;
}
</style>
<body class="">
@inertia
</body>
</html>
@@ -0,0 +1,44 @@
<!DOCTYPE html>
<html>
<head>
<title>Ответ на форму</title>
</head>
<body>
<h1>Ответ на форму</h1>
@foreach ($data as $item)
@if ($item['type'] === 'text')
{!! $item['data']['content'] !!}
@elseif ($item['type'] === 'answers')
<table style="width: 100%; border-collapse: collapse;">
<thead>
<tr>
<th style="padding: 8px; background-color: #f2f2f2; border: 1px solid #ddd;">Поле</th>
<th style="padding: 8px; background-color: #f2f2f2; border: 1px solid #ddd;">Значение</th>
</tr>
</thead>
<tbody>
@foreach ($columns as $column)
<tr>
<td style="padding: 8px; border: 1px solid #ddd;">{{ $column['data']['title_field'] }}</td>
<td style="padding: 8px; border: 1px solid #ddd;">
@if ($column['type'] == 'email')
{{ $answers[$column['data']['name_field']] }}
@elseif ($column['type'] == 'multiple_choice')
@foreach ($column['data']['columns'] as $option)
@if (in_array($option['name_field'], $answers[$column['data']['name_field']]))
<span style="display: inline-block; background-color: #007bff; color: #fff; padding: 4px 8px; border-radius: 20px; margin-right: 4px;">{{ $option['title_field'] }}</span>
@endif
@endforeach
@else
{{ $answers[$column['data']['name_field']] }}
@endif
</td>
</tr>
@endforeach
</tbody>
</table> @endif
@endforeach
</body>
</html>
@@ -0,0 +1,3 @@
<x-filament-panels::page>
</x-filament-panels::page>
@@ -0,0 +1,61 @@
<x-filament-panels::page>
@if ($this->hasInfolist())
{{ $this->infolist }}
@else
<div class="flex flex-col">
<div class="-m-1.5 overflow-x-auto">
<div class="p-1.5 min-w-full inline-block align-middle">
<div class="border rounded-lg shadow overflow-hidden">
<table class="min-w-full divide-y divide-gray-200">
<thead>
<tr class="divide-x divide-gray-200">
<th scope="col" class="px-6 py-3 text-start text-xs font-medium text-gray-500 uppercase">Name</th>
<th scope="col" class="px-6 py-3 text-start text-xs font-medium text-gray-500 uppercase">Age</th>
<th scope="col" class="px-6 py-3 text-start text-xs font-medium text-gray-500 uppercase">Address</th>
<th scope="col" class="px-6 py-3 text-end text-xs font-medium text-gray-500 uppercase">Action</th>
</tr>
</thead>
<tbody class="divide-y divide-gray-200">
<tr>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-800">John Brown</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-800">45</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-800">New York No. 1 Lake Park</td>
<td class="px-6 py-4 whitespace-nowrap text-end text-sm font-medium">
<button type="button" class="inline-flex items-center gap-x-2 text-sm font-semibold rounded-lg border border-transparent text-blue-600 hover:text-blue-800 focus:outline-none focus:text-blue-800 disabled:opacity-50 disabled:pointer-events-none">Delete</button>
</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-800">Jim Green</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-800">27</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-800">London No. 1 Lake Park</td>
<td class="px-6 py-4 whitespace-nowrap text-end text-sm font-medium">
<button type="button" class="inline-flex items-center gap-x-2 text-sm font-semibold rounded-lg border border-transparent text-blue-600 hover:text-blue-800 focus:outline-none focus:text-blue-800 disabled:opacity-50 disabled:pointer-events-none">Delete</button>
</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-800">Joe Black</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-800">31</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-800">Sidney No. 1 Lake Park</td>
<td class="px-6 py-4 whitespace-nowrap text-end text-sm font-medium">
<button type="button" class="inline-flex items-center gap-x-2 text-sm font-semibold rounded-lg border border-transparent text-blue-600 hover:text-blue-800 focus:outline-none focus:text-blue-800 disabled:opacity-50 disabled:pointer-events-none">Delete</button>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
@endif
{{-- @if (count($relationManagers = $this->getRelationManagers()))--}}
{{-- <x-filament-panels::resources.relation-managers--}}
{{-- :active-manager="$this->activeRelationManager"--}}
{{-- :managers="$relationManagers"--}}
{{-- :owner-record="$record"--}}
{{-- :page-class="static::class"--}}
{{-- />--}}
{{-- @endif--}}
</x-filament-panels::page>
@@ -0,0 +1,5 @@
@foreach($getState() as $variable => $value)
<p>
test
</p>
@endforeach
@@ -0,0 +1,2 @@
<img src="{{ asset('storage/logos/logo.svg') }}" alt="Logo" class="h-10">
@@ -0,0 +1,80 @@
@php
$statePath = $getStatePath();
@endphp
<x-dynamic-component :component="$getFieldWrapperView()" :field="$field" class="relative z-0">
@php
$textareaID = 'tiny-editor-' . str_replace(['.', '#', '$'], '-', $getId()) . '-' . rand();
@endphp
<div wire:ignore x-ignore ax-load
ax-load-src="{{ \Filament\Support\Facades\FilamentAsset::getAlpineComponentSrc('tinyeditor', 'amidesfahani/filament-tinyeditor') }}"
x-load-css="[@js(\Filament\Support\Facades\FilamentAsset::getStyleHref('tiny-css', package: 'amidesfahani/filament-tinyeditor'))]" x-load-js="[@js(\Filament\Support\Facades\FilamentAsset::getScriptSrc($getLanguageId(), package: 'amidesfahani/filament-tinyeditor'))]" x-data="tinyeditor({
state: $wire.{{ $applyStateBindingModifiers("entangle('{$statePath}')", isOptimisticallyLive: false) }},
statePath: '{{ $statePath }}',
selector: '#{{ $textareaID }}',
plugins: '{{ $getPlugins() }}',
external_plugins: {{ $getExternalPlugins() }},
toolbar: '{{ $getToolbar() }}',
language: '{{ $getInterfaceLanguage() }}',
language_url: '{{ $getLanguageURL($getInterfaceLanguage()) }}',
directionality: '{{ $getDirection() }}',
max_height: {{ $getMaxHeight() }},
min_height: {{ $getMinHeight() }},
@if (!filament()->hasDarkModeForced() && $darkMode() == 'media') skin: (window.matchMedia('(prefers-color-scheme: dark)').matches ? 'oxide-dark' : 'oxide'),
content_css: (window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'default'),
@elseif(!filament()->hasDarkModeForced() && $darkMode() == 'class')
skin: (document.querySelector('html').getAttribute('class').includes('dark') ? 'oxide-dark' : 'oxide'),
content_css: (document.querySelector('html').getAttribute('class').includes('dark') ? 'dark' : 'default'),
@elseif(filament()->hasDarkModeForced() || $darkMode() == 'force')
skin: 'oxide-dark',
content_css: 'dark',
@elseif(!filament()->hasDarkModeForced() && $darkMode() == false)
skin: 'oxide',
content_css: 'default',
@elseif(!filament()->hasDarkModeForced() && $darkMode() == 'custom')
skin: '{{ $skinsUI() }}',
content_css: '{{ $skinsContent() }}',
@else
skin: ((localStorage.getItem('theme') ?? 'system') == 'dark' || (theme === 'system' && window.matchMedia('(prefers-color-scheme: dark)').matches)) ? 'oxide-dark' : 'oxide',
content_css: ((localStorage.getItem('theme') ?? 'system') == 'dark' || (theme === 'system' && window.matchMedia('(prefers-color-scheme: dark)').matches)) ? 'dark' : 'default', @endif
toolbar_sticky: {{ $getToolbarSticky() ? 'true' : 'false' }},
templates: '{{ $getTemplates() }}',
menubar: {{ $getShowMenuBar() ? 'true' : 'false' }},
relative_urls: {{ $getRelativeUrls() ? 'true' : 'false' }},
remove_script_host: {{ $getRemoveScriptHost() ? 'true' : 'false' }},
convert_urls: {{ $getConvertUrls() ? 'true' : 'false' }},
font_size_formats: '{{ $getFontSizes() }}',
fontfamily: '{{ $getFontFamilies() }}',
setup: null,
disabled: @js($isDisabled),
locale: '{{ app()->getLocale() }}',
placeholder: @js($getPlaceholder()),
image_list: {!! $getImageList() !!},
image_advtab: @js($imageAdvtab()),
image_description: @js($imageDescription()),
image_class_list: {!! $getImageClassList() !!},
license_key: '{{ $getLicenseKey() }}',
custom_configs: {{ $getCustomConfigs() }},
})">
@unless ($isDisabled())
<input id="{{ $textareaID }}" type="hidden" x-ref="tinymce" placeholder="{{ $getPlaceholder() }}">
@else
<div x-html="state" @style(['max-height: ' . $getPreviewMaxHeight() . 'px' => $getPreviewMaxHeight() > 0, 'min-height: ' . $getPreviewMinHeight() . 'px' => $getPreviewMinHeight() > 0])
class="block w-full p-3 overflow-y-auto prose transition duration-75 bg-white border border-gray-300 rounded-lg shadow-sm max-w-none opacity-70 dark:prose-invert dark:border-gray-600 dark:bg-gray-700 dark:text-white">
</div>
@endunless
</div>
</x-dynamic-component>
@pushOnce('scripts')
<script>
// window.addEventListener('beforeunload', (event) => {
// if (tinymce.activeEditor.isDirty()) {
// event.preventDefault();
// // Included for legacy support, e.g. Chrome/Edge < 119
// event.returnValue = '{{ __('Are you sure you want to leave?') }}';
// }
// });
</script>
@endPushOnce
File diff suppressed because one or more lines are too long