NASER fix delete redis record
This commit is contained in:
@@ -244,10 +244,10 @@ class AdminController extends Controller
|
|||||||
$st->delete();
|
$st->delete();
|
||||||
if ($st) {
|
if ($st) {
|
||||||
tel_notif($st->user_identity, "تایید");
|
tel_notif($st->user_identity, "تایید");
|
||||||
$create_requests_key = "att-tempreq:creates:{$data->userid}";
|
// $create_requests_key = "att-tempreq:creates:{$data->userid}";
|
||||||
Redis::connection()->lrem($create_requests_key, 1, json_encode($data));
|
// Redis::connection()->lrem($create_requests_key, 1, json_encode($data));
|
||||||
|
|
||||||
// Redis::connection()->del("att-tempreq:{$data->userid}:{$data->id}");
|
Redis::connection()->del("att-tempreq:{$data->userid}:{$data->id}");
|
||||||
return redirect()->back()->with('message', [
|
return redirect()->back()->with('message', [
|
||||||
'color' => '#6aff00ff',
|
'color' => '#6aff00ff',
|
||||||
'text' => 'رکورد با موفقیت حذف شد✔️'
|
'text' => 'رکورد با موفقیت حذف شد✔️'
|
||||||
|
|||||||
@@ -93,9 +93,9 @@ $usersChunked = $users->chunk(3);
|
|||||||
<th class="px-2 py-2 border w-1/6">تاریخ</th>
|
<th class="px-2 py-2 border w-1/6">تاریخ</th>
|
||||||
<th class="px-2 py-2 border w-1/6">ورود</th>
|
<th class="px-2 py-2 border w-1/6">ورود</th>
|
||||||
<th class="px-2 py-2 border w-1/6">خروج</th>
|
<th class="px-2 py-2 border w-1/6">خروج</th>
|
||||||
@if($userType == 'admin')
|
{{-- @if($userType == 'admin')--}}
|
||||||
<th class="px-2 py-2 border w-1/6">تعیین وضعیت</th>
|
<th class="px-2 py-2 border w-1/6">تعیین وضعیت</th>
|
||||||
@endif
|
{{-- @endif--}}
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
|
||||||
@@ -131,30 +131,30 @@ $usersChunked = $users->chunk(3);
|
|||||||
<td class="px-4 py-2 border">{{ $oldExit || $newExit ? ($rec->id=='new' || $oldExit==($newExit ?? '') ? $oldExit : $oldExit.'👇🏻'.$newExit) : '-' }}</td>
|
<td class="px-4 py-2 border">{{ $oldExit || $newExit ? ($rec->id=='new' || $oldExit==($newExit ?? '') ? $oldExit : $oldExit.'👇🏻'.$newExit) : '-' }}</td>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if($userType == 'admin')
|
{{-- @if($userType == 'admin')--}}
|
||||||
<td class="px-4 py-2 border">
|
<td class="px-4 py-2 border">
|
||||||
<form method="post" action="{{route('admin.update')}}">
|
<form method="post" action="{{route('admin.update')}}">
|
||||||
@csrf
|
@csrf
|
||||||
<input type="hidden" name="update" id="update" value="approve">
|
<input type="hidden" name="update" id="update" value="approve">
|
||||||
<input type="hidden" name="data" id="data"
|
<input type="hidden" name="data" id="data"
|
||||||
value="{{json_encode($rec)}}">
|
value="{{json_encode($rec)}}">
|
||||||
<button class="bg-white rounded w-full"
|
<button class="bg-white rounded w-full"
|
||||||
style="background-color: #81ff65; margin-bottom: 5px">
|
style="background-color: #81ff65; margin-bottom: 5px">
|
||||||
تایید
|
تایید
|
||||||
</button>
|
</button>
|
||||||
</form>
|
</form>
|
||||||
<form method="post" action="{{route('admin.update')}}">
|
<form method="post" action="{{route('admin.update')}}">
|
||||||
@csrf
|
@csrf
|
||||||
<input type="hidden" name="update" id="update" value="reject">
|
<input type="hidden" name="update" id="update" value="reject">
|
||||||
<input type="hidden" name="data" id="data"
|
<input type="hidden" name="data" id="data"
|
||||||
value="{{json_encode($rec)}}">
|
value="{{json_encode($rec)}}">
|
||||||
<button class="bg-white rounded w-full"
|
<button class="bg-white rounded w-full"
|
||||||
style="background-color: #ff6565">
|
style="background-color: #ff6565">
|
||||||
رد
|
رد
|
||||||
</button>
|
</button>
|
||||||
</form>
|
</form>
|
||||||
</td>
|
</td>
|
||||||
@endif
|
{{-- @endif--}}
|
||||||
</tr>
|
</tr>
|
||||||
@empty
|
@empty
|
||||||
<tr>
|
<tr>
|
||||||
|
|||||||
Reference in New Issue
Block a user