Plan7 to main menu added
This commit is contained in:
parent
ff4d01e6a4
commit
60555549ad
@ -7,7 +7,10 @@
|
||||
<tr scope="col">
|
||||
<th>Компания</th>
|
||||
@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
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
@ -93,6 +93,31 @@
|
||||
|
||||
</main>
|
||||
</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>
|
||||
|
||||
</html>
|
||||
|
||||
@ -2,6 +2,7 @@
|
||||
$items = [];
|
||||
if (in_array($roles::AGENT, $userRoles) || in_array($roles::COMPANY_ADMIN, $userRoles)) {
|
||||
$items[] = [
|
||||
'target' => 'route',
|
||||
'route' => 'home',
|
||||
'name' => 'Главная',
|
||||
'icon' => 'columns-gap',
|
||||
@ -9,20 +10,23 @@
|
||||
}
|
||||
if (in_array($roles::AGENT, $userRoles) || in_array($roles::COMPANY_ADMIN, $userRoles)) {
|
||||
$items[] = [
|
||||
'target' => 'route',
|
||||
'route' => 'clients.table',
|
||||
'name' => 'Клиенты',
|
||||
'icon' => 'person',
|
||||
];
|
||||
}
|
||||
if (in_array($roles::AGENT, $userRoles) || in_array($roles::COMPANY_ADMIN, $userRoles)) {
|
||||
/*$items[] = [
|
||||
'route' => 'projects',
|
||||
$items[] = [
|
||||
'target' => 'modal',
|
||||
'modal' => '#plan7Modal',
|
||||
'name' => 'Проекты',
|
||||
'icon' => 'book',
|
||||
];*/
|
||||
];
|
||||
}
|
||||
|
||||
$items[] = [
|
||||
'target' => 'route',
|
||||
'route' => 'posts',
|
||||
'name' => 'Новости',
|
||||
'icon' => 'layers',
|
||||
@ -30,6 +34,7 @@
|
||||
|
||||
if (in_array($roles::COMPANY_ADMIN, $userRoles)) {
|
||||
$items[] = [
|
||||
'target' => 'route',
|
||||
'route' => 'company.agents.table',
|
||||
'name' => 'Агенты',
|
||||
'icon' => 'people',
|
||||
@ -37,6 +42,7 @@
|
||||
}
|
||||
|
||||
$items[] = [
|
||||
'target' => 'route',
|
||||
'route' => 'docs.index',
|
||||
'name' => 'Документы',
|
||||
'icon' => 'archive',
|
||||
@ -44,6 +50,7 @@
|
||||
|
||||
if (in_array($roles::COMPANY_ADMIN, $userRoles)) {
|
||||
$items[] = [
|
||||
'target' => 'route',
|
||||
'route' => 'company.details',
|
||||
'name' => 'Настройки',
|
||||
'icon' => 'gear',
|
||||
@ -52,6 +59,7 @@
|
||||
|
||||
if (in_array($roles::SUPER_ADMIN, $userRoles)) {
|
||||
$items[] = [
|
||||
'target' => 'route',
|
||||
'route' => 'admin.index',
|
||||
'name' => 'Админка',
|
||||
'icon' => 'arrow-right-square',
|
||||
@ -63,13 +71,22 @@
|
||||
<ul class="nav flex flex-md-column ">
|
||||
@foreach ($items as $item)
|
||||
<li class="nav-item text-center m-2">
|
||||
<a href="{{ route($item['route']) }}"
|
||||
class="nav-link d-flex align-items-center gap-2 fs-5 border rounded-4
|
||||
@if ($item['target'] == 'route')
|
||||
<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"
|
||||
aria-current="page">
|
||||
<i class="bi bi-{{ $item['icon'] }}"></i> <span
|
||||
class="d-none d-lg-inline text-truncate">{{ $item['name'] }}</span>
|
||||
</a>
|
||||
aria-current="page">
|
||||
<i class="bi bi-{{ $item['icon'] }}"></i> <span
|
||||
class="d-none d-lg-inline text-truncate">{{ $item['name'] }}</span>
|
||||
</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>
|
||||
@endforeach
|
||||
</ul>
|
||||
|
||||
@ -22,39 +22,6 @@ class="list-group-item list-group-item-action p-3 bg-white rounded border border
|
||||
</div>
|
||||
</a>
|
||||
</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="d-flex">
|
||||
<div class="fs-5 fw-bold">Клиенты</div>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user