remove from ip
This commit is contained in:
@@ -24,7 +24,7 @@ function isLocalIp(string $ip = ''): bool
|
|||||||
*/
|
*/
|
||||||
function isTurkmenIp(string $ip = ''): bool
|
function isTurkmenIp(string $ip = ''): bool
|
||||||
{
|
{
|
||||||
$patterns = ['95.85', '216'];
|
$patterns = ['95.85', '216', '10'];
|
||||||
|
|
||||||
foreach ($patterns as $pattern) {
|
foreach ($patterns as $pattern) {
|
||||||
if (strpos($ip, $pattern) === 0) {
|
if (strpos($ip, $pattern) === 0) {
|
||||||
|
|||||||
@@ -126,7 +126,7 @@ class CardOrder extends Model
|
|||||||
public function panelUrl(string $type = 'index'): string
|
public function panelUrl(string $type = 'index'): string
|
||||||
{
|
{
|
||||||
return match ($type) {
|
return match ($type) {
|
||||||
'index' => sprintf('/panel/resources/card-orders'),
|
'index' => sprintf('%s/resources/card-orders', config('nova.path')),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -55,13 +55,13 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@if(isTurkmenIp(request()->ip()))
|
{{-- @if(isTurkmenIp(request()->ip())) --}}
|
||||||
<script src="/assets/js/inputmask.min.js"></script>
|
<script src="/assets/js/inputmask.min.js"></script>
|
||||||
<script src="/assets/js/sweetalert2.js"></script>
|
<script src="/assets/js/sweetalert2.js"></script>
|
||||||
@else
|
{{-- @else --}}
|
||||||
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@latest"></script>
|
{{-- <script src="https://cdn.jsdelivr.net/npm/sweetalert2@latest"></script> --}}
|
||||||
<script src="https://cdn.jsdelivr.net/npm/inputmask@latest/dist/inputmask.min.js"></script>
|
{{-- <script src="https://cdn.jsdelivr.net/npm/inputmask@latest/dist/inputmask.min.js"></script> --}}
|
||||||
@endif
|
{{-- @endif --}}
|
||||||
|
|
||||||
<script src="/assets/js/cookieconsent.js"></script>
|
<script src="/assets/js/cookieconsent.js"></script>
|
||||||
<script src="/assets/js/fn.js"></script>
|
<script src="/assets/js/fn.js"></script>
|
||||||
|
|||||||
Reference in New Issue
Block a user