Commit 03e95a0b5986c97f8282b50eae01806e3e5ab3a6

Authored by Сергей П
1 parent 8cbda1e869
Exists in master

Изменения для админ панели

Showing 7 changed files with 427 additions and 45 deletions Side-by-side Diff

app/Http/Controllers/Admin/EmployersController.php
... ... @@ -28,9 +28,13 @@ class EmployersController extends Controller
28 28 $user->update($request->all());
29 29 }
30 30  
31   - $users = User::with('employers')->select(['users.*','users.id as usr_id', 'emp.id as emp_id', 'emp.code as code_id', 'emp.logo as emp_logo', 'emp.name_company as name_company', 'emp.*'])
  31 + $users = User::with('employers')->select(['users.*','users.id as usr_id', 'emp.id as emp_id',
  32 + 'emp.code as code_id', 'emp.logo as emp_logo', 'emp.name_company as name_company', 'emp.*'
  33 + ])
32 34 ->join('employers as emp','emp.user_id','users.id')
33   - ->where('users.is_worker', '0')->Realuser(); //->Notadmin();
  35 + ->where('users.is_worker', '0')
  36 + ->orderByDesc('emp.id')
  37 + ->Realuser();
34 38 $all_employer = $users->count();
35 39  
36 40 $all_public = Employer::where('status_hidden', '=', '0')->
app/Http/Controllers/EmployerController.php
... ... @@ -433,30 +433,6 @@ class EmployerController extends Controller
433 433 if (strlen($request->get('password')) < 6) {
434 434 return json_encode(Array("ERROR" => "Error: Недостаточная длина пароля! Увеличьте себе длину пароля!"));
435 435 }
436   - /*
437   - $specsumbol = Array('!','~', '#', '$', '%', '^', '&', '*', '(', ')', '-', '=', ';', ':', '<', '>', '?');
438   - $alpha = Array('Q', 'W', 'E', 'R', 'T', 'Y', 'U', 'I', 'O', 'P', 'A', 'S', 'D', 'F', 'G', 'H', 'J', 'K', 'L', 'Z',
439   - 'X', 'C', 'V', 'B', 'N', 'M');
440   - $spec_bool = false;
441   - $alpha_bool = false;
442   -
443   - $haystack = $request->get('password');
444   -
445   - foreach ($specsumbol as $it) {
446   - if (strpos($haystack, $it) !== false) {
447   - $spec_bool = true;
448   - }
449   - }
450   -
451   - foreach ($alpha as $it) {
452   - if (strpos($haystack, $it) !== false) {
453   - $alpha_bool = true;
454   - }
455   - }
456   -
457   - if ((!$spec_bool) || (!$alpha_bool)) {
458   - return json_encode(Array("ERROR" => "Error: Нет спецсимволов в пароле, латинские буквы заглавные, а также один из символов: !~#$%^&*()-=;,:<>?"));
459   - }*/
460 436  
461 437 if (empty($request->get('surname'))) {
462 438 $params['surname'] = 'Неизвестно';
... ... @@ -7,6 +7,7 @@
7 7 "require": {
8 8 "php": "^8.0.2",
9 9 "barryvdh/laravel-dompdf": "^2.1",
  10 + "doctrine/dbal": "3.0",
10 11 "filament/forms": "^2.17",
11 12 "filament/notifications": "^2.17",
12 13 "filament/tables": "^2.17",
... ... @@ -4,7 +4,7 @@
4 4 "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
5 5 "This file is @generated automatically"
6 6 ],
7   - "content-hash": "ea4c6722676b55da722cc36aa677c35f",
  7 + "content-hash": "4b776d8fe63faa11f5e875dbed55d528",
8 8 "packages": [
9 9 {
10 10 "name": "akaunting/laravel-money",
... ... @@ -358,6 +358,79 @@
358 358 "time": "2023-01-15T23:15:59+00:00"
359 359 },
360 360 {
  361 + "name": "composer/package-versions-deprecated",
  362 + "version": "1.11.99.5",
  363 + "source": {
  364 + "type": "git",
  365 + "url": "https://github.com/composer/package-versions-deprecated.git",
  366 + "reference": "b4f54f74ef3453349c24a845d22392cd31e65f1d"
  367 + },
  368 + "dist": {
  369 + "type": "zip",
  370 + "url": "https://api.github.com/repos/composer/package-versions-deprecated/zipball/b4f54f74ef3453349c24a845d22392cd31e65f1d",
  371 + "reference": "b4f54f74ef3453349c24a845d22392cd31e65f1d",
  372 + "shasum": ""
  373 + },
  374 + "require": {
  375 + "composer-plugin-api": "^1.1.0 || ^2.0",
  376 + "php": "^7 || ^8"
  377 + },
  378 + "replace": {
  379 + "ocramius/package-versions": "1.11.99"
  380 + },
  381 + "require-dev": {
  382 + "composer/composer": "^1.9.3 || ^2.0@dev",
  383 + "ext-zip": "^1.13",
  384 + "phpunit/phpunit": "^6.5 || ^7"
  385 + },
  386 + "type": "composer-plugin",
  387 + "extra": {
  388 + "class": "PackageVersions\\Installer",
  389 + "branch-alias": {
  390 + "dev-master": "1.x-dev"
  391 + }
  392 + },
  393 + "autoload": {
  394 + "psr-4": {
  395 + "PackageVersions\\": "src/PackageVersions"
  396 + }
  397 + },
  398 + "notification-url": "https://packagist.org/downloads/",
  399 + "license": [
  400 + "MIT"
  401 + ],
  402 + "authors": [
  403 + {
  404 + "name": "Marco Pivetta",
  405 + "email": "ocramius@gmail.com"
  406 + },
  407 + {
  408 + "name": "Jordi Boggiano",
  409 + "email": "j.boggiano@seld.be"
  410 + }
  411 + ],
  412 + "description": "Composer plugin that provides efficient querying for installed package versions (no runtime IO)",
  413 + "support": {
  414 + "issues": "https://github.com/composer/package-versions-deprecated/issues",
  415 + "source": "https://github.com/composer/package-versions-deprecated/tree/1.11.99.5"
  416 + },
  417 + "funding": [
  418 + {
  419 + "url": "https://packagist.com",
  420 + "type": "custom"
  421 + },
  422 + {
  423 + "url": "https://github.com/composer",
  424 + "type": "github"
  425 + },
  426 + {
  427 + "url": "https://tidelift.com/funding/github/packagist/composer/composer",
  428 + "type": "tidelift"
  429 + }
  430 + ],
  431 + "time": "2022-01-17T14:14:24+00:00"
  432 + },
  433 + {
361 434 "name": "danharrin/date-format-converter",
362 435 "version": "v0.3.0",
363 436 "source": {
... ... @@ -484,6 +557,216 @@
484 557 "time": "2022-10-27T11:44:00+00:00"
485 558 },
486 559 {
  560 + "name": "doctrine/cache",
  561 + "version": "1.13.0",
  562 + "source": {
  563 + "type": "git",
  564 + "url": "https://github.com/doctrine/cache.git",
  565 + "reference": "56cd022adb5514472cb144c087393c1821911d09"
  566 + },
  567 + "dist": {
  568 + "type": "zip",
  569 + "url": "https://api.github.com/repos/doctrine/cache/zipball/56cd022adb5514472cb144c087393c1821911d09",
  570 + "reference": "56cd022adb5514472cb144c087393c1821911d09",
  571 + "shasum": ""
  572 + },
  573 + "require": {
  574 + "php": "~7.1 || ^8.0"
  575 + },
  576 + "conflict": {
  577 + "doctrine/common": ">2.2,<2.4"
  578 + },
  579 + "require-dev": {
  580 + "alcaeus/mongo-php-adapter": "^1.1",
  581 + "cache/integration-tests": "dev-master",
  582 + "doctrine/coding-standard": "^9",
  583 + "mongodb/mongodb": "^1.1",
  584 + "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5",
  585 + "predis/predis": "~1.0",
  586 + "psr/cache": "^1.0 || ^2.0 || ^3.0",
  587 + "symfony/cache": "^4.4 || ^5.4 || ^6",
  588 + "symfony/var-exporter": "^4.4 || ^5.4 || ^6"
  589 + },
  590 + "suggest": {
  591 + "alcaeus/mongo-php-adapter": "Required to use legacy MongoDB driver"
  592 + },
  593 + "type": "library",
  594 + "autoload": {
  595 + "psr-4": {
  596 + "Doctrine\\Common\\Cache\\": "lib/Doctrine/Common/Cache"
  597 + }
  598 + },
  599 + "notification-url": "https://packagist.org/downloads/",
  600 + "license": [
  601 + "MIT"
  602 + ],
  603 + "authors": [
  604 + {
  605 + "name": "Guilherme Blanco",
  606 + "email": "guilhermeblanco@gmail.com"
  607 + },
  608 + {
  609 + "name": "Roman Borschel",
  610 + "email": "roman@code-factory.org"
  611 + },
  612 + {
  613 + "name": "Benjamin Eberlei",
  614 + "email": "kontakt@beberlei.de"
  615 + },
  616 + {
  617 + "name": "Jonathan Wage",
  618 + "email": "jonwage@gmail.com"
  619 + },
  620 + {
  621 + "name": "Johannes Schmitt",
  622 + "email": "schmittjoh@gmail.com"
  623 + }
  624 + ],
  625 + "description": "PHP Doctrine Cache library is a popular cache implementation that supports many different drivers such as redis, memcache, apc, mongodb and others.",
  626 + "homepage": "https://www.doctrine-project.org/projects/cache.html",
  627 + "keywords": [
  628 + "abstraction",
  629 + "apcu",
  630 + "cache",
  631 + "caching",
  632 + "couchdb",
  633 + "memcached",
  634 + "php",
  635 + "redis",
  636 + "xcache"
  637 + ],
  638 + "support": {
  639 + "issues": "https://github.com/doctrine/cache/issues",
  640 + "source": "https://github.com/doctrine/cache/tree/1.13.0"
  641 + },
  642 + "funding": [
  643 + {
  644 + "url": "https://www.doctrine-project.org/sponsorship.html",
  645 + "type": "custom"
  646 + },
  647 + {
  648 + "url": "https://www.patreon.com/phpdoctrine",
  649 + "type": "patreon"
  650 + },
  651 + {
  652 + "url": "https://tidelift.com/funding/github/packagist/doctrine%2Fcache",
  653 + "type": "tidelift"
  654 + }
  655 + ],
  656 + "time": "2022-05-20T20:06:54+00:00"
  657 + },
  658 + {
  659 + "name": "doctrine/dbal",
  660 + "version": "3.0.0",
  661 + "source": {
  662 + "type": "git",
  663 + "url": "https://github.com/doctrine/dbal.git",
  664 + "reference": "ee6d1260d5cc20ec506455a585945d7bdb98662c"
  665 + },
  666 + "dist": {
  667 + "type": "zip",
  668 + "url": "https://api.github.com/repos/doctrine/dbal/zipball/ee6d1260d5cc20ec506455a585945d7bdb98662c",
  669 + "reference": "ee6d1260d5cc20ec506455a585945d7bdb98662c",
  670 + "shasum": ""
  671 + },
  672 + "require": {
  673 + "composer/package-versions-deprecated": "^1.11.99",
  674 + "doctrine/cache": "^1.0",
  675 + "doctrine/event-manager": "^1.0",
  676 + "php": "^7.3 || ^8.0"
  677 + },
  678 + "require-dev": {
  679 + "doctrine/coding-standard": "^8.1",
  680 + "jetbrains/phpstorm-stubs": "^2019.1",
  681 + "phpstan/phpstan": "^0.12.40",
  682 + "phpstan/phpstan-strict-rules": "^0.12.2",
  683 + "phpunit/phpunit": "^9.4",
  684 + "psalm/plugin-phpunit": "^0.10.0",
  685 + "symfony/console": "^2.0.5|^3.0|^4.0|^5.0",
  686 + "vimeo/psalm": "^3.17.2"
  687 + },
  688 + "suggest": {
  689 + "symfony/console": "For helpful console commands such as SQL execution and import of files."
  690 + },
  691 + "bin": [
  692 + "bin/doctrine-dbal"
  693 + ],
  694 + "type": "library",
  695 + "extra": {
  696 + "branch-alias": {
  697 + "dev-master": "4.0.x-dev"
  698 + }
  699 + },
  700 + "autoload": {
  701 + "psr-4": {
  702 + "Doctrine\\DBAL\\": "src"
  703 + }
  704 + },
  705 + "notification-url": "https://packagist.org/downloads/",
  706 + "license": [
  707 + "MIT"
  708 + ],
  709 + "authors": [
  710 + {
  711 + "name": "Guilherme Blanco",
  712 + "email": "guilhermeblanco@gmail.com"
  713 + },
  714 + {
  715 + "name": "Roman Borschel",
  716 + "email": "roman@code-factory.org"
  717 + },
  718 + {
  719 + "name": "Benjamin Eberlei",
  720 + "email": "kontakt@beberlei.de"
  721 + },
  722 + {
  723 + "name": "Jonathan Wage",
  724 + "email": "jonwage@gmail.com"
  725 + }
  726 + ],
  727 + "description": "Powerful PHP database abstraction layer (DBAL) with many features for database schema introspection and management.",
  728 + "homepage": "https://www.doctrine-project.org/projects/dbal.html",
  729 + "keywords": [
  730 + "abstraction",
  731 + "database",
  732 + "db2",
  733 + "dbal",
  734 + "mariadb",
  735 + "mssql",
  736 + "mysql",
  737 + "oci8",
  738 + "oracle",
  739 + "pdo",
  740 + "pgsql",
  741 + "postgresql",
  742 + "queryobject",
  743 + "sasql",
  744 + "sql",
  745 + "sqlite",
  746 + "sqlserver",
  747 + "sqlsrv"
  748 + ],
  749 + "support": {
  750 + "issues": "https://github.com/doctrine/dbal/issues",
  751 + "source": "https://github.com/doctrine/dbal/tree/3.0.0"
  752 + },
  753 + "funding": [
  754 + {
  755 + "url": "https://www.doctrine-project.org/sponsorship.html",
  756 + "type": "custom"
  757 + },
  758 + {
  759 + "url": "https://www.patreon.com/phpdoctrine",
  760 + "type": "patreon"
  761 + },
  762 + {
  763 + "url": "https://tidelift.com/funding/github/packagist/doctrine%2Fdbal",
  764 + "type": "tidelift"
  765 + }
  766 + ],
  767 + "time": "2020-11-15T18:20:41+00:00"
  768 + },
  769 + {
487 770 "name": "doctrine/deprecations",
488 771 "version": "v1.0.0",
489 772 "source": {
... ... @@ -527,6 +810,98 @@
527 810 "time": "2022-05-02T15:47:09+00:00"
528 811 },
529 812 {
  813 + "name": "doctrine/event-manager",
  814 + "version": "1.2.0",
  815 + "source": {
  816 + "type": "git",
  817 + "url": "https://github.com/doctrine/event-manager.git",
  818 + "reference": "95aa4cb529f1e96576f3fda9f5705ada4056a520"
  819 + },
  820 + "dist": {
  821 + "type": "zip",
  822 + "url": "https://api.github.com/repos/doctrine/event-manager/zipball/95aa4cb529f1e96576f3fda9f5705ada4056a520",
  823 + "reference": "95aa4cb529f1e96576f3fda9f5705ada4056a520",
  824 + "shasum": ""
  825 + },
  826 + "require": {
  827 + "doctrine/deprecations": "^0.5.3 || ^1",
  828 + "php": "^7.1 || ^8.0"
  829 + },
  830 + "conflict": {
  831 + "doctrine/common": "<2.9"
  832 + },
  833 + "require-dev": {
  834 + "doctrine/coding-standard": "^9 || ^10",
  835 + "phpstan/phpstan": "~1.4.10 || ^1.8.8",
  836 + "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5",
  837 + "vimeo/psalm": "^4.24"
  838 + },
  839 + "type": "library",
  840 + "autoload": {
  841 + "psr-4": {
  842 + "Doctrine\\Common\\": "src"
  843 + }
  844 + },
  845 + "notification-url": "https://packagist.org/downloads/",
  846 + "license": [
  847 + "MIT"
  848 + ],
  849 + "authors": [
  850 + {
  851 + "name": "Guilherme Blanco",
  852 + "email": "guilhermeblanco@gmail.com"
  853 + },
  854 + {
  855 + "name": "Roman Borschel",
  856 + "email": "roman@code-factory.org"
  857 + },
  858 + {
  859 + "name": "Benjamin Eberlei",
  860 + "email": "kontakt@beberlei.de"
  861 + },
  862 + {
  863 + "name": "Jonathan Wage",
  864 + "email": "jonwage@gmail.com"
  865 + },
  866 + {
  867 + "name": "Johannes Schmitt",
  868 + "email": "schmittjoh@gmail.com"
  869 + },
  870 + {
  871 + "name": "Marco Pivetta",
  872 + "email": "ocramius@gmail.com"
  873 + }
  874 + ],
  875 + "description": "The Doctrine Event Manager is a simple PHP event system that was built to be used with the various Doctrine projects.",
  876 + "homepage": "https://www.doctrine-project.org/projects/event-manager.html",
  877 + "keywords": [
  878 + "event",
  879 + "event dispatcher",
  880 + "event manager",
  881 + "event system",
  882 + "events"
  883 + ],
  884 + "support": {
  885 + "issues": "https://github.com/doctrine/event-manager/issues",
  886 + "source": "https://github.com/doctrine/event-manager/tree/1.2.0"
  887 + },
  888 + "funding": [
  889 + {
  890 + "url": "https://www.doctrine-project.org/sponsorship.html",
  891 + "type": "custom"
  892 + },
  893 + {
  894 + "url": "https://www.patreon.com/phpdoctrine",
  895 + "type": "patreon"
  896 + },
  897 + {
  898 + "url": "https://tidelift.com/funding/github/packagist/doctrine%2Fevent-manager",
  899 + "type": "tidelift"
  900 + }
  901 + ],
  902 + "time": "2022-10-12T20:51:15+00:00"
  903 + },
  904 + {
530 905 "name": "doctrine/inflector",
531 906 "version": "2.0.6",
532 907 "source": {
... ... @@ -9909,5 +10284,5 @@
9909 10284 "php": "^8.0.2"
9910 10285 },
9911 10286 "platform-dev": [],
9912   - "plugin-api-version": "2.3.0"
  10287 + "plugin-api-version": "2.6.0"
9913 10288 }
database/migrations/2024_06_24_092718_alert_table_users.php
... ... @@ -0,0 +1,35 @@
  1 +<?php
  2 +
  3 +use Illuminate\Database\Migrations\Migration;
  4 +use Illuminate\Database\Schema\Blueprint;
  5 +use Illuminate\Support\Facades\Schema;
  6 +
  7 +return new class extends Migration
  8 +{
  9 + /**
  10 + * Run the migrations.
  11 + *
  12 + * @return void
  13 + */
  14 + public function up()
  15 + {
  16 + Schema::table('users', function (Blueprint $table) {
  17 + $table->smallInteger('is_lookin')->tinyInteger('is_lookin')->default(0)->change();
  18 + $table->smallInteger('is_message')->tinyInteger('is_message')->default(0)->change();
  19 + $table->smallInteger('is_public')->tinyInteger('is_public')->default(0)->change();
  20 + $table->smallInteger('is_manager')->tinyInteger('is_manager')->default(0)->change();
  21 + });
  22 + }
  23 +
  24 + /**
  25 + * Reverse the migrations.
  26 + *
  27 + * @return void
  28 + */
  29 + public function down()
  30 + {
  31 + Schema::table('users', function (Blueprint $table) {
  32 + //
  33 + });
  34 + }
  35 +};
resources/views/admin/employer/edit.blade.php
... ... @@ -146,21 +146,21 @@
146 146 </h4>
147 147 <p class="text-gray-700 dark:text-gray-400" style="float:left; margin-right: 10px">Просмотр базы резюме </p>
148 148 <input type="hidden" name="is_lookin" value="0" />
149   - <input name="is_lookin" <? if ($employer->users->is_lookin) echo "checked";?>
  149 + <input name="is_lookin" <?php if ($employer->users->is_lookin) echo "checked";?>
150 150 class="block mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:border-purple-400 focus:outline-none focus:shadow-outline-purple dark:text-gray-300 dark:focus:shadow-outline-gray "
151 151 placeholder="" type="checkbox" value="1"
152 152 /><br>
153 153  
154 154 <p class="text-gray-700 dark:text-gray-400" style="float:left; margin-right: 10px">Отправка сообщений</p>
155 155 <input type="hidden" name="is_message" value="0" />
156   - <input name="is_message" id="is_message" <? if ($employer->users->is_message) echo "checked";?>
  156 + <input name="is_message" id="is_message" <?php if ($employer->users->is_message) echo "checked";?>
157 157 class="block mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:border-purple-400 focus:outline-none focus:shadow-outline-purple dark:text-gray-300 dark:focus:shadow-outline-gray "
158 158 placeholder="" type="checkbox" value="1"
159 159 /><br>
160 160  
161 161 <p class="text-gray-700 dark:text-gray-400" style="float:left; margin-right: 10px">Публикация вакансий</p>
162 162 <input type="hidden" name="is_public" value="0" />
163   - <input name="is_public" id="is_public" <? if ($employer->users->is_public) echo "checked";?>
  163 + <input name="is_public" id="is_public" <?php if ($employer->users->is_public) echo "checked";?>
164 164 class="block mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:border-purple-400 focus:outline-none focus:shadow-outline-purple dark:text-gray-300 dark:focus:shadow-outline-gray "
165 165 placeholder="" type="checkbox" value="1"
166 166 /><br>
... ... @@ -170,7 +170,7 @@
170 170 <label class="block text-sm">
171 171 <p class="text-gray-700 dark:text-gray-400" style="float:left; margin-right: 10px">Работодатель скрыт </p>
172 172 <input type="hidden" name="status_hidden" value="0" />
173   - <input name="status_hidden" <? if ($employer->status_hidden) echo "checked";?>
  173 + <input name="status_hidden" <?php if ($employer->status_hidden) echo "checked";?>
174 174 class="block mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:border-purple-400 focus:outline-none focus:shadow-outline-purple dark:text-gray-300 dark:focus:shadow-outline-gray "
175 175 placeholder="" type="checkbox" value="1"
176 176 />
... ... @@ -179,7 +179,7 @@
179 179 <label class="block text-sm">
180 180 <p class="text-gray-700 dark:text-gray-400" style="float:left; margin-right: 10px">Компания подтверждена </p>
181 181 <input type="hidden" name="oficial_status" value="0" />
182   - <input name="oficial_status" <? if ($employer->oficial_status) echo "checked";?>
  182 + <input name="oficial_status" <?php if ($employer->oficial_status) echo "checked";?>
183 183 class="block mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:border-purple-400 focus:outline-none focus:shadow-outline-purple dark:text-gray-300 dark:focus:shadow-outline-gray "
184 184 placeholder="" type="checkbox" value="1"
185 185 />
... ... @@ -188,7 +188,7 @@
188 188 <label class="block text-sm">
189 189 <p class="text-gray-700 dark:text-gray-400" style="float:left; margin-right: 10px">Разрешение публикации в соц.сетях </p>
190 190 <input type="hidden" name="social_is" value="0" />
191   - <input name="social_is" <? if ($employer->social_is) echo "checked";?>
  191 + <input name="social_is" <?php if ($employer->social_is) echo "checked";?>
192 192 class="block mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:border-purple-400 focus:outline-none focus:shadow-outline-purple dark:text-gray-300 dark:focus:shadow-outline-gray "
193 193 placeholder="" type="checkbox" value="1"
194 194 />
... ... @@ -197,7 +197,7 @@
197 197 <label class="block text-sm">
198 198 <p class="text-gray-700 dark:text-gray-400" style="float:left; margin-right: 10px">Рассылка </p>
199 199 <input type="hidden" name="sending_is" value="0" />
200   - <input name="sending_is" <? if ($employer->sending_is) echo "checked";?>
  200 + <input name="sending_is" <?php if ($employer->sending_is) echo "checked";?>
201 201 class="block mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:border-purple-400 focus:outline-none focus:shadow-outline-purple dark:text-gray-300 dark:focus:shadow-outline-gray "
202 202 placeholder="" type="checkbox" value="1"
203 203 />
resources/views/employers/menu.blade.php
... ... @@ -84,6 +84,7 @@
84 84 </i>
85 85 <span>Избранные кандидаты</span>
86 86 </a>
  87 + @if ((!Auth()->user()->is_worker) && (Auth()->user()->is_lookin))
87 88 <a href="{{ route('employer.bd') }}" class="cabinet__menu-item @if ($item==7) active @endif">
88 89 <i>
89 90 <svg>
... ... @@ -92,7 +93,6 @@
92 93 </i>
93 94 <span>База данных</span>
94 95 </a>
95   - @if ((!Auth()->user()->is_worker) && (Auth()->user()->is_lookin))
96 96 <a href="{{ route('bd_resume') }}" target="_blank" class="cabinet__menu-item @if ($item==8) active @endif">
97 97 <i>
98 98 <svg>
... ... @@ -101,15 +101,6 @@
101 101 </i>
102 102 <span>База резюме</span>
103 103 </a>
104   - @else
105   - <a href="{{ route('bd_resume_danger') }}" target="_blank" class="cabinet__menu-item @if ($item==8) active @endif">
106   - <i>
107   - <svg>
108   - <use xlink:href="{{ asset('images/sprite.svg#cabinet-8') }}"></use>
109   - </svg>
110   - </i>
111   - <span>База резюме</span>
112   - </a>
113 104 @endif
114 105 <a href="{{ route('employer.send_all_messages') }}" class="cabinet__menu-item @if ($item==9) active @endif">
115 106 <i>