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