pratiksh404 /
adminetic-website
| 1 | <?php |
||
| 2 | |||
| 3 | namespace Adminetic\Website\Adapter; |
||
| 4 | |||
| 5 | use Pratiksh\Adminetic\Contracts\PluginInterface; |
||
|
0 ignored issues
–
show
|
|||
| 6 | use Pratiksh\Adminetic\Traits\SidebarHelper; |
||
|
0 ignored issues
–
show
The type
Pratiksh\Adminetic\Traits\SidebarHelper was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths Loading history...
|
|||
| 7 | |||
| 8 | class WebsiteAdapter implements PluginInterface |
||
| 9 | { |
||
| 10 | use SidebarHelper; |
||
| 11 | |||
| 12 | public function assets(): array |
||
| 13 | { |
||
| 14 | return [ |
||
| 15 | [ |
||
| 16 | 'name' => 'Charts', |
||
| 17 | 'active' => true, |
||
| 18 | 'files' => [ |
||
| 19 | [ |
||
| 20 | 'type' => 'js', |
||
| 21 | 'active' => true, |
||
| 22 | 'location' => 'adminetic/assets/js/chart/apex-chart/apex-chart.js', |
||
| 23 | ], |
||
| 24 | ], |
||
| 25 | ], |
||
| 26 | [ |
||
| 27 | 'name' => 'IconPicker', |
||
| 28 | 'active' => true, |
||
| 29 | 'files' => [ |
||
| 30 | [ |
||
| 31 | 'type' => 'css', |
||
| 32 | 'active' => true, |
||
| 33 | 'location' => 'adminetic/assets/js/icon-picker/iconpicker-1.5.0.css', |
||
| 34 | ], |
||
| 35 | [ |
||
| 36 | 'type' => 'js', |
||
| 37 | 'active' => true, |
||
| 38 | 'location' => 'adminetic/assets/js/icon-picker/iconpicker-1.5.0.js', |
||
| 39 | ], |
||
| 40 | ], |
||
| 41 | ], |
||
| 42 | [ |
||
| 43 | 'name' => 'Media Library', |
||
| 44 | 'active' => true, |
||
| 45 | 'files' => [ |
||
| 46 | [ |
||
| 47 | 'type' => 'css', |
||
| 48 | 'active' => true, |
||
| 49 | 'location' => 'plugins/website/medialibrarypro/styles.css', |
||
| 50 | ], |
||
| 51 | ], |
||
| 52 | ], |
||
| 53 | [ |
||
| 54 | 'name' => 'Photo Swipe', |
||
| 55 | 'active' => false, |
||
| 56 | 'files' => [ |
||
| 57 | [ |
||
| 58 | 'type' => 'css', |
||
| 59 | 'active' => true, |
||
| 60 | 'location' => 'adminetic/assets/css/vendors/photoswipe.css', |
||
| 61 | ], |
||
| 62 | [ |
||
| 63 | 'type' => 'js', |
||
| 64 | 'active' => true, |
||
| 65 | 'location' => 'adminetic/assets/js/photoswipe/photoswipe.min.js', |
||
| 66 | ], |
||
| 67 | [ |
||
| 68 | 'type' => 'js', |
||
| 69 | 'active' => true, |
||
| 70 | 'location' => 'adminetic/assets/js/photoswipe/photoswipe-ui-default.min.js', |
||
| 71 | ], |
||
| 72 | [ |
||
| 73 | 'type' => 'js', |
||
| 74 | 'active' => true, |
||
| 75 | 'location' => 'adminetic/assets/js/photoswipe/photoswipe.js', |
||
| 76 | ], |
||
| 77 | ], |
||
| 78 | ], |
||
| 79 | ]; |
||
| 80 | } |
||
| 81 | |||
| 82 | public function myMenu(): array |
||
| 83 | { |
||
| 84 | return [ |
||
| 85 | [ |
||
| 86 | 'type' => 'breaker', |
||
| 87 | 'name' => 'Website', |
||
| 88 | 'description' => 'CMS', |
||
| 89 | ], [ |
||
| 90 | 'type' => 'menu', |
||
| 91 | 'name' => 'About', |
||
| 92 | 'icon' => 'fab fa-bandcamp', |
||
| 93 | 'is_active' => request()->routeIs('about*') ? 'active' : '', |
||
| 94 | 'conditions' => [ |
||
| 95 | [ |
||
| 96 | 'type' => 'or', |
||
| 97 | 'condition' => auth()->user()->can('view-any', \Adminetic\Website\Models\Admin\About::class), |
||
| 98 | ], |
||
| 99 | [ |
||
| 100 | 'type' => 'or', |
||
| 101 | 'condition' => auth()->user()->can('create', \Adminetic\Website\Models\Admin\About::class), |
||
| 102 | ], |
||
| 103 | ], |
||
| 104 | 'children' => $this->indexCreateChildren('about', \Adminetic\Website\Models\Admin\About::class), |
||
| 105 | |||
| 106 | ], [ |
||
| 107 | 'type' => 'menu', |
||
| 108 | 'name' => 'History', |
||
| 109 | 'icon' => 'fa fa-history', |
||
| 110 | 'is_active' => request()->routeIs('history*') ? 'active' : '', |
||
| 111 | 'conditions' => [ |
||
| 112 | [ |
||
| 113 | 'type' => 'or', |
||
| 114 | 'condition' => auth()->user()->can('view-any', \Adminetic\Website\Models\Admin\History::class), |
||
| 115 | ], |
||
| 116 | [ |
||
| 117 | 'type' => 'or', |
||
| 118 | 'condition' => auth()->user()->can('create', \Adminetic\Website\Models\Admin\History::class), |
||
| 119 | ], |
||
| 120 | ], |
||
| 121 | 'children' => $this->indexCreateChildren('history', \Adminetic\Website\Models\Admin\History::class), |
||
| 122 | |||
| 123 | ], |
||
| 124 | [ |
||
| 125 | 'type' => 'menu', |
||
| 126 | 'name' => 'Slider', |
||
| 127 | 'icon' => 'fa fa-sliders-h', |
||
| 128 | 'is_active' => request()->routeIs('slider*') ? 'active' : '', |
||
| 129 | 'conditions' => [ |
||
| 130 | [ |
||
| 131 | 'type' => 'or', |
||
| 132 | 'condition' => auth()->user()->can('view-any', \Adminetic\Website\Models\Admin\Slider::class), |
||
| 133 | ], |
||
| 134 | [ |
||
| 135 | 'type' => 'or', |
||
| 136 | 'condition' => auth()->user()->can('create', \Adminetic\Website\Models\Admin\Slider::class), |
||
| 137 | ], |
||
| 138 | ], |
||
| 139 | 'children' => $this->indexCreateChildren('slider', \Adminetic\Website\Models\Admin\Slider::class), |
||
| 140 | |||
| 141 | ], |
||
| 142 | [ |
||
| 143 | 'type' => 'menu', |
||
| 144 | 'name' => 'Project', |
||
| 145 | 'icon' => 'fa fa-spa', |
||
| 146 | 'is_active' => request()->routeIs('project*') ? 'active' : '', |
||
| 147 | 'conditions' => [ |
||
| 148 | [ |
||
| 149 | 'type' => 'or', |
||
| 150 | 'condition' => auth()->user()->can('view-any', \Adminetic\Website\Models\Admin\Project::class), |
||
| 151 | ], |
||
| 152 | [ |
||
| 153 | 'type' => 'or', |
||
| 154 | 'condition' => auth()->user()->can('create', \Adminetic\Website\Models\Admin\Project::class), |
||
| 155 | ], |
||
| 156 | ], |
||
| 157 | 'children' => $this->indexCreateChildren('project', \Adminetic\Website\Models\Admin\Project::class), |
||
| 158 | |||
| 159 | ], [ |
||
| 160 | 'type' => 'menu', |
||
| 161 | 'name' => 'Package', |
||
| 162 | 'icon' => 'fa fa-gift', |
||
| 163 | 'is_active' => request()->routeIs('package*') ? 'active' : '', |
||
| 164 | 'conditions' => [ |
||
| 165 | [ |
||
| 166 | 'type' => 'or', |
||
| 167 | 'condition' => auth()->user()->can('view-any', \Adminetic\Website\Models\Admin\Package::class), |
||
| 168 | ], |
||
| 169 | [ |
||
| 170 | 'type' => 'or', |
||
| 171 | 'condition' => auth()->user()->can('create', \Adminetic\Website\Models\Admin\Package::class), |
||
| 172 | ], |
||
| 173 | ], |
||
| 174 | 'children' => $this->indexCreateChildren('package', \Adminetic\Website\Models\Admin\Package::class), |
||
| 175 | |||
| 176 | ], [ |
||
| 177 | 'type' => 'menu', |
||
| 178 | 'name' => 'Team', |
||
| 179 | 'icon' => 'fa fa-users', |
||
| 180 | 'is_active' => request()->routeIs('team*') ? 'active' : '', |
||
| 181 | 'conditions' => [ |
||
| 182 | [ |
||
| 183 | 'type' => 'or', |
||
| 184 | 'condition' => auth()->user()->can('view-any', \Adminetic\Website\Models\Admin\Team::class), |
||
| 185 | ], |
||
| 186 | [ |
||
| 187 | 'type' => 'or', |
||
| 188 | 'condition' => auth()->user()->can('create', \Adminetic\Website\Models\Admin\Team::class), |
||
| 189 | ], |
||
| 190 | ], |
||
| 191 | 'children' => $this->indexCreateChildren('team', \Adminetic\Website\Models\Admin\Team::class), |
||
| 192 | |||
| 193 | ], [ |
||
| 194 | 'type' => 'menu', |
||
| 195 | 'name' => 'Testimonial', |
||
| 196 | 'icon' => 'fa fa-user-check', |
||
| 197 | 'is_active' => request()->routeIs('testimonial*') ? 'active' : '', |
||
| 198 | 'conditions' => [ |
||
| 199 | [ |
||
| 200 | 'type' => 'or', |
||
| 201 | 'condition' => auth()->user()->can('view-any', \Adminetic\Website\Models\Admin\Testimonial::class), |
||
| 202 | ], |
||
| 203 | [ |
||
| 204 | 'type' => 'or', |
||
| 205 | 'condition' => auth()->user()->can('create', \Adminetic\Website\Models\Admin\Testimonial::class), |
||
| 206 | ], |
||
| 207 | ], |
||
| 208 | 'children' => $this->indexCreateChildren('testimonial', \Adminetic\Website\Models\Admin\Testimonial::class), |
||
| 209 | |||
| 210 | ], [ |
||
| 211 | 'type' => 'menu', |
||
| 212 | 'name' => 'Page', |
||
| 213 | 'icon' => 'far fa-file', |
||
| 214 | 'is_active' => request()->routeIs('page*') ? 'active' : '', |
||
| 215 | 'conditions' => [ |
||
| 216 | [ |
||
| 217 | 'type' => 'or', |
||
| 218 | 'condition' => auth()->user()->can('view-any', \Adminetic\Website\Models\Admin\Page::class), |
||
| 219 | ], |
||
| 220 | [ |
||
| 221 | 'type' => 'or', |
||
| 222 | 'condition' => auth()->user()->can('create', \Adminetic\Website\Models\Admin\Page::class), |
||
| 223 | ], |
||
| 224 | ], |
||
| 225 | 'children' => $this->indexCreateChildren('page', \Adminetic\Website\Models\Admin\Page::class), |
||
| 226 | ], [ |
||
| 227 | 'type' => 'menu', |
||
| 228 | 'name' => 'Download', |
||
| 229 | 'icon' => 'fa fa-cloud-download-alt', |
||
| 230 | 'is_active' => request()->routeIs('download*') ? 'active' : '', |
||
| 231 | 'conditions' => [ |
||
| 232 | [ |
||
| 233 | 'type' => 'or', |
||
| 234 | 'condition' => auth()->user()->can('view-any', \Adminetic\Website\Models\Admin\Download::class), |
||
| 235 | ], |
||
| 236 | [ |
||
| 237 | 'type' => 'or', |
||
| 238 | 'condition' => auth()->user()->can('create', \Adminetic\Website\Models\Admin\Download::class), |
||
| 239 | ], |
||
| 240 | ], |
||
| 241 | 'children' => $this->indexCreateChildren('download', \Adminetic\Website\Models\Admin\Download::class), |
||
| 242 | |||
| 243 | ], |
||
| 244 | [ |
||
| 245 | 'type' => 'menu', |
||
| 246 | 'name' => 'Process', |
||
| 247 | 'icon' => 'fab fa-react', |
||
| 248 | 'is_active' => request()->routeIs('process*') ? 'active' : '', |
||
| 249 | 'conditions' => [ |
||
| 250 | [ |
||
| 251 | 'type' => 'or', |
||
| 252 | 'condition' => auth()->user()->can('view-any', \Adminetic\Website\Models\Admin\Process::class), |
||
| 253 | ], |
||
| 254 | [ |
||
| 255 | 'type' => 'or', |
||
| 256 | 'condition' => auth()->user()->can('create', \Adminetic\Website\Models\Admin\Process::class), |
||
| 257 | ], |
||
| 258 | ], |
||
| 259 | 'children' => $this->indexCreateChildren('process', \Adminetic\Website\Models\Admin\Process::class), |
||
| 260 | |||
| 261 | ], |
||
| 262 | [ |
||
| 263 | 'type' => 'menu', |
||
| 264 | 'name' => 'Career', |
||
| 265 | 'icon' => 'fa fa-user-md', |
||
| 266 | 'is_active' => request()->routeIs('career*') ? 'active' : '', |
||
| 267 | 'conditions' => [ |
||
| 268 | [ |
||
| 269 | 'type' => 'or', |
||
| 270 | 'condition' => auth()->user()->can('view-any', \Adminetic\Website\Models\Admin\Career::class), |
||
| 271 | ], |
||
| 272 | [ |
||
| 273 | 'type' => 'or', |
||
| 274 | 'condition' => auth()->user()->can('create', \Adminetic\Website\Models\Admin\Career::class), |
||
| 275 | ], |
||
| 276 | ], |
||
| 277 | 'children' => $this->indexCreateChildren('career', \Adminetic\Website\Models\Admin\Career::class), |
||
| 278 | |||
| 279 | ], [ |
||
| 280 | 'type' => 'menu', |
||
| 281 | 'name' => 'Popup', |
||
| 282 | 'icon' => 'fab fa-cloudsmith', |
||
| 283 | 'is_active' => request()->routeIs('popup*') ? 'active' : '', |
||
| 284 | 'conditions' => [ |
||
| 285 | [ |
||
| 286 | 'type' => 'or', |
||
| 287 | 'condition' => auth()->user()->can('view-any', \Adminetic\Website\Models\Admin\Popup::class), |
||
| 288 | ], |
||
| 289 | [ |
||
| 290 | 'type' => 'or', |
||
| 291 | 'condition' => auth()->user()->can('create', \Adminetic\Website\Models\Admin\Popup::class), |
||
| 292 | ], |
||
| 293 | ], |
||
| 294 | 'children' => $this->indexCreateChildren('popup', \Adminetic\Website\Models\Admin\Popup::class), |
||
| 295 | |||
| 296 | ], [ |
||
| 297 | 'type' => 'menu', |
||
| 298 | 'name' => 'Notice', |
||
| 299 | 'icon' => 'far fa-bell', |
||
| 300 | 'is_active' => request()->routeIs('notice*') ? 'active' : '', |
||
| 301 | 'conditions' => [ |
||
| 302 | [ |
||
| 303 | 'type' => 'or', |
||
| 304 | 'condition' => auth()->user()->can('view-any', \Adminetic\Website\Models\Admin\Notice::class), |
||
| 305 | ], |
||
| 306 | [ |
||
| 307 | 'type' => 'or', |
||
| 308 | 'condition' => auth()->user()->can('create', \Adminetic\Website\Models\Admin\Notice::class), |
||
| 309 | ], |
||
| 310 | ], |
||
| 311 | 'children' => $this->indexCreateChildren('notice', \Adminetic\Website\Models\Admin\Notice::class), |
||
| 312 | |||
| 313 | ], [ |
||
| 314 | 'type' => 'menu', |
||
| 315 | 'name' => 'Client', |
||
| 316 | 'icon' => 'fa fa-user-tie', |
||
| 317 | 'is_active' => request()->routeIs('client*') ? 'active' : '', |
||
| 318 | 'conditions' => [ |
||
| 319 | [ |
||
| 320 | 'type' => 'or', |
||
| 321 | 'condition' => auth()->user()->can('view-any', \Adminetic\Website\Models\Admin\Client::class), |
||
| 322 | ], |
||
| 323 | [ |
||
| 324 | 'type' => 'or', |
||
| 325 | 'condition' => auth()->user()->can('create', \Adminetic\Website\Models\Admin\Client::class), |
||
| 326 | ], |
||
| 327 | ], |
||
| 328 | 'children' => $this->indexCreateChildren('client', \Adminetic\Website\Models\Admin\Client::class), |
||
| 329 | |||
| 330 | ], [ |
||
| 331 | 'type' => 'menu', |
||
| 332 | 'name' => 'Gallery', |
||
| 333 | 'icon' => 'fa fa-file-image', |
||
| 334 | 'is_active' => request()->routeIs('gallery*') ? 'active' : '', |
||
| 335 | 'conditions' => [ |
||
| 336 | [ |
||
| 337 | 'type' => 'or', |
||
| 338 | 'condition' => auth()->user()->can('view-any', \Adminetic\Website\Models\Admin\Gallery::class), |
||
| 339 | ], |
||
| 340 | [ |
||
| 341 | 'type' => 'or', |
||
| 342 | 'condition' => auth()->user()->can('create', \Adminetic\Website\Models\Admin\Gallery::class), |
||
| 343 | ], |
||
| 344 | ], |
||
| 345 | 'children' => $this->indexCreateChildren('gallery', \Adminetic\Website\Models\Admin\Gallery::class), |
||
| 346 | |||
| 347 | ], [ |
||
| 348 | 'type' => 'menu', |
||
| 349 | 'name' => 'Counter', |
||
| 350 | 'icon' => 'fa fa-clock', |
||
| 351 | 'is_active' => request()->routeIs('counter*') ? 'active' : '', |
||
| 352 | 'conditions' => [ |
||
| 353 | [ |
||
| 354 | 'type' => 'or', |
||
| 355 | 'condition' => auth()->user()->can('view-any', \Adminetic\Website\Models\Admin\Counter::class), |
||
| 356 | ], |
||
| 357 | [ |
||
| 358 | 'type' => 'or', |
||
| 359 | 'condition' => auth()->user()->can('create', \Adminetic\Website\Models\Admin\Counter::class), |
||
| 360 | ], |
||
| 361 | ], |
||
| 362 | 'children' => $this->indexCreateChildren('counter', \Adminetic\Website\Models\Admin\Counter::class), |
||
| 363 | |||
| 364 | ], [ |
||
| 365 | 'type' => 'menu', |
||
| 366 | 'name' => 'Faq', |
||
| 367 | 'icon' => 'fa fa-question', |
||
| 368 | 'is_active' => request()->routeIs('faq*') ? 'active' : '', |
||
| 369 | 'conditions' => [ |
||
| 370 | [ |
||
| 371 | 'type' => 'or', |
||
| 372 | 'condition' => auth()->user()->can('view-any', \Adminetic\Website\Models\Admin\Faq::class), |
||
| 373 | ], |
||
| 374 | [ |
||
| 375 | 'type' => 'or', |
||
| 376 | 'condition' => auth()->user()->can('create', \Adminetic\Website\Models\Admin\Faq::class), |
||
| 377 | ], |
||
| 378 | ], |
||
| 379 | 'children' => $this->indexCreateChildren('faq', \Adminetic\Website\Models\Admin\Faq::class), |
||
| 380 | |||
| 381 | ], [ |
||
| 382 | 'type' => 'menu', |
||
| 383 | 'name' => 'Feature', |
||
| 384 | 'icon' => 'fa fa-star', |
||
| 385 | 'is_active' => request()->routeIs('feature*') ? 'active' : '', |
||
| 386 | 'conditions' => [ |
||
| 387 | [ |
||
| 388 | 'type' => 'or', |
||
| 389 | 'condition' => auth()->user()->can('view-any', \Adminetic\Website\Models\Admin\Feature::class), |
||
| 390 | ], |
||
| 391 | [ |
||
| 392 | 'type' => 'or', |
||
| 393 | 'condition' => auth()->user()->can('create', \Adminetic\Website\Models\Admin\Feature::class), |
||
| 394 | ], |
||
| 395 | ], |
||
| 396 | 'children' => $this->indexCreateChildren('feature', \Adminetic\Website\Models\Admin\Feature::class), |
||
| 397 | |||
| 398 | ], [ |
||
| 399 | 'type' => 'menu', |
||
| 400 | 'name' => 'Facility', |
||
| 401 | 'icon' => 'fa fa-seedling', |
||
| 402 | 'is_active' => request()->routeIs('facility*') ? 'active' : '', |
||
| 403 | 'conditions' => [ |
||
| 404 | [ |
||
| 405 | 'type' => 'or', |
||
| 406 | 'condition' => auth()->user()->can('view-any', \Adminetic\Website\Models\Admin\Facility::class), |
||
| 407 | ], |
||
| 408 | [ |
||
| 409 | 'type' => 'or', |
||
| 410 | 'condition' => auth()->user()->can('create', \Adminetic\Website\Models\Admin\Facility::class), |
||
| 411 | ], |
||
| 412 | ], |
||
| 413 | 'children' => $this->indexCreateChildren('facility', \Adminetic\Website\Models\Admin\Facility::class), |
||
| 414 | |||
| 415 | ], [ |
||
| 416 | 'type' => 'menu', |
||
| 417 | 'name' => 'Service', |
||
| 418 | 'icon' => 'fa fa-hard-hat', |
||
| 419 | 'is_active' => request()->routeIs('service*') ? 'active' : '', |
||
| 420 | 'conditions' => [ |
||
| 421 | [ |
||
| 422 | 'type' => 'or', |
||
| 423 | 'condition' => auth()->user()->can('view-any', \Adminetic\Website\Models\Admin\Service::class), |
||
| 424 | ], |
||
| 425 | [ |
||
| 426 | 'type' => 'or', |
||
| 427 | 'condition' => auth()->user()->can('create', \Adminetic\Website\Models\Admin\Service::class), |
||
| 428 | ], |
||
| 429 | ], |
||
| 430 | 'children' => $this->indexCreateChildren('service', \Adminetic\Website\Models\Admin\Service::class), |
||
| 431 | |||
| 432 | ], [ |
||
| 433 | 'type' => 'menu', |
||
| 434 | 'name' => 'Category', |
||
| 435 | 'icon' => 'fa fa-code-branch', |
||
| 436 | 'is_active' => request()->routeIs('category*') ? 'active' : '', |
||
| 437 | 'conditions' => [ |
||
| 438 | [ |
||
| 439 | 'type' => 'or', |
||
| 440 | 'condition' => auth()->user()->can('view-any', \Adminetic\Website\Models\Admin\Category::class), |
||
| 441 | ], |
||
| 442 | [ |
||
| 443 | 'type' => 'or', |
||
| 444 | 'condition' => auth()->user()->can('create', \Adminetic\Website\Models\Admin\Category::class), |
||
| 445 | ], |
||
| 446 | ], |
||
| 447 | 'children' => $this->indexCreateChildren('category', \Adminetic\Website\Models\Admin\Category::class), |
||
| 448 | ], |
||
| 449 | [ |
||
| 450 | 'type' => 'menu', |
||
| 451 | 'name' => 'Post', |
||
| 452 | 'icon' => 'fa fa-blog', |
||
| 453 | 'is_active' => request()->routeIs('post*') ? 'active' : '', |
||
| 454 | 'conditions' => [ |
||
| 455 | [ |
||
| 456 | 'type' => 'or', |
||
| 457 | 'condition' => auth()->user()->can('view-any', \Adminetic\Website\Models\Admin\Post::class), |
||
| 458 | ], |
||
| 459 | [ |
||
| 460 | 'type' => 'or', |
||
| 461 | 'condition' => auth()->user()->can('create', \Adminetic\Website\Models\Admin\Post::class), |
||
| 462 | ], |
||
| 463 | ], |
||
| 464 | 'children' => $this->indexCreateChildren('post', \Adminetic\Website\Models\Admin\Post::class), |
||
| 465 | ], |
||
| 466 | [ |
||
| 467 | 'type' => 'link', |
||
| 468 | 'name' => 'Visitor Messages', |
||
| 469 | 'icon' => 'fa fa-comment', |
||
| 470 | 'link' => route('visitorMessage'), |
||
| 471 | ], |
||
| 472 | [ |
||
| 473 | 'type' => 'link', |
||
| 474 | 'name' => 'Visitor Inquiry', |
||
| 475 | 'icon' => 'fa fa-comment', |
||
| 476 | 'link' => route('visitorInquiry'), |
||
| 477 | ], |
||
| 478 | [ |
||
| 479 | 'type' => 'breaker', |
||
| 480 | 'name' => 'E-commerce', |
||
| 481 | 'description' => 'Modules', |
||
| 482 | ], |
||
| 483 | [ |
||
| 484 | 'type' => 'menu', |
||
| 485 | 'name' => 'Payment', |
||
| 486 | 'icon' => 'fa fa-money-bill', |
||
| 487 | 'is_active' => request()->routeIs('payment*') ? 'active' : '', |
||
| 488 | 'conditions' => [ |
||
| 489 | [ |
||
| 490 | 'type' => 'or', |
||
| 491 | 'condition' => auth()->user()->can('view-any', \Adminetic\Website\Models\Admin\Payment::class), |
||
| 492 | ], |
||
| 493 | [ |
||
| 494 | 'type' => 'or', |
||
| 495 | 'condition' => auth()->user()->can('create', \Adminetic\Website\Models\Admin\Payment::class), |
||
| 496 | ], |
||
| 497 | ], |
||
| 498 | 'children' => $this->indexCreateChildren('payment', \Adminetic\Website\Models\Admin\Payment::class), |
||
| 499 | |||
| 500 | ], |
||
| 501 | [ |
||
| 502 | 'type' => 'menu', |
||
| 503 | 'name' => 'Product', |
||
| 504 | 'icon' => 'fab fa-product-hunt', |
||
| 505 | 'is_active' => request()->routeIs('product*') ? 'active' : '', |
||
| 506 | 'conditions' => [ |
||
| 507 | [ |
||
| 508 | 'type' => 'or', |
||
| 509 | 'condition' => auth()->user()->can('view-any', \Adminetic\Website\Models\Admin\Product::class), |
||
| 510 | ], |
||
| 511 | [ |
||
| 512 | 'type' => 'or', |
||
| 513 | 'condition' => auth()->user()->can('create', \Adminetic\Website\Models\Admin\Product::class), |
||
| 514 | ], |
||
| 515 | ], |
||
| 516 | 'children' => $this->indexCreateChildren('product', \Adminetic\Website\Models\Admin\Product::class), |
||
| 517 | |||
| 518 | ], |
||
| 519 | [ |
||
| 520 | 'type' => 'menu', |
||
| 521 | 'name' => 'Software', |
||
| 522 | 'icon' => 'fa fa-laptop', |
||
| 523 | 'is_active' => request()->routeIs('software*') ? 'active' : '', |
||
| 524 | 'conditions' => [ |
||
| 525 | [ |
||
| 526 | 'type' => 'or', |
||
| 527 | 'condition' => auth()->user()->can('view-any', \Adminetic\Website\Models\Admin\Software::class), |
||
| 528 | ], |
||
| 529 | [ |
||
| 530 | 'type' => 'or', |
||
| 531 | 'condition' => auth()->user()->can('create', \Adminetic\Website\Models\Admin\Software::class), |
||
| 532 | ], |
||
| 533 | ], |
||
| 534 | 'children' => $this->indexCreateChildren('software', \Adminetic\Website\Models\Admin\Software::class), |
||
| 535 | ], [ |
||
| 536 | 'type' => 'menu', |
||
| 537 | 'name' => 'Attribute', |
||
| 538 | 'icon' => 'fab fa-scribd', |
||
| 539 | 'is_active' => request()->routeIs('attribute*') ? 'active' : '', |
||
| 540 | 'conditions' => [ |
||
| 541 | [ |
||
| 542 | 'type' => 'or', |
||
| 543 | 'condition' => auth()->user()->can('view-any', \Adminetic\Website\Models\Admin\Attribute::class), |
||
| 544 | ], |
||
| 545 | [ |
||
| 546 | 'type' => 'or', |
||
| 547 | 'condition' => auth()->user()->can('create', \Adminetic\Website\Models\Admin\Attribute::class), |
||
| 548 | ], |
||
| 549 | ], |
||
| 550 | 'children' => $this->indexCreateChildren('attribute', \Adminetic\Website\Models\Admin\Attribute::class), |
||
| 551 | ], |
||
| 552 | ]; |
||
| 553 | } |
||
| 554 | } |
||
| 555 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths