Plan7 to main menu added
This commit is contained in:
parent
ff4d01e6a4
commit
60555549ad
@ -7,7 +7,10 @@
|
|||||||
<tr scope="col">
|
<tr scope="col">
|
||||||
<th>Компания</th>
|
<th>Компания</th>
|
||||||
@foreach ($complexes as $complex)
|
@foreach ($complexes as $complex)
|
||||||
<th>{{ $complex->name }}</th>
|
<th>{{ $complex->name }}
|
||||||
|
<div><a href="#" class="" style="text-decoration-style: dotted;">0 %</a>
|
||||||
|
</div>
|
||||||
|
</th>
|
||||||
@endforeach
|
@endforeach
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
|||||||
@ -93,6 +93,31 @@
|
|||||||
|
|
||||||
</main>
|
</main>
|
||||||
</div>
|
</div>
|
||||||
|
<!-- Plan 7 Modal -->
|
||||||
|
<div class="modal fade" id="plan7Modal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
|
||||||
|
<div class="modal-dialog modal-fullscreen">
|
||||||
|
<div class="modal-content">
|
||||||
|
<div class="modal-header">
|
||||||
|
<h1 class="modal-title fs-5" id="exampleModalLabel">
|
||||||
|
<button class="btn btn-light" data-bs-dismiss="modal">
|
||||||
|
<i class="bi bi-chevron-left"></i>
|
||||||
|
</button>
|
||||||
|
Подбор квартиры
|
||||||
|
</h1>
|
||||||
|
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
|
||||||
|
</div>
|
||||||
|
<div class="modal-body">
|
||||||
|
<div id="catalogFrame" style="position:relative; width:100%; height:100%;"><iframe
|
||||||
|
src="https://plan7.ru/catalog/exp/?module=40"
|
||||||
|
style="position:absolute; left:0px; top:0px; width:100%; height:100%; border:none;"></iframe>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="modal-footer">
|
||||||
|
<button type="button" class="btn btn-primary" data-bs-dismiss="modal">Закрыть</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@ -2,6 +2,7 @@
|
|||||||
$items = [];
|
$items = [];
|
||||||
if (in_array($roles::AGENT, $userRoles) || in_array($roles::COMPANY_ADMIN, $userRoles)) {
|
if (in_array($roles::AGENT, $userRoles) || in_array($roles::COMPANY_ADMIN, $userRoles)) {
|
||||||
$items[] = [
|
$items[] = [
|
||||||
|
'target' => 'route',
|
||||||
'route' => 'home',
|
'route' => 'home',
|
||||||
'name' => 'Главная',
|
'name' => 'Главная',
|
||||||
'icon' => 'columns-gap',
|
'icon' => 'columns-gap',
|
||||||
@ -9,20 +10,23 @@
|
|||||||
}
|
}
|
||||||
if (in_array($roles::AGENT, $userRoles) || in_array($roles::COMPANY_ADMIN, $userRoles)) {
|
if (in_array($roles::AGENT, $userRoles) || in_array($roles::COMPANY_ADMIN, $userRoles)) {
|
||||||
$items[] = [
|
$items[] = [
|
||||||
|
'target' => 'route',
|
||||||
'route' => 'clients.table',
|
'route' => 'clients.table',
|
||||||
'name' => 'Клиенты',
|
'name' => 'Клиенты',
|
||||||
'icon' => 'person',
|
'icon' => 'person',
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
if (in_array($roles::AGENT, $userRoles) || in_array($roles::COMPANY_ADMIN, $userRoles)) {
|
if (in_array($roles::AGENT, $userRoles) || in_array($roles::COMPANY_ADMIN, $userRoles)) {
|
||||||
/*$items[] = [
|
$items[] = [
|
||||||
'route' => 'projects',
|
'target' => 'modal',
|
||||||
|
'modal' => '#plan7Modal',
|
||||||
'name' => 'Проекты',
|
'name' => 'Проекты',
|
||||||
'icon' => 'book',
|
'icon' => 'book',
|
||||||
];*/
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
$items[] = [
|
$items[] = [
|
||||||
|
'target' => 'route',
|
||||||
'route' => 'posts',
|
'route' => 'posts',
|
||||||
'name' => 'Новости',
|
'name' => 'Новости',
|
||||||
'icon' => 'layers',
|
'icon' => 'layers',
|
||||||
@ -30,6 +34,7 @@
|
|||||||
|
|
||||||
if (in_array($roles::COMPANY_ADMIN, $userRoles)) {
|
if (in_array($roles::COMPANY_ADMIN, $userRoles)) {
|
||||||
$items[] = [
|
$items[] = [
|
||||||
|
'target' => 'route',
|
||||||
'route' => 'company.agents.table',
|
'route' => 'company.agents.table',
|
||||||
'name' => 'Агенты',
|
'name' => 'Агенты',
|
||||||
'icon' => 'people',
|
'icon' => 'people',
|
||||||
@ -37,6 +42,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
$items[] = [
|
$items[] = [
|
||||||
|
'target' => 'route',
|
||||||
'route' => 'docs.index',
|
'route' => 'docs.index',
|
||||||
'name' => 'Документы',
|
'name' => 'Документы',
|
||||||
'icon' => 'archive',
|
'icon' => 'archive',
|
||||||
@ -44,6 +50,7 @@
|
|||||||
|
|
||||||
if (in_array($roles::COMPANY_ADMIN, $userRoles)) {
|
if (in_array($roles::COMPANY_ADMIN, $userRoles)) {
|
||||||
$items[] = [
|
$items[] = [
|
||||||
|
'target' => 'route',
|
||||||
'route' => 'company.details',
|
'route' => 'company.details',
|
||||||
'name' => 'Настройки',
|
'name' => 'Настройки',
|
||||||
'icon' => 'gear',
|
'icon' => 'gear',
|
||||||
@ -52,6 +59,7 @@
|
|||||||
|
|
||||||
if (in_array($roles::SUPER_ADMIN, $userRoles)) {
|
if (in_array($roles::SUPER_ADMIN, $userRoles)) {
|
||||||
$items[] = [
|
$items[] = [
|
||||||
|
'target' => 'route',
|
||||||
'route' => 'admin.index',
|
'route' => 'admin.index',
|
||||||
'name' => 'Админка',
|
'name' => 'Админка',
|
||||||
'icon' => 'arrow-right-square',
|
'icon' => 'arrow-right-square',
|
||||||
@ -63,13 +71,22 @@
|
|||||||
<ul class="nav flex flex-md-column ">
|
<ul class="nav flex flex-md-column ">
|
||||||
@foreach ($items as $item)
|
@foreach ($items as $item)
|
||||||
<li class="nav-item text-center m-2">
|
<li class="nav-item text-center m-2">
|
||||||
<a href="{{ route($item['route']) }}"
|
@if ($item['target'] == 'route')
|
||||||
class="nav-link d-flex align-items-center gap-2 fs-5 border rounded-4
|
<a href="{{ route($item['route']) }}"
|
||||||
|
class="nav-link d-flex align-items-center gap-2 fs-5 border rounded-4
|
||||||
@if (Route::currentRouteName() == $item['route']) active @endif"
|
@if (Route::currentRouteName() == $item['route']) active @endif"
|
||||||
aria-current="page">
|
aria-current="page">
|
||||||
<i class="bi bi-{{ $item['icon'] }}"></i> <span
|
<i class="bi bi-{{ $item['icon'] }}"></i> <span
|
||||||
class="d-none d-lg-inline text-truncate">{{ $item['name'] }}</span>
|
class="d-none d-lg-inline text-truncate">{{ $item['name'] }}</span>
|
||||||
</a>
|
</a>
|
||||||
|
@endif
|
||||||
|
@if ($item['target'] == 'modal')
|
||||||
|
<a href="#" data-bs-toggle="modal" data-bs-target="{{ $item['modal'] }}"
|
||||||
|
class="nav-link d-flex align-items-center gap-2 fs-5 border rounded-4" aria-current="page">
|
||||||
|
<i class="bi bi-{{ $item['icon'] }}"></i> <span
|
||||||
|
class="d-none d-lg-inline text-truncate">{{ $item['name'] }}</span>
|
||||||
|
</a>
|
||||||
|
@endif
|
||||||
</li>
|
</li>
|
||||||
@endforeach
|
@endforeach
|
||||||
</ul>
|
</ul>
|
||||||
|
|||||||
@ -22,39 +22,6 @@ class="list-group-item list-group-item-action p-3 bg-white rounded border border
|
|||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- Modal -->
|
|
||||||
<div class="modal fade" id="plan7Modal" tabindex="-1" aria-labelledby="exampleModalLabel"
|
|
||||||
aria-hidden="true">
|
|
||||||
<div class="modal-dialog modal-fullscreen">
|
|
||||||
<div class="modal-content">
|
|
||||||
<div class="modal-header">
|
|
||||||
<h1 class="modal-title fs-5" id="exampleModalLabel">
|
|
||||||
<button class="btn btn-light" data-bs-dismiss="modal">
|
|
||||||
<i class="bi bi-chevron-left"></i>
|
|
||||||
</button>
|
|
||||||
Подбор квартиры
|
|
||||||
</h1>
|
|
||||||
<button type="button" class="btn-close" data-bs-dismiss="modal"
|
|
||||||
aria-label="Close"></button>
|
|
||||||
</div>
|
|
||||||
<div class="modal-body">
|
|
||||||
<div id="catalogFrame" style="position:relative; width:100%; height:100%;"><iframe
|
|
||||||
src="https://plan7.ru/catalog/exp/?module=40"
|
|
||||||
style="position:absolute; left:0px; top:0px; width:100%; height:100%; border:none;"></iframe>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="modal-footer">
|
|
||||||
<button type="button" class="btn btn-primary" data-bs-dismiss="modal">Закрыть</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="mt-3">
|
<div class="mt-3">
|
||||||
<div class="d-flex">
|
<div class="d-flex">
|
||||||
<div class="fs-5 fw-bold">Клиенты</div>
|
<div class="fs-5 fw-bold">Клиенты</div>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user