diff --git a/app/Http/Controllers/Admin/CompanyController.php b/app/Http/Controllers/Admin/CompanyController.php index 6663b24..d7637a6 100644 --- a/app/Http/Controllers/Admin/CompanyController.php +++ b/app/Http/Controllers/Admin/CompanyController.php @@ -209,9 +209,24 @@ class CompanyController extends Controller /////////////////////////////////////////////////////////////////// ////// кабинет - реклама сайта //////////////////////////////////// - public function reclames() { + public function reclames(Request $request) { + if ($request->ajax()) { + $rec = reclame::find($request->id); + if ($request->status == 'close') { + $rec->is_hidden = 0; + } else { + $rec->is_hidden = 1; + } + $rec->save(); + } + $reclames = reclame::query()->OrderBy('title')->paginate(15); - return view('admin.reclames.index', compact('reclames')); + + if ($request->ajax()) { + return view('admin.reclames.index_ajax', compact('reclames')); + } else { + return view('admin.reclames.index', compact('reclames')); + } } public function reclames_add() { diff --git a/app/Models/reclame.php b/app/Models/reclame.php index 1452445..8773d7b 100644 --- a/app/Models/reclame.php +++ b/app/Models/reclame.php @@ -18,5 +18,6 @@ class reclame extends Model 'is_hidden', 'col_vo_click', 'is_remove', + 'name', ]; } diff --git a/database/migrations/2023_10_24_113129_alter_table_reclames.php b/database/migrations/2023_10_24_113129_alter_table_reclames.php new file mode 100644 index 0000000..6b9b894 --- /dev/null +++ b/database/migrations/2023_10_24_113129_alter_table_reclames.php @@ -0,0 +1,32 @@ +string('name', 255)->nullable(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('reclames', function (Blueprint $table) { + $table->dropColumn('name'); + }); + } +}; diff --git a/public/assets/img/close-eye.png b/public/assets/img/close-eye.png new file mode 100644 index 0000000000000000000000000000000000000000..6b755117dc0a97f0aa82e844b8512446644bd644 GIT binary patch literal 10647 zcmdUVi93{C*!XN{>_)ciGM4OQ9fJxPOH(A2q!ekvYsnJhnN&#Dv5Z|zq{R{;g{izL zkqng(lL{l*Y1G7b@P5DR_b+_c#l>~b{oLo?&b^&G@!)~|0=zqTVKA5g!Oq$l219^< z5wLCC;LlP-|8MXI9c1Sb0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c-{d zcm)Cbn)YL+ZpKp)^rgL%xk=4t;rYdhi2eo4X1zrl5pVRZoM!UCQZo3Yui46amR#p+ zRY9z-&8anGL4AubKl1FCufeZ`8l4LH%_nEo7FR6DL=5mJ!H4K?tDIAAYCKe|1q8=DDkK5%>`}z z>gzuzX@aX^LBb>(0cwgFJx9A2-(OILwOqM9zx4I8yB|%r_xSl`Lqi&KFS43Gqu$DV zl~F}&<>8i@&4mdn(jZHoKkldUK646(Tf!^(f_0CvZZp6YW>RtLPv)aW618xC#kRb4 z`117&Dp`qF0!8b*w>1@1n11rF{a_>1drx4r4LRTSc-`9d(ak6ok=n{(;6v4wRK;{I1s4Zxi@7?xE?>8S9v@9+S_9wN|KZ1hsX730Fc^T+#?~z z%jRv@?=#Wi&vF{J-y;E8NCn#!^FfY>%c6%_qj$#AlHcE~d$J#VcWv8wRH73vQbjx- zl&U5^>I(6}Q$r-Q+W)|?8(thKq$p6?cl%u4c^+X~ zWxRoM^qosx5oBDS``K4Ep - +

+ +
+ + diff --git a/resources/views/admin/reclames/index.blade.php b/resources/views/admin/reclames/index.blade.php index a686147..f84f244 100644 --- a/resources/views/admin/reclames/index.blade.php +++ b/resources/views/admin/reclames/index.blade.php @@ -1,36 +1,38 @@ @extends('layout.admin', ['title' => 'Админка - Реклама сайта']) @section('script') + @endsection @section('search') - + @endsection @section('content') @@ -48,10 +50,8 @@ class="text-xs font-semibold tracking-wide text-left text-gray-500 uppercase border-b dark:border-gray-700 bg-gray-50 dark:text-gray-400 dark:bg-gray-800" > № - Заголовок - Ссылка + Имя в админке/Заголовок Позиция - Скрыть Клики Редактировать @@ -63,30 +63,41 @@ {{$reclame->id}} - {{$reclame->title}} - - - {{$reclame->link}} +
+
+

+ {{$reclame->name}} +

+

+ {{$reclame->title}} +

+

+ {{$reclame->link}} +

+
+
{{$reclame->position}} - - @if ($reclame->is_hidden) - Скрыто - @else - Показано - @endif - + {{$reclame->col_vo_click}}
- Изменить | + Изменить | @csrf @method('DELETE') - + @if ($reclame->is_hidden) + +

|

+ @else + +

|

+ @endif + +
diff --git a/resources/views/admin/reclames/index_ajax.blade.php b/resources/views/admin/reclames/index_ajax.blade.php new file mode 100644 index 0000000..c5860de --- /dev/null +++ b/resources/views/admin/reclames/index_ajax.blade.php @@ -0,0 +1,68 @@ +
+ + + + + + + + + + + + @foreach($reclames as $reclame) + + + + + + + + + @endforeach + +
Имя в админке/ЗаголовокПозицияКликиРедактировать
+ {{$reclame->id}} + +
+
+

+ {{$reclame->name}} +

+

+ {{$reclame->title}} +

+

+ {{$reclame->link}} +

+
+
+
+ {{$reclame->position}} + + {{$reclame->col_vo_click}} + +
+ Изменить | + @csrf + @method('DELETE') + @if ($reclame->is_hidden) + +

|

+ @else + +

|

+ @endif + + +
+
+
+ +
+ appends($_GET)->links('admin.pagginate'); ?> +
+ + diff --git a/resources/views/admin/worker/index_ajax.blade.php b/resources/views/admin/worker/index_ajax.blade.php index c5c1c8e..3bfbee4 100644 --- a/resources/views/admin/worker/index_ajax.blade.php +++ b/resources/views/admin/worker/index_ajax.blade.php @@ -1,3 +1,4 @@ +
@@ -5,13 +6,13 @@ class="text-xs font-semibold tracking-wide text-left text-gray-500 uppercase border-b dark:border-gray-700 bg-gray-50 dark:text-gray-400 dark:bg-gray-800" > - - - + + + + - @@ -21,11 +22,38 @@ {{$user->id}} - + + + @@ -61,17 +98,17 @@ {{ date('d.m.Y h:i:s', strtotime($user->created_at)) }} - @endforeach
ИмяEmail/Телефон% заполнения анкетыЛогоФИО/Email/ТелефонСтатус% анкеты Должность Дата регистрации ИзменитьБан
- {{ !empty($user->name_man) ? $user->name_man : $user->name }} + @if (isset($user->workers[0]->photo)) +
+ +
+ @else + - + @endif
+ +
+

+ @if (isset($user->id)) + {{ $user->surname }} {{ !empty($user->name_man) ? $user->name_man : $user->name }} {{ $user->surname2 }} + @else + {{ $user->surname }} {{ !empty($user->name_man) ? $user->name_man : $user->name }} {{ $user->surname2 }} + @endif +

{{ empty($user->workers->email) ? $user->email : $user->workers->email }}

{{ empty($user->workers->telephone) ? $user->telephone : $user->workers->telephone }} @@ -33,6 +61,15 @@

+ @if (isset($user->workers[0]->status_work)) + {{ $status_wor[$user->workers[0]->status_work] }} + @else + - + @endif + @if (isset($user->workers[0]->persent_anketa)) @if ($user->workers[0]->persent_anketa > 40) @@ -46,7 +83,7 @@ @endif @else - 0% + 0% @endif - @if ($user->id > 1) - @if (isset($user->workers[0]->id)) - Изменить + + @if (isset($user->workers[0]->id)) + Изменить - @endif - @endif + @endif +