One Hat Cyber Team
Your IP :
3.140.197.28
Server IP :
192.145.235.60
Server :
Linux ngx365.inmotionhosting.com 5.14.0-427.33.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Aug 30 09:45:56 EDT 2024 x86_64
Server Software :
Apache
PHP Version :
8.2.27
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
centos12
/
bizcento.com
/
resources
/
views
/
user
/
View File Name :
domains.blade.php
@extends('user.layout') @section('content') <div class="page-header"> <h4 class="page-title">{{__('Custom Domain')}}</h4> <ul class="breadcrumbs"> <li class="nav-home"> <a href="{{route('user.dashboard')}}"> <i class="flaticon-home"></i> </a> </li> <li class="separator"> <i class="flaticon-right-arrow"></i> </li> <li class="nav-item"> <a href="#">{{__('Domains & URLs')}}</a> </li> <li class="separator"> <i class="flaticon-right-arrow"></i> </li> <li class="nav-item"> <a href="#">{{__('Custom Domain')}}</a> </li> </ul> </div> <div class="row"> <div class="col-md-12"> <div class="modal fade" id="customDomainModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true"> <div class="modal-dialog modal-dialog-centered" role="document"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="exampleModalLongTitle">{{__('Request Custom Domain')}}</h5> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <div class="modal-body"> @if (cPackageHasCdomain(Auth::guard('web')->user())) @if (Auth::user()->custom_domains()->where('status', 1)->count() > 0) <div class="alert alert-warning"> {{__('You already have an custom domain')}} (<a target="_blank" href="//{{getCdomain(Auth::user())}}">{{getCdomain(Auth::guard('web')->user())}}</a>) {{__('connected with your portfolio website.')}} <br> {{__('if you request another domain now & if it gets connected with our server, then your current domain')}} (<a target="_blank" href="//{{getCdomain(Auth::user())}}">{{getCdomain(Auth::user())}}</a>) {{__('will be removed.')}} </div> @endif @endif <form action="{{route('user.domain.request')}}" id="customDomainRequestForm" method="POST"> @csrf <div class="form-group"> <label for="">{{__('Custom Domain')}}</label> <input type="text" class="form-control" name="custom_domain" placeholder="example.com" required> <p class="text-secondary mb-0"><i class="fas fa-exclamation-circle"></i> {{__('Do not use')}} <strong class="text-danger">http://</strong> {{__('or')}} <strong class="text-danger">https://</strong> {{__('or')}} <strong class="text-danger">www.</strong></p> <p class="text-secondary mb-0"><i class="fas fa-exclamation-circle"></i> {{__('The valid format will be exactly like this one')}} - <strong class="text-danger">domain.com</strong> {{__('or')}} <strong class="text-danger">subdomain.domain.com</strong> </p> </div> </form> </div> <div class="modal-footer"> <button type="button" class="btn btn-secondary" data-dismiss="modal">{{__('Close')}}</button> <button type="submit" class="btn btn-primary" form="customDomainRequestForm">{{__('Send Request')}} </button> </div> </div> </div> </div> @if (session()->has('domain-success')) <div class="alert alert-success bg-success text-white"> <p class="mb-0">{{session()->get('domain-success') }}</p> </div> @endif @if ($errors->has('custom_domain')) <div class="alert alert-danger bg-danger text-white"> <p class="mb-0">{{ $errors->first('custom_domain') }} </p> </div> @endif <div class="card"> <div class="card-header"> <div class="row"> <div class="col-lg-4"> <div class="card-title d-inline-block">{{__('Custom Domain')}}</div> </div> <div class="offset-lg-4 col-lg-4 text-right"> @if (empty($rcDomain) || $rcDomain->status != 0) <button class="btn btn-primary" data-toggle="modal" data-target="#customDomainModal"> {{__('Request Custom Domain')}} </button> @endif </div> </div> </div> <div class="card-body"> <div class="row"> <div class="col-lg-12"> @if (empty($rcDomain)) <h3 class="text-center">{{__('REQUESTED / CONNECTED CUSTOM DOMAIN NOT AVAILABLE')}}</h3> @else <div class="table-responsive"> <table class="table table-striped mt-3"> <thead> <tr> <th scope="col">{{__('Requested Domain')}}</th> <th scope="col">{{__('Current Domain')}}</th> </tr> </thead> <tbody> <tr> <td> @if ($rcDomain->status == 0) <a href="//{{$rcDomain->requested_domain}}" target="_blank">{{$rcDomain->requested_domain}}</a> @else - @endif </td> <td> @if (getCdomain(Auth::user())) @php $cdomain = getCdomain(Auth::user()); @endphp <a target="_blank" href="//{{$cdomain}}">{{$cdomain ?? '-'}}</a> @else - @endif </td> </tr> </tbody> </table> </div> @endif </div> </div> </div> </div> <div class="card"> <div class="card-header"><h4 class="mb-0"><strong>{{ $be->cname_record_section_title }}</strong></h4> </div> <div class="card-body"> {!! $be->cname_record_section_text !!} </div> <div class="px-4"> <strong>{{__('Add CNAME record (take data from below table) in your custom domain from your domain registrar panel')}}:</strong> <div class="table-responsive"> <table class="table table-striped"> <thead> <tr> <th>{{__('Type')}}</th> <th>{{__('Host')}}</th> <th>{{__('Value')}}</th> <th>{{__('TTL')}}TTL</th> </tr> </thead> <tbody> <tr> <td>CNAME</td> <td>@</td> @php $parsedUrl = parse_url(url('/')); $host = $parsedUrl['host']; @endphp <td>{{$host}}.</td> <td>{{__('leave it to its default value')}}</td> </tr> </tbody> </table> </div> </div> </div> </div> </div> @endsection