File tree Expand file tree Collapse file tree 12 files changed +24
-13
lines changed
packages/Webkul/Admin/src Expand file tree Collapse file tree 12 files changed +24
-13
lines changed Original file line number Diff line number Diff line change @@ -362,11 +362,9 @@ public function massUpdate(MassUpdateRequest $massUpdateRequest): JsonResponse
362362 foreach ($ leads as $ lead ) {
363363 Event::dispatch ('lead.update.before ' , $ lead ->id );
364364
365- $ this ->leadRepository ->update (
366- ['lead_pipeline_stage_id ' => $ massUpdateRequest ->input ('value ' )],
367- $ lead ->id ,
368- ['lead_pipeline_stage_id ' ]
369- );
365+ $ lead = $ this ->leadRepository ->find ($ lead ->id );
366+
367+ $ lead ?->update(['lead_pipeline_stage_id ' => $ massUpdateRequest ->input ('value ' )]);
370368
371369 Event::dispatch ('lead.update.before ' , $ lead ->id );
372370 }
@@ -376,7 +374,7 @@ public function massUpdate(MassUpdateRequest $massUpdateRequest): JsonResponse
376374 ]);
377375 } catch (\Exception $ th ) {
378376 return response ()->json ([
379- 'message ' => trans ('admin::app.leads.destroy -failed ' ),
377+ 'message ' => trans ('admin::app.leads.update -failed ' ),
380378 ], 400 );
381379 }
382380 }
Original file line number Diff line number Diff line change 622622.tox .tox-toolbar__group : last-child button [aria-disabled = "true" ] {
623623 @apply cursor-not-allowed opacity-50;
624624}
625+
626+ .tox .tox-toolbar__group : last-child button {
627+ @apply !bg- transparent;
628+ }
629+
630+ .tox .tox-toolbar__group : last-child button : hover {
631+ @apply border-0 !bg- [# 3389ec ] text-white shadow-none;
632+ }
Original file line number Diff line number Diff line change 16541654 'leads ' => [
16551655 'create-success ' => 'تم إنشاء العميل المحتمل بنجاح. ' ,
16561656 'update-success ' => 'تم تحديث العميل المحتمل بنجاح. ' ,
1657+ 'update-failed ' => 'Leads can not be deleted. ' ,
16571658 'destroy-success ' => 'تم حذف العميل المحتمل بنجاح. ' ,
16581659 'destroy-failed ' => 'لا يمكن حذف العميل المحتمل. ' ,
16591660
Original file line number Diff line number Diff line change 16531653
16541654 'leads ' => [
16551655 'create-success ' => 'Lead created successfully. ' ,
1656- 'update-success ' => 'Lead updated successfully. ' ,
1656+ 'update-success ' => 'Leads updated successfully. ' ,
1657+ 'update-failed ' => 'Leads can not be deleted. ' ,
16571658 'destroy-success ' => 'Lead deleted successfully. ' ,
16581659 'destroy-failed ' => 'Lead can not be deleted. ' ,
16591660
Original file line number Diff line number Diff line change 16541654 'leads ' => [
16551655 'create-success ' => 'Lead creado exitosamente. ' ,
16561656 'update-success ' => 'Lead actualizado exitosamente. ' ,
1657+ 'update-failed ' => 'No se pueden eliminar los clientes potenciales. ' ,
16571658 'destroy-success ' => 'Lead eliminado exitosamente. ' ,
16581659 'destroy-failed ' => 'No se puede eliminar el lead. ' ,
16591660
Original file line number Diff line number Diff line change 16541654 'leads ' => [
16551655 'create-success ' => 'سرنخ با موفقیت ایجاد شد. ' ,
16561656 'update-success ' => 'سرنخ با موفقیت بهروزرسانی شد. ' ,
1657+ 'update-failed ' => 'سرنخها قابل حذف نیستند. ' ,
16571658 'destroy-success ' => 'سرنخ با موفقیت حذف شد. ' ,
16581659 'destroy-failed ' => 'سرنخ قابل حذف نیست. ' ,
16591660
Original file line number Diff line number Diff line change 16541654 'leads ' => [
16551655 'create-success ' => 'Lead başarıyla oluşturuldu. ' ,
16561656 'update-success ' => 'Lead başarıyla güncellendi. ' ,
1657+ 'update-failed ' => 'Potansiyel müşteriler silinemez. ' ,
16571658 'destroy-success ' => 'Lead başarıyla silindi. ' ,
16581659 'destroy-failed ' => 'Lead silinemedi. ' ,
16591660
Original file line number Diff line number Diff line change @@ -306,7 +306,7 @@ class="cursor-pointer rounded-md p-1.5 text-2xl transition-all hover:bg-gray-200
306306
307307 data () {
308308 return {
309- viewType: ( new URLSearchParams ( window . location . search )) ? . get ( ' view-type' ) || ' table' ,
309+ viewType: ' {{ request ( ' view-type' ) } } ' || ' table' ,
310310 };
311311 },
312312
Original file line number Diff line number Diff line change 11<div
22 ref =" sidebar"
3- class =" duration-80 fixed top-[60px] z-[10002] h-full w-[200px] border-r border- gray-200 bg-white pt-4 transition-all group-[.sidebar-collapsed]/container:w-[70px] dark:border-gray-800 dark:bg-gray-900 max-lg:hidden"
3+ class =" duration-80 fixed top-[60px] z-[10002] h-full w-[200px] border-gray-200 bg-white pt-4 transition-all group-[.sidebar-collapsed]/container:w-[70px] dark:border-gray-800 dark:bg-gray-900 max-lg:hidden ltr:border-r rtl:border-l "
44 @mouseover =" handleMouseOver"
55 @mouseleave =" handleMouseLeave"
66>
@@ -36,7 +36,7 @@ class="flex gap-2 p-1.5 items-center cursor-pointer hover:rounded-lg {{ $menuIte
3636 class =" absolute top-0 hidden flex-col bg-gray-100 ltr:left-[200px] rtl:right-[199px]"
3737 :class =" [isMenuActive && (hoveringMenu == '{{ $menuItem -> getKey ()} } ') ? '!flex' : 'hidden']"
3838 >
39- <div class =" sidebar-rounded fixed z-[1000] h-full min-w-[140px] max-w-max border-r bg-white pt-4 after:-right-[30px] dark:border-gray-800 dark:bg-gray-900 max-lg:hidden" >
39+ <div class =" sidebar-rounded fixed z-[1000] h-full min-w-[140px] max-w-max bg-white pt-4 after:-right-[30px] dark:border-gray-800 dark:bg-gray-900 max-lg:hidden ltr:border-r rtl:border-x " >
4040 <div class =" journal-scroll h-[calc(100vh-100px)] overflow-hidden" >
4141 <nav class =" grid w-full gap-2" >
4242 @foreach ($menuItem -> getChildren () as $subMenuItem )
@@ -60,4 +60,4 @@ class="flex gap-2.5 p-2 items-center cursor-pointer hover:rounded-lg {{ $subMenu
6060 @endforeach
6161 </nav >
6262 </div >
63- </div >
63+ </div >
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments